@squidcloud/client
    Preparing search index...

    Interface AiKnowledgeBaseSearchOptions

    The options for the AI agent search method.

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

    Properties

    chunkLimit?: number

    How many chunks to look over. Defaults to 100

    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'.