TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/patelvivekdev/voyageai-ai-provider/llms.txt
Use this file to discover all available pages before exploring further.
VoyageEmbeddingOptions type defines the configuration options you can pass when generating embeddings with text embedding models.
Properties
The input type for the embeddings.Default:
queryVoyage automatically prepends a prompt to your inputs before vectorizing them:- For
query: “Represent the query for retrieving supporting documents: ” - For
document: “Represent the document for retrieval: ”
The number of dimensions for the resulting output embeddings.Default: Model-specific default dimensionSupported values vary by model:
voyage-3.5,voyage-3.5-lite: 2048, 1024 (default), 512, 256voyage-code-3: 2048, 1024 (default), 512, 256voyage-3-large: 2048, 1024 (default), 512, 256
The data type for the resulting output embeddings.Default:
floatfloat: Each returned embedding is a list of 32-bit (4-byte) single-precision floating-point numbers. Supported by all models.int8: Each returned embedding is a list of 8-bit (1-byte) integers ranging from -128 to 127. Supported byvoyage-code-3.uint8: Each returned embedding is a list of 8-bit (1-byte) integers ranging from 0 to 255. Supported byvoyage-code-3.binary: Each returned embedding is a list of 8-bit integers (int8) that represent bit-packed, quantized single-bit embedding values. The length of the returned list is 1/8 ofoutputDimension. Uses the offset binary method. Supported byvoyage-code-3.ubinary: Each returned embedding is a list of 8-bit integers (uint8) that represent bit-packed, quantized single-bit embedding values. The length of the returned list is 1/8 ofoutputDimension. Supported byvoyage-code-3.
Whether to truncate the input texts to fit within the context length.