Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Interface ChatContextOptions

    Controls the context snippets used to generate an answer.

    import type { ChatContextOptions } from '@pinecone-database/pinecone';
    const options: ChatContextOptions = { multimodal: true, includeBinaryContent: true };
    interface ChatContextOptions {
        includeBinaryContent?: boolean;
        multimodal?: boolean;
        snippetSize?: number;
        topK?: number;
    }
    Index
    includeBinaryContent?: boolean

    If image-related context snippets are sent to the LLM, this field determines whether or not they should include base64 image data. If false, only the image caption is sent. Only available when multimodal=true.

    multimodal?: boolean

    Whether or not to send image-related context snippets to the LLM. If false, only text context snippets are sent.

    snippetSize?: number

    The maximum size of each context snippet, in tokens; omit to use the service default.

    topK?: number

    The maximum number of context snippets to use; omit to use the service default.