langchain.js
    Preparing search index...
    interface WebSearchOptions {
        search_context_size?: "low" | "medium" | "high";
        user_location?: { country: string; latitude: number; longitude: number };
    }
    Index

    Properties

    search_context_size?: "low" | "medium" | "high"

    Determines how much search context is retrieved for the model. Options are: low (minimizes context for cost savings but less comprehensive answers), medium (balanced approach suitable for most queries), and high (maximizes context for comprehensive answers but at higher cost).

    user_location?: { country: string; latitude: number; longitude: number }

    To refine search results based on geography, you can specify an approximate user location.

    Type Declaration

    • country: string

      The two letter ISO country code of the user's location.

    • latitude: number

      The latitude of the user's location.

    • longitude: number

      The longitude of the user's location.