@squidcloud/client
    Preparing search index...

    Interface AiSearchOptions

    The options for the AI agent search method.

    interface AiSearchOptions {
        contextMetadataFilter?: AiContextMetadataFilter;
        limit?: number;
        prompt: string;
        rerankProvider?: "cohere" | "none";
    }
    Index

    Properties

    contextMetadataFilter?: AiContextMetadataFilter

    A set of filters that will limit the context the AI can access

    limit?: number

    The maximum number of results to return

    prompt: string

    The prompt to search for

    rerankProvider?: "cohere" | "none"

    Which provider's reranker to use for reranking the context. Defaults to 'cohere'.