@chinmaymk/aikit / EmbeddingOptions
Interface: EmbeddingOptions
Defined in: types.ts:231
The basic options for controlling embedding generation. These are the options that all embedding providers understand.
Extended by
Properties
model?
optionalmodel:string
Defined in: types.ts:233
The specific embedding model you want to use. e.g., 'text-embedding-3-small' or 'text-embedding-004'.
dimensions?
optionaldimensions:number
Defined in: types.ts:235
The number of dimensions in the output embeddings. Only supported by some models.
taskType?
optionaltaskType:"query"|"document"|"similarity"|"classification"|"clustering"
Defined in: types.ts:237
The type of task the embeddings will be used for. Helps optimize the embeddings.
autoTruncate?
optionalautoTruncate:boolean
Defined in: types.ts:239
Whether to automatically truncate input text that exceeds the model's limit.