@squidcloud/client
    Preparing search index...

    Interface GrepKnowledgeBaseOptions

    Options for a literal scan over a knowledge base's raw extracted text.

    interface GrepKnowledgeBaseOptions {
        maxMatches?: number;
        metadataFilter?: AiContextMetadataFilter;
    }
    Index
    maxMatches?: number

    The maximum number of matches to return. Defaults to GREP_KNOWLEDGE_BASE_DEFAULT_MAX_MATCHES and is clamped to GREP_KNOWLEDGE_BASE_MAX_MATCHES.

    metadataFilter?: AiContextMetadataFilter

    Scopes the scan to the contexts whose metadata matches this filter — the same grammar knowledge-base chunk search accepts, including $and/$or composition and the $underPath folder operator. The filter selects the contexts BEFORE any text is matched.