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

    Interface EmbedOptions

    Options for generating embeddings.

    import type { EmbedOptions } from '@pinecone-database/pinecone';
    const options: EmbedOptions = {
    model: 'multilingual-e5-large',
    inputs: ['How do I return an order?'],
    parameters: { inputType: 'query' },
    };
    interface EmbedOptions {
        inputs: string[];
        model: string;
        parameters?: Record<string, string>;
    }
    Index
    inputs: string[]

    List of inputs to generate embeddings for.

    model: string

    The model to use for embedding generation.

    parameters?: Record<string, string>

    Additional model-specific parameters. Refer to the model guide for available model parameters.

    As a convenience, inputType is automatically converted to the API's input_type parameter. All other parameters are passed through unchanged, so they must use the model's documented (snake_case) parameter names.