langchain.js
    Preparing search index...

    Interface WebSearchFilters

    Domain filtering configuration for web search.

    interface WebSearchFilters {
        allowedDomains?: string[];
    }
    Index

    Properties

    Properties

    allowedDomains?: string[]

    Allow-list of up to 100 domains to limit search results. Omit the HTTP/HTTPS prefix (e.g., "openai.com" instead of "https://openai.com/"). Includes subdomains automatically.