Skip to content

Releases: skykim/LightRAG.NET

LightRAG.NET v0.2.0 — Python parity + single-DLL build

07 Jun 03:50

Choose a tag to compare

Aligns the C# port's query / extraction / storage behavior with Python LightRAG and ships a single merged assembly.

Highlights

  • Query: graph 1-hop expansion (local→relations, global→endpoint entities), weighted-polling / vector chunk selection, rerank + min_rerank_score + chunk_top_k, Python-compact context JSON, dynamic chunk token budget
  • Extraction: record + tuple-delimiter recovery, 256-char / 512-byte entity-name limit, 3 JSON-mode few-shot examples
  • KG merge: map-reduce summarization (no description loss), empty-relation raises
  • Storage: doc-status immediate flush, VDB meta_fields whitelist, typed GraphML, degree-priority subgraph, DocStatus enum + zero-seeded counts
  • Caching: flattened, model-partitioned cache key
  • Single LightRAG.NET.dll (Core + Storage.FileBased, netstandard2.1, Unity-ready). Tests 41 → 64.

Resolves all 18 fidelity gaps from the parity review (5 critical, 13 major).

Assets

  • LightRAG.NET.dll — the merged managed plugin (netstandard2.1).
  • LightRAG.NET-v0.2.0-netstandard2.1.zip — self-contained bundle: the DLL plus its runtime dependencies (Newtonsoft.Json, Microsoft.ML.Tokenizers + data, BCL/System shims). OllamaSharp is not required (the Ollama provider is excluded from this build).

LightRAG.NET v0.1.0 — C# / Unity port

06 Jun 12:45

Choose a tag to compare

LightRAG.NET v0.1.0 — C# port of LightRAG (netstandard2.1, Unity-ready)

First release of the C# port of LightRAG's core retrieval-augmented-generation engine.
Targets netstandard2.1, so the same assemblies run on .NET 9 and inside Unity (Mono / IL2CPP).

What's included

  • LightRAG.Core — engine: typed config + constructor injection, tiktoken-parity tokenizer, PriorityAsyncScheduler (interactive queries preempt ingestion), LLM entity/relationship extraction with gleaning, knowledge-graph construction, all query modes (local/global/hybrid/mix/naive/bypass), answer generation.
  • LightRAG.Storage.FileBased — JSON KV / doc-status, cosine nano-vectordb, GraphML graph; FileBasedLightRag factory.
  • LightRAG.Providers.OllamaOllamaLlm + OllamaEmbedding via OllamaSharp.

Download

LightRAG.NET-v0.1.0-netstandard2.1.zip contains the engine DLLs plus all transitive dependencies (18 assemblies).
For Unity, drop them into Assets/Plugins/ and delete Newtonsoft.Json.dll (Unity supplies it via the com.unity.nuget.newtonsoft-json package — keeping it causes a duplicate-assembly conflict).

Source & usage

See LightRAG.NET/ and the README for build and usage instructions.