Type alias Text2VecOpenAIConfig

Text2VecOpenAIConfig: {
    baseURL?: string;
    dimensions?: number;
    model?: "text-embedding-3-small" | "text-embedding-3-large" | "text-embedding-ada-002" | string;
    modelVersion?: string;
    type?: "text" | "code" | string;
    vectorizeCollectionName?: boolean;
}

The configuration for text vectorization using the OpenAI module.

See the documentation for detailed usage.

Type declaration

  • Optional baseURL?: string

    The base URL to use where API requests should go.

  • Optional dimensions?: number

    The dimensions to use.

  • Optional model?: "text-embedding-3-small" | "text-embedding-3-large" | "text-embedding-ada-002" | string

    The model to use.

  • Optional modelVersion?: string

    The model version to use.

  • Optional type?: "text" | "code" | string

    The type of model to use.

  • Optional vectorizeCollectionName?: boolean

    Whether to vectorize the collection name.