VoyageAI 0.0.0-dev.39
This is a prerelease version of VoyageAI.
dotnet add package VoyageAI --version 0.0.0-dev.39
NuGet\Install-Package VoyageAI -Version 0.0.0-dev.39
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VoyageAI" Version="0.0.0-dev.39" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VoyageAI" Version="0.0.0-dev.39" />
<PackageReference Include="VoyageAI" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VoyageAI --version 0.0.0-dev.39
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VoyageAI, 0.0.0-dev.39"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VoyageAI@0.0.0-dev.39
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VoyageAI&version=0.0.0-dev.39&prerelease
#tool nuget:?package=VoyageAI&version=0.0.0-dev.39&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VoyageAI
Features 🔥
- Fully generated C# SDK based on official Voyage AI OpenAPI specification using AutoSDK
- Same day update to support new features
- Updated and supported automatically if there are no breaking changes
- All modern .NET features - nullability, trimming, NativeAOT, etc.
- Microsoft.Extensions.AI
IEmbeddingGeneratorsupport
Usage
using VoyageAI;
using var client = new VoyageAIClient(apiKey);
Microsoft.Extensions.AI
The SDK implements IEmbeddingGenerator:
using VoyageAI;
using Microsoft.Extensions.AI;
IEmbeddingGenerator<string, Embedding<float>> generator = new VoyageAIClient(apiKey);
var embeddings = await generator.GenerateAsync(
["Hello, world!"],
new EmbeddingGenerationOptions { ModelId = "voyage-3" });
Console.WriteLine($"Embedding dimension: {embeddings[0].Vector.Length}");
Embedding Generator Generate Async
using var client = GetAuthorizedApi();
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var embeddings = await generator.GenerateAsync(
["Hello, world!"],
new EmbeddingGenerationOptions
{
ModelId = "voyage-3-lite",
});
Embedding Generator Get Service Returns Metadata
using var client = new VoyageAIClient("test-api-key");
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var metadata = generator.GetService<EmbeddingGeneratorMetadata>();
Embedding Generator Get Service Returns Self
using var client = new VoyageAIClient("test-api-key");
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var self = generator.GetService<VoyageAIClient>();
Embeddings
using var client = GetAuthorizedApi();
var response = await client.EmbeddingsApiAsync(
input: "Hello, world!",
model: "voyage-3-lite");
Multimodal Embeddings Text And Image Url
using var client = GetAuthorizedApi();
var inputs = new List<MultimodalInput>
{
new(
MultimodalContent.Text("This is a banana."),
MultimodalContent.ImageUrl("https://raw.githubusercontent.com/voyage-ai/voyage-multimodal-3/refs/heads/main/images/banana.jpg")),
};
var response = await client.MultimodalEmbeddingsAsync(
inputs: inputs,
model: "voyage-multimodal-3");
Multimodal Embeddings Text Only
using var client = GetAuthorizedApi();
var inputs = new List<MultimodalInput>
{
new(MultimodalContent.Text("Hello, world!")),
};
var response = await client.MultimodalEmbeddingsAsync(
inputs: inputs,
model: "voyage-multimodal-3");
Reranking
using var client = GetAuthorizedApi();
var response = await client.RerankerApiAsync(
query: "What is the capital of France?",
documents: [
"Paris is the capital of France.",
"Berlin is the capital of Germany.",
"London is the capital of the United Kingdom.",
],
model: "rerank-2-lite",
topK: 2,
returnDocuments: true);
Support
Priority place for bugs: https://github.com/tryAGI/VoyageAI/issues Priority place for ideas and general questions: https://github.com/tryAGI/VoyageAI/discussions Discord: https://discord.gg/Ca2xhfBf3v
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.AI.Abstractions (>= 10.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.0-dev.39 | 28 | 3/20/2026 |
| 0.0.0-dev.36 | 32 | 3/20/2026 |
| 0.0.0-dev.34 | 30 | 3/20/2026 |
| 0.0.0-dev.33 | 30 | 3/20/2026 |
| 0.0.0-dev.31 | 31 | 3/19/2026 |
| 0.0.0-dev.29 | 25 | 3/19/2026 |
| 0.0.0-dev.28 | 27 | 3/19/2026 |
| 0.0.0-dev.27 | 29 | 3/19/2026 |
| 0.0.0-dev.26 | 28 | 3/19/2026 |
| 0.0.0-dev.22 | 28 | 3/19/2026 |
| 0.0.0-dev.21 | 24 | 3/19/2026 |
| 0.0.0-dev.20 | 29 | 3/19/2026 |
| 0.0.0-dev.19 | 31 | 3/19/2026 |
| 0.0.0-dev.18 | 25 | 3/19/2026 |
| 0.0.0-dev.17 | 26 | 3/19/2026 |
| 0.0.0-dev.16 | 25 | 3/18/2026 |
| 0.0.0-dev.15 | 27 | 3/18/2026 |
| 0.0.0-dev.14 | 31 | 3/18/2026 |
| 0.0.0-dev.13 | 26 | 3/18/2026 |
| 0.0.0-dev.12 | 27 | 3/18/2026 |
Loading failed