LogicGrid.Memory
0.1.4-beta
dotnet add package LogicGrid.Memory --version 0.1.4-beta
NuGet\Install-Package LogicGrid.Memory -Version 0.1.4-beta
<PackageReference Include="LogicGrid.Memory" Version="0.1.4-beta" />
<PackageVersion Include="LogicGrid.Memory" Version="0.1.4-beta" />
<PackageReference Include="LogicGrid.Memory" />
paket add LogicGrid.Memory --version 0.1.4-beta
#r "nuget: LogicGrid.Memory, 0.1.4-beta"
#:package LogicGrid.Memory@0.1.4-beta
#addin nuget:?package=LogicGrid.Memory&version=0.1.4-beta&prerelease
#tool nuget:?package=LogicGrid.Memory&version=0.1.4-beta&prerelease
LogicGrid
A modular .NET toolkit for building agent and RAG (retrieval-augmented
generation) applications. Pure C#, multi-targeted to netstandard2.0,
net6.0, and net8.0, with zero hidden dependencies.
Free to use today, including in commercial products. See LICENSE.txt.
Packages
| Package | Description |
|---|---|
LogicGrid.Core |
Agents, admins, providers, orchestration, events, logging, tracing. |
LogicGrid.Memory |
Embeddings and vector stores (in-memory, Qdrant, pgvector). Hybrid search. |
LogicGrid.Rag |
RAG pipeline — document loading, chunking, embedding, retrieval. |
LogicGrid.Tools |
Built-in tools — web search, HTTP, datetime, calculator. |
LogicGrid.Mcp |
MCP client — consume any MCP server as agent tools. |
Quickstart
dotnet add package LogicGrid.Core
using LogicGrid.Core.Agents;
using LogicGrid.Core.Llm;
var llm = LlmClientBase.Ollama("llama3.2");
IAgent agent = new Agent<string>(
name: "Helper",
description: "Answers questions concisely.",
systemPrompt: "Answer in one short sentence.",
llm: llm);
Console.WriteLine(
await agent.RunAsync("Capital of France?", new AgentContext()));
Full documentation: logicgrid.dev/docs
Hybrid Search
LogicGrid.Memory.Search adds a sparse keyword retriever (BM25)
alongside the dense vector retriever, fused via Reciprocal Rank Fusion
(RRF).
var store = new HybridVectorStore(new InMemoryVectorStore());
var pipeline = new RagPipeline(embedder, store);
await pipeline.IngestAsync("docs/manual.txt");
var results = await pipeline.HybridSearchAsync("SKU-4421 pricing", topK: 5);
foreach (var r in results)
{
Console.WriteLine($"{r.RrfScore:F4} dense={r.DenseScore:F3} sparse={r.SparseScore:F3}");
Console.WriteLine(r.Document.Text);
}
- Dense retrieval — cosine similarity over embeddings; great at semantic matches.
- Sparse retrieval — BM25 over tokenized text; great at exact terms (codes, IDs, proper nouns).
- RRF — parameter-free merge of both ranked lists.
k = 60by default.
HybridVectorStore implements IVectorStore, so it's a drop-in
replacement for the in-memory store. RagPipeline.HybridSearchAsync
falls back to dense-only results when constructed with a plain
IVectorStore.
Links
- Documentation: logicgrid.dev/docs
- Discussions: GitHub Discussions
- Issues: GitHub Issues
- Support: support@logicgrid.dev
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- LogicGrid.Core (>= 0.1.4-beta)
- System.Text.Json (>= 8.0.6)
-
net6.0
- LogicGrid.Core (>= 0.1.4-beta)
- System.Text.Json (>= 8.0.6)
-
net8.0
- LogicGrid.Core (>= 0.1.4-beta)
- System.Text.Json (>= 8.0.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LogicGrid.Memory:
| Package | Downloads |
|---|---|
|
LogicGrid.Rag
RAG pipeline for LogicGrid — document loading, chunking, embedding, and retrieval. Built-in loaders for plain text and HTML (zero deps). PDF and Word support via optional adapter packages. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.4-beta | 245 | 6/23/2026 |
| 0.1.3-beta | 80 | 5/25/2026 |
| 0.1.3-alpha | 70 | 5/1/2026 |
| 0.1.2-alpha | 72 | 5/1/2026 |
| 0.1.1-alpha | 67 | 5/1/2026 |