Skip to main content
VoyageAIEmbedder defaults to voyage-2 with 1024 dimensions.
voyageai_embedder.py
VoyageAIEmbedder applies one request_params dictionary to every call. A single instance used by a vector database therefore applies the same input_type to document insertion and query search. VoyageAI retrieval models distinguish document from query inputs.
For a nondefault vector size, set dimensions and request_params={"output_dimension": ...} to the same value.

Run the Example

1

Set up your virtual environment

2

Export the API key

3

Install dependencies

4

Run the example

Developer Resources