L
HKUDS/LightRAG★ 41,022 · Python
Graph-backed RAG for cross-document retrieval and multimodal indexing
MIT · Commercial Friendlyv1.5.8
Side-by-side 2026 comparison in RAG, Data & Memory: HKUDS/LightRAG leads both total GitHub adoption (★ 41k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
Graph-backed RAG for cross-document retrieval and multimodal indexing
In-process C++ vector database for local hybrid retrieval
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | HKUDS/LightRAG | alibaba/zvec |
|---|---|---|
| Total GitHub Stars | ★ 41,022 | ★ 16,322 |
| 24h / 7d Velocity | +7 / +110 | +7 / +29 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 100/100 | A+ · 94/100 |
| Deployment Signals | Docker · Self-Hosted · API | Self-Hosted · Local AI |
| Primary Language | Python | C++ |
| Commercial License | MIT · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v1.5.8 | v0.8.1 |
| Best For | Teams building an internal knowledge API over changing, relationship-rich collections such as manuals or research papers, where cross-document questions and selective updates matter | Local RAG, desktop or edge search, and application-owned retrieval where a designated writer can maintain the collection and hybrid search should run without a separate database service |
# Install LightRAG Server as a tool using uv (recommended) uv tool install "lightrag-hku[api]" # Or using pip inside a virtual environment # python -m venv .venv # source .venv/bin/activate # Windows: .venv\Scripts\activate # pip install "lightrag-hku[api]" # Get the configuration template and edit it (see "Minimum .env Changes" below) curl -O https://raw.githubusercontent.com/HKUDS/LightRAG/main/env.example cp env.example .env lightrag-server
import zvec # Define collection schema schema = zvec.CollectionSchema( name="example", vectors=zvec.VectorSchema("embedding", zvec.DataType.VECTOR_FP32, 4), ) # Create collection collection = zvec.create_and_open(path="./zvec_example", schema=schema) # Insert documents collection.insert([ zvec.Doc(id="doc_1", vectors={"embedding": [0.1, 0.2, 0.3, 0.4]}), zvec.Doc(id="doc_2", vectors={"embedding": [0.2, 0.3, 0.4, 0.1]}), ]) # Search by vector similarity results = collection.query( zvec.Query(field_name="embedding", vector=[0.4, 0.3, 0.3, 0.1]), topk=10 ) # Results: list of {'id': str, 'score': float, ...}, sorted by relevance print(results)
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy