![]() |
VOOZH | about |
dotnet add package LangChain.Databases.OpenSearch --version 0.17.1
NuGet\Install-Package LangChain.Databases.OpenSearch -Version 0.17.1
<PackageReference Include="LangChain.Databases.OpenSearch" Version="0.17.1" />
<PackageVersion Include="LangChain.Databases.OpenSearch" Version="0.17.1" />Directory.Packages.props
<PackageReference Include="LangChain.Databases.OpenSearch" />Project file
paket add LangChain.Databases.OpenSearch --version 0.17.1
#r "nuget: LangChain.Databases.OpenSearch, 0.17.1"
#:package LangChain.Databases.OpenSearch@0.17.1
#addin nuget:?package=LangChain.Databases.OpenSearch&version=0.17.1Install as a Cake Addin
#tool nuget:?package=LangChain.Databases.OpenSearch&version=0.17.1Install as a Cake Tool
Database abstractions and vector store backends for the LangChain.NET ecosystem.
This project aligns with the Microsoft.Extensions ecosystem. For vector search, we use Microsoft.Extensions.VectorData.Abstractions (MEVA) — the industry-standard .NET vector data abstraction. For backends that have official Semantic Kernel connectors, consumers should reference those packages directly rather than using wrappers.
These packages implement VectorStore / VectorStoreCollection<TKey, TRecord> from Microsoft.Extensions.VectorData:
| Package | Backend | NuGet |
|---|---|---|
LangChain.Databases.Postgres |
PostgreSQL + pgvector | 👁 NuGet |
LangChain.Databases.OpenSearch |
OpenSearch k-NN | 👁 NuGet |
| Package | Backend | NuGet |
|---|---|---|
LangChain.Databases.Abstractions |
In-memory, file-based | 👁 NuGet |
LangChain.Databases.Redis |
Redis | 👁 NuGet |
LangChain.Databases.Mongo |
MongoDB | 👁 NuGet |
For backends with official Semantic Kernel connectors, use those packages directly:
| Backend | SK Connector Package |
|---|---|
| In-Memory | Microsoft.SemanticKernel.Connectors.InMemory |
| SQLite | Microsoft.SemanticKernel.Connectors.Sqlite |
| Chroma | Microsoft.SemanticKernel.Connectors.Chroma |
| Qdrant | Microsoft.SemanticKernel.Connectors.Qdrant |
| Pinecone | Microsoft.SemanticKernel.Connectors.Pinecone |
| Weaviate | Microsoft.SemanticKernel.Connectors.Weaviate |
| Milvus | Microsoft.SemanticKernel.Connectors.Milvus |
| DuckDB | Microsoft.SemanticKernel.Connectors.DuckDB |
| Azure AI Search | Microsoft.SemanticKernel.Connectors.AzureAISearch |
| Redis (vector) | Microsoft.SemanticKernel.Connectors.Redis |
| MongoDB (vector) | Microsoft.SemanticKernel.Connectors.MongoDB |
using Microsoft.Extensions.VectorData;
public class DocumentRecord
{
[VectorStoreKey]
public string Id { get; set; } = Guid.NewGuid().ToString();
[VectorStoreData]
public string Text { get; set; } = string.Empty;
[VectorStoreVector(1536)]
public ReadOnlyMemory<float> Embedding { get; set; }
}
// PostgreSQL + pgvector
var store = new PostgresVectorStore(connectionString);
// Or OpenSearch
var store = new OpenSearchVectorStore(new OpenSearchVectorDatabaseOptions
{
ConnectionUri = new Uri("http://localhost:9200"),
});
// Or SK InMemory
var store = new InMemoryVectorStore();
var collection = store.GetCollection<string, DocumentRecord>("my_collection");
await collection.EnsureCollectionExistsAsync();
await collection.UpsertAsync(new DocumentRecord
{
Text = "hello world",
Embedding = embedding,
});
await foreach (var result in collection.SearchAsync(
new ReadOnlyMemory<float>(queryEmbedding), top: 5))
{
Console.WriteLine($"{result.Record.Text} (score: {result.Score})");
}
The legacy IVectorDatabase / IVectorCollection interfaces have been removed in favor of MEVA. See the for detailed before/after examples.
This project is licensed under the .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
Showing the top 1 popular GitHub repositories that depend on LangChain.Databases.OpenSearch:
| Repository | Stars |
|---|---|
|
tryAGI/LangChain
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.17.1 | 3,609 | 4/30/2026 |
| 0.17.1-dev.46 | 132 | 4/1/2026 |
| 0.17.1-dev.44 | 88 | 3/29/2026 |
| 0.17.1-dev.42 | 112 | 3/21/2026 |
| 0.17.1-dev.41 | 70 | 3/21/2026 |
| 0.17.1-dev.40 | 65 | 3/21/2026 |
| 0.17.1-dev.39 | 68 | 3/21/2026 |
| 0.17.1-dev.37 | 62 | 3/20/2026 |
| 0.17.1-dev.36 | 60 | 3/20/2026 |
| 0.17.1-dev.35 | 67 | 3/20/2026 |
| 0.17.1-dev.32 | 57 | 3/20/2026 |
| 0.17.1-dev.31 | 58 | 3/20/2026 |
| 0.17.1-dev.30 | 58 | 3/20/2026 |
| 0.17.1-dev.28 | 61 | 3/20/2026 |
| 0.17.1-dev.27 | 59 | 3/20/2026 |
| 0.17.1-dev.11 | 253 | 4/21/2025 |
| 0.17.1-dev.10 | 1,344 | 4/9/2025 |
| 0.17.1-dev.9 | 180 | 3/31/2025 |
| 0.17.1-dev.8 | 156 | 3/28/2025 |
| 0.17.1-dev.5 | 148 | 2/20/2025 |