Rag.NET.VectorStores.Weaviate
1.1.0
dotnet add package Rag.NET.VectorStores.Weaviate --version 1.1.0
NuGet\Install-Package Rag.NET.VectorStores.Weaviate -Version 1.1.0
<PackageReference Include="Rag.NET.VectorStores.Weaviate" Version="1.1.0" />
<PackageVersion Include="Rag.NET.VectorStores.Weaviate" Version="1.1.0" />
<PackageReference Include="Rag.NET.VectorStores.Weaviate" />
paket add Rag.NET.VectorStores.Weaviate --version 1.1.0
#r "nuget: Rag.NET.VectorStores.Weaviate, 1.1.0"
#:package Rag.NET.VectorStores.Weaviate@1.1.0
#addin nuget:?package=Rag.NET.VectorStores.Weaviate&version=1.1.0
#tool nuget:?package=Rag.NET.VectorStores.Weaviate&version=1.1.0
Rag.NET.VectorStores.Weaviate
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 73 packages; install only what you call. Documentation · Choosing packages
Weaviate vector store for Rag.NET over the REST API: chunks are stored as objects of a configurable class, with API-key auth and multi-tenancy support for Weaviate Cloud.
Install
dotnet add package Rag.NET.VectorStores.Weaviate
Install alongside the core pipeline package (dotnet add package Rag.NET), which supplies
the AddRagNet(...) builder the store registers into.
Setup
Inside your AddRagNet(...) builder callback:
using Rag.NET.Weaviate;
rag.UseWeaviate(
endpoint: new Uri("http://localhost:8080"),
className: "RagChunks", // capital letter + letters/digits/underscores
vectorDimensions: 1536);
Example
Weaviate Cloud with an API key and a tenant:
using Microsoft.Extensions.DependencyInjection;
using Rag.NET.Abstractions;
using Rag.NET.Weaviate;
rag.UseWeaviate(new Uri("https://my-cluster.weaviate.cloud"), "RagChunks", 1536, options =>
{
options.ApiKey = "wcs-api-key"; // sent as Authorization: Bearer
options.Tenant = "customer_a"; // opt into multi-tenancy
});
// Once at startup: create the class schema if it does not exist.
var store = provider.GetRequiredService<IVectorStore>() as WeaviateVectorStore;
await store!.InitializeAsync();
Full guide
| 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. |
-
net10.0
- Microsoft.Extensions.Http.Resilience (>= 10.10.0)
- Rag.NET.Abstractions (>= 1.1.0)
- ZeroAlloc.Rest (>= 1.3.4)
- ZeroAlloc.Rest.SystemTextJson (>= 1.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.