VoyageAIEmbeddingModel<T>
Models & Types ยท AiDotNet.RetrievalAugmentedGeneration.EmbeddingModels
Voyage AI embedding model that calls the Voyage AI embeddings REST API.
Inheritance: EmbeddingModelBase<T> โ VoyageAIEmbeddingModel<T>
How It Works
Sends requests to https://api.voyageai.com/v1/embeddings using the supplied
API key (Bearer authentication) and parses the returned embeddings. This is a real
remote model - it does not fabricate vectors when the API is unavailable.
Constructors
| Constructor | Summary |
|---|---|
VoyageAIEmbeddingModel(string apiKey, string model, string inputType, int dimension, HttpClient httpClient) |
Initializes a new instance of the VoyageAIEmbeddingModel class. |
Properties
| Property | Summary |
|---|---|
int EmbeddingDimension { get; } |
|
int MaxTokens { get; } |
Methods
| Method | Summary |
|---|---|
Task<Matrix<T>> EmbedBatchAsync(IEnumerable<string> texts) |
Asynchronously generates embeddings for the specified texts using the Voyage AI API. |
Task<Vector<T>> EmbedAsync(string text) |
Asynchronously generates an embedding for the specified text using the Voyage AI API. |