@squidcloud/client
    Preparing search index...

    Interface AiKnowledgeBaseContextFileOptions

    Base options for upserting file content into the AI agent's context.

    interface AiKnowledgeBaseContextFileOptions {
        chunkOverlap?: number;
        ragType?: "contextual" | "basic";
        reuseChunkContext?: boolean;
    }

    Hierarchy (View Summary)

    Index
    chunkOverlap?: number

    Amount of chunk overlap, in characters.

    ragType?: "contextual" | "basic"

    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.