Skip to main content
Use a Voyage AI model to generate retrieval-optimized embeddings for your vectorizer. You use this function to:
  • Define which Voyage AI model to use
  • Specify the dimensionality of the embeddings
  • Configure the model’s truncation behavior and API key name
  • Configure the input type (query vs document)

Samples

Basic Voyage AI embedding

With custom API key name

With input type

Arguments

Returns

A JSON configuration object for use in create_vectorizer().