@squidcloud/client
    Preparing search index...

    Type Alias BaseAiKnowledgeBaseContextOptions

    Base options for how to deal with the content being upserted.

    type BaseAiKnowledgeBaseContextOptions = {
        chunkOverlap?: number;
        ragType?: AiRagType;
        reuseChunkContext?: boolean;
    }

    Hierarchy (View Summary)

    Index
    chunkOverlap?: number

    Amount of chunk overlap, in characters.

    ragType?: AiRagType

    The type of RAG to use for the content.

    reuseChunkContext?: boolean

    Contextual RAG only. On a re-upsert, a chunk whose text is unchanged keeps its stored blurb and embedding, and only chunks with new text are sent to the LLM; with GraphRAG it also keeps its graph entities and is not extracted again. A chunk that carries an image is always written anew. A reused blurb was written against the previous version of the document; set false when an edit can change the meaning of text elsewhere in it. Defaults to true.