[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1668":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},1668,"LightRAG","HKUDS\u002FLightRAG","HKUDS","[EMNLP2025] \"LightRAG: Simple and Fast Retrieval-Augmented Generation\"","https:\u002F\u002Farxiv.org\u002Fabs\u002F2410.05779",null,"Python",36453,5148,211,201,0,50,282,1399,249,45,"MIT License",false,"main",[26,27,28,29,30,31,32,33,34],"genai","gpt","gpt-4","graphrag","knowledge-graph","large-language-models","llm","rag","retrieval-augmented-generation","2026-06-12 02:00:31","\u003Cdiv align=\"center\">\n\n\u003Cdiv style=\"margin: 20px 0;\">\n  \u003Cimg src=\".\u002Fassets\u002Flogo.png\" width=\"120\" height=\"120\" alt=\"LightRAG Logo\" style=\"border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);\">\n\u003C\u002Fdiv>\n\n# 🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation\n\n\u003Cdiv align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F13043\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F13043\" alt=\"HKUDS%2FLightRAG | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Cdiv style=\"width: 100%; height: 2px; margin: 20px 0; background: linear-gradient(90deg, transparent, #00d9ff, transparent);\">\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Cdiv style=\"background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; padding: 25px; text-align: center;\">\n    \u003Cp>\n      \u003Ca href='https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG'>\u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🔥Project-Page-00d9ff?style=for-the-badge&logo=github&logoColor=white&labelColor=1a1a2e'>\u003C\u002Fa>\n      \u003Ca href='https:\u002F\u002Farxiv.org\u002Fabs\u002F2410.05779'>\u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F📄arXiv-2410.05779-ff6b6b?style=for-the-badge&logo=arxiv&logoColor=white&labelColor=1a1a2e'>\u003C\u002Fa>\n      \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fstargazers\">\u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FHKUDS\u002FLightRAG?color=00d9ff&style=for-the-badge&logo=star&logoColor=white&labelColor=1a1a2e' \u002F>\u003C\u002Fa>\n    \u003C\u002Fp>\n    \u003Cp>\n      \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🐍Python-3.10-4ecdc4?style=for-the-badge&logo=python&logoColor=white&labelColor=1a1a2e\">\n      \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Flightrag-hku\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Flightrag-hku.svg?style=for-the-badge&logo=pypi&logoColor=white&labelColor=1a1a2e&color=ff6b6b\">\u003C\u002Fa>\n    \u003C\u002Fp>\n    \u003Cp>\n      \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FyF2MmDJyGJ\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F💬Discord-Community-7289da?style=for-the-badge&logo=discord&logoColor=white&labelColor=1a1a2e\">\u003C\u002Fa>\n      \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fissues\u002F285\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F💬WeChat-Group-07c160?style=for-the-badge&logo=wechat&logoColor=white&labelColor=1a1a2e\">\u003C\u002Fa>\n    \u003C\u002Fp>\n    \u003Cp>\n      \u003Ca href=\"README-zh.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🇨🇳中文版-1a1a2e?style=for-the-badge\">\u003C\u002Fa>\n      \u003Ca href=\"README.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🇺🇸English-1a1a2e?style=for-the-badge\">\u003C\u002Fa>\n    \u003C\u002Fp>\n    \u003Cp>\n      \u003Ca href=\"https:\u002F\u002Fpepy.tech\u002Fprojects\u002Flightrag-hku\">\u003Cimg src=\"https:\u002F\u002Fstatic.pepy.tech\u002Fpersonalized-badge\u002Flightrag-hku?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads\">\u003C\u002Fa>\n    \u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\" style=\"margin: 30px 0;\">\n  \u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F74038190\u002F212284100-561aa473-3905-4a80-b561-0d28506553ee.gif\" width=\"800\">\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\" style=\"margin: 30px 0;\">\n    \u003Cimg src=\".\u002FREADME.assets\u002Fb2aaf634151b4706892693ffb43d9093.png\" width=\"800\" alt=\"LightRAG Diagram\">\n\u003C\u002Fdiv>\n\n---\n\n\u003Cdiv align=\"center\">\n  \u003Ctable>\n    \u003Ctr>\n      \u003Ctd style=\"vertical-align: middle;\">\n        \u003Cimg src=\".\u002Fassets\u002FLiteWrite.png\"\n             width=\"56\"\n             height=\"56\"\n             alt=\"LiteWrite\"\n             style=\"border-radius: 12px;\" \u002F>\n      \u003C\u002Ftd>\n      \u003Ctd style=\"vertical-align: middle; padding-left: 12px;\">\n        \u003Ca href=\"https:\u002F\u002Flitewrite.ai\">\n          \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🚀%20LiteWrite-AI%20Native%20LaTeX%20Editor-ff6b6b?style=for-the-badge&logoColor=white&labelColor=1a1a2e\">\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n    \u003C\u002Ftr>\n  \u003C\u002Ftable>\n\u003C\u002Fdiv>\n\n---\n\n## 🎉 News\n- [2026.03]🎯[New Feature]: Integrated **OpenSearch** as a unified storage backend, providing comprehensive support for all four LightRAG storage.\n- [2026.03]🎯[New Feature]: Introduced a setup wizard. Support for local deployment of embedding, reranking, and storage backends via Docker.\n- [2025.11]🎯[New Feature]: Integrated **RAGAS for Evaluation** and **Langfuse for Tracing**. Updated the API to return retrieved contexts alongside query results to support context precision metrics.\n- [2025.10]🎯[Scalability Enhancement]: Eliminated processing bottlenecks to support **Large-Scale Datasets Efficiently**.\n- [2025.09]🎯[New Feature] Enhances knowledge graph extraction accuracy for **Open-Sourced LLMs** such as Qwen3-30B-A3B.\n- [2025.08]🎯[New Feature] **Reranker** is now supported, significantly boosting performance for mixed queries (set as default query mode).\n- [2025.08]🎯[New Feature] Added **Document Deletion** with automatic KG regeneration to ensure optimal query performance.\n- [2025.06]🎯[New Release] Our team has released [RAG-Anything](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FRAG-Anything) — an **All-in-One Multimodal RAG** system for seamless processing of text, images, tables, and equations.\n- [2025.06]🎯[New Feature] LightRAG now supports comprehensive multimodal data handling through [RAG-Anything](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FRAG-Anything) integration, enabling seamless document parsing and RAG capabilities across diverse formats including PDFs, images, Office documents, tables, and formulas. Please refer to the new [multimodal section](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002F?tab=readme-ov-file#multimodal-document-processing-rag-anything-integration) for details.\n- [2025.03]🎯[New Feature] LightRAG now supports citation functionality, enabling proper source attribution and enhanced document traceability.\n- [2025.02]🎯[New Feature] You can now use MongoDB as an all-in-one storage solution for unified data management.\n- [2025.02]🎯[New Release] Our team has released [VideoRAG](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FVideoRAG)-a RAG system for understanding extremely long-context videos\n- [2025.01]🎯[New Release] Our team has released [MiniRAG](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FMiniRAG) making RAG simpler with small models.\n- [2025.01]🎯You can now use PostgreSQL as an all-in-one storage solution for data management.\n- [2024.11]🎯[New Resource] A comprehensive guide to LightRAG is now available on [LearnOpenCV](https:\u002F\u002Flearnopencv.com\u002Flightrag). — explore in-depth tutorials and best practices. Many thanks to the blog author for this excellent contribution!\n- [2024.11]🎯[New Feature] Introducing the LightRAG WebUI — an interface that allows you to insert, query, and visualize LightRAG knowledge through an intuitive web-based dashboard.\n- [2024.11]🎯[New Feature] You can now [use Neo4J for Storage](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG?tab=readme-ov-file#using-neo4j-for-storage)-enabling graph database support.\n- [2024.10]🎯[New Feature] We've added a link to a [LightRAG Introduction Video](https:\u002F\u002Fyoutu.be\u002FoageL-1I0GE). — a walkthrough of LightRAG's capabilities. Thanks to the author for this excellent contribution!\n- [2024.10]🎯[New Channel] We have created a [Discord channel](https:\u002F\u002Fdiscord.gg\u002FyF2MmDJyGJ)!💬 Welcome to join our community for sharing, discussions, and collaboration! 🎉🎉\n\n\u003Cdetails>\n  \u003Csummary style=\"font-size: 1.4em; font-weight: bold; cursor: pointer; display: list-item;\">\n    Algorithm Flowchart\n  \u003C\u002Fsummary>\n\n![LightRAG Indexing Flowchart](https:\u002F\u002Flearnopencv.com\u002Fwp-content\u002Fuploads\u002F2024\u002F11\u002FLightRAG-VectorDB-Json-KV-Store-Indexing-Flowchart-scaled.jpg)\n*Figure 1: LightRAG Indexing Flowchart - Img Caption : [Source](https:\u002F\u002Flearnopencv.com\u002Flightrag\u002F)*\n![LightRAG Retrieval and Querying Flowchart](https:\u002F\u002Flearnopencv.com\u002Fwp-content\u002Fuploads\u002F2024\u002F11\u002FLightRAG-Querying-Flowchart-Dual-Level-Retrieval-Generation-Knowledge-Graphs-scaled.jpg)\n*Figure 2: LightRAG Retrieval and Querying Flowchart - Img Caption : [Source](https:\u002F\u002Flearnopencv.com\u002Flightrag\u002F)*\n\n\u003C\u002Fdetails>\n\n## Installation\n\n**💡 Using uv for Package Management**: This project uses [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) for fast and reliable Python package management. Install uv first: `curl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002Finstall.sh | sh` (Unix\u002FmacOS) or `powershell -c \"irm https:\u002F\u002Fastral.sh\u002Fuv\u002Finstall.ps1 | iex\"` (Windows)\n\n> **Note**: You can also use pip if you prefer, but uv is recommended for better performance and more reliable dependency management.\n>\n> **📦 Offline Deployment**: For offline or air-gapped environments, see the [Offline Deployment Guide](.\u002Fdocs\u002FOfflineDeployment.md) for instructions on pre-installing all dependencies and cache files.\n\n### Install LightRAG Server\n\nThe LightRAG Server is designed to provide Web UI and API support. The Web UI facilitates document indexing, knowledge graph exploration, and a simple RAG query interface. LightRAG Server also provide an Ollama compatible interfaces, aiming to emulate LightRAG as an Ollama chat model. This allows AI chat bot, such as Open WebUI, to access LightRAG easily.\n\n* Install from PyPI\n\n```bash\n### Install LightRAG Server as tool using uv (recommended)\nuv tool install \"lightrag-hku[api]\"\n\n### Or using pip\n# python -m venv .venv\n# source .venv\u002Fbin\u002Factivate  # Windows: .venv\\Scripts\\activate\n# pip install \"lightrag-hku[api]\"\n\n### Build front-end artifacts\ncd lightrag_webui\nbun install --frozen-lockfile\nbun run build\ncd ..\n\n# Setup env file\n# Obtain the env.example file by downloading it from the GitHub repository root\n# or by copying it from a local source checkout.\ncp env.example .env  # Update the .env with your LLM and embedding configurations\n# Launch the server\nlightrag-server\n```\n\n* Installation from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG.git\ncd LightRAG\n\n# Bootstrap the development environment (recommended)\nmake dev\nsource .venv\u002Fbin\u002Factivate  # Activate the virtual environment (Linux\u002FmacOS)\n# Or on Windows: .venv\\Scripts\\activate\n\n# make dev installs the test toolchain plus the full offline stack\n# (API, storage backends, and provider integrations), then builds the frontend.\n# Run make env-base or copy env.example to .env before starting the server.\n\n# Equivalent manual steps with uv\n# Note: uv sync automatically creates a virtual environment in .venv\u002F\nuv sync --extra test --extra offline\nsource .venv\u002Fbin\u002Factivate  # Activate the virtual environment (Linux\u002FmacOS)\n# Or on Windows: .venv\\Scripts\\activate\n\n### Or using pip with virtual environment\n# python -m venv .venv\n# source .venv\u002Fbin\u002Factivate  # Windows: .venv\\Scripts\\activate\n# pip install -e \".[test,offline]\"\n\n# Build front-end artifacts\ncd lightrag_webui\nbun install --frozen-lockfile\nbun run build\ncd ..\n\n# setup env file\nmake env-base  # Or: cp env.example .env and update it manually\n# Launch API-WebUI server\nlightrag-server\n```\n\n* Launching the LightRAG Server with Docker Compose\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG.git\ncd LightRAG\ncp env.example .env  # Update the .env with your LLM and embedding configurations\n# modify LLM and Embedding settings in .env\ndocker compose up\n```\n\n> Historical versions of LightRAG docker images can be found here: [LightRAG Docker Images]( https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fpkgs\u002Fcontainer\u002Flightrag)\n>\n> Official GHCR images published by GitHub Actions are signed with Sigstore Cosign using GitHub OIDC. See [docs\u002FDockerDeployment.md](.\u002Fdocs\u002FDockerDeployment.md#verify-official-ghcr-images-with-cosign) for verification commands.\n\n### Create .env File With Setup Tool\n\nInstead of editing `env.example` by hand, use the interactive setup wizard to generate a configured `.env` and, when needed, `docker-compose.final.yml`:\n\n```bash\nmake env-base           # Required first step: LLM, embedding, reranker\nmake env-storage        # Optional: storage backends and database services\nmake env-server         # Optional: server port, auth, and SSL\nmake env-base-rewrite   # Optional: force-regenerate wizard-managed compose services\nmake env-storage-rewrite # Optional: force-regenerate wizard-managed compose services\nmake env-security-check # Optional: audit the current .env for security risks\n```\n\nFor full description of every target see [docs\u002FInteractiveSetup.md](.\u002Fdocs\u002FInteractiveSetup.md).\nThe setup wizards update configuration only; run `make env-security-check` separately to audit the\ncurrent `.env` for security risks before deployment.\nBy default, rerunning the setup preserves unchanged wizard-managed compose service blocks; use a\n`*-rewrite` target only when you need to rebuild those managed blocks from the bundled templates.\n\n### Install  LightRAG Core\n\n* Install from source (Recommended)\n\n```bash\ncd LightRAG\n# Note: uv sync automatically creates a virtual environment in .venv\u002F\nuv sync\nsource .venv\u002Fbin\u002Factivate  # Activate the virtual environment (Linux\u002FmacOS)\n# Or on Windows: .venv\\Scripts\\activate\n\n# Or: pip install -e .\n```\n\n* Install from PyPI\n\n```bash\nuv pip install lightrag-hku\n# Or: pip install lightrag-hku\n```\n\n## Quick Start\n\n### LLM and Technology Stack Requirements for LightRAG\n\nLightRAG's demands on the capabilities of Large Language Models (LLMs) are significantly higher than those of traditional RAG, as it requires the LLM to perform entity-relationship extraction tasks from documents. Configuring appropriate Embedding and Reranker models is also crucial for improving query performance.\n\n- **LLM Selection**:\n  - It is recommended to use an LLM with at least 32 billion parameters.\n  - The context length should be at least 32KB, with 64KB being recommended.\n  - It is not recommended to choose reasoning models during the document indexing stage.\n  - During the query stage, it is recommended to choose models with stronger capabilities than those used in the indexing stage to achieve better query results.\n- **Embedding Model**:\n  - A high-performance Embedding model is essential for RAG.\n  - We recommend using mainstream multilingual Embedding models, such as: `BAAI\u002Fbge-m3` and `text-embedding-3-large`.\n  - **Important Note**: The Embedding model must be determined before document indexing, and the same model must be used during the document query phase. For certain storage solutions (e.g., PostgreSQL), the vector dimension must be defined upon initial table creation. Therefore, when changing embedding models, it is necessary to delete the existing vector-related tables and allow LightRAG to recreate them with the new dimensions.\n- **Reranker Model Configuration**:\n  - Configuring a Reranker model can significantly enhance LightRAG's retrieval performance.\n  - When a Reranker model is enabled, it is recommended to set the \"mix mode\" as the default query mode.\n  - We recommend using mainstream Reranker models, such as: `BAAI\u002Fbge-reranker-v2-m3` or models provided by services like Jina.\n\n### Quick Start for LightRAG Server\n\nThe LightRAG Server is designed to provide Web UI and API support. The LightRAG Server offers a comprehensive knowledge graph visualization feature. It supports various gravity layouts, node queries, subgraph filtering, and more. For more information about LightRAG Server, please refer to [LightRAG Server](.\u002Fdocs\u002FLightRAG-API-Server.md).\n\n![iShot_2025-03-23_12.40.08](.\u002FREADME.assets\u002FiShot_2025-03-23_12.40.08.png)\n\n\n### Quick Start for LightRAG core\n\nTo get started with LightRAG core, refer to the sample codes available in the `examples` folder. Additionally, a [video demo](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=g21royNJ4fw) demonstration is provided to guide you through the local setup process. If you already possess an OpenAI API key, you can run the demo right away:\n\n```bash\n### you should run the demo code with project folder\ncd LightRAG\n### provide your API-KEY for OpenAI\nexport OPENAI_API_KEY=\"sk-...your_opeai_key...\"\n### download the demo document of \"A Christmas Carol\" by Charles Dickens\ncurl https:\u002F\u002Fraw.githubusercontent.com\u002Fgusye1234\u002Fnano-graphrag\u002Fmain\u002Ftests\u002Fmock_data.txt > .\u002Fbook.txt\n### run the demo code\npython examples\u002Flightrag_openai_demo.py\n```\n\nFor a streaming response implementation example, please see `examples\u002Flightrag_openai_compatible_demo.py`. Prior to execution, ensure you modify the sample code's LLM and embedding configurations accordingly.\n\n**Note 1**: When running the demo program, please be aware that different test scripts may use different embedding models. If you switch to a different embedding model, you must clear the data directory (`.\u002Fdickens`); otherwise, the program may encounter errors. If you wish to retain the LLM cache, you can preserve the `kv_store_llm_response_cache.json` file while clearing the data directory.\n\n**Note 2**: Only `lightrag_openai_demo.py` and `lightrag_openai_compatible_demo.py` are officially supported sample codes. Other sample files are community contributions that haven't undergone full testing and optimization.\n\n## Programming with LightRAG Core\n\nFor the complete Core API reference — including init parameters, `QueryParam`, LLM\u002Fembedding provider examples (OpenAI, Ollama, Azure, Gemini, HuggingFace, LlamaIndex), reranker injection, insert operations, entity\u002Frelation management, and delete\u002Fmerge — see **[docs\u002FProgramingWithCore.md](.\u002Fdocs\u002FProgramingWithCore.md)**.\n\n> ⚠️ **If you would like to integrate LightRAG into your project, we recommend utilizing the REST API provided by the LightRAG Server**. LightRAG Core is typically intended for embedded applications or for researchers who wish to conduct studies and evaluations.\n\n### Advanced Features\n\nLightRAG provides additional capabilities including token usage tracking, knowledge graph data export, LLM cache management, Langfuse observability integration, and RAGAS-based evaluation. See **[docs\u002FAdvancedFeatures.md](.\u002Fdocs\u002FAdvancedFeatures.md)**.\n\n### Multimodal Document Processing (RAG-Anything Integration)\n\nLightRAG integrates with [RAG-Anything](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FRAG-Anything) for end-to-end multimodal RAG across PDFs, Office documents, images, tables, and formulas. For setup and usage examples, see **[docs\u002FAdvancedFeatures.md](.\u002Fdocs\u002FAdvancedFeatures.md)**.\n\n> LightRAG Server will soon integrate RAG-Anything’s multimodal processing capabilities into its file processing pipeline. Stay tuned.\n\n## Replicating Findings in the Papper\n\nLightRAG consistently outperforms NaiveRAG, RQ-RAG, HyDE, and GraphRAG across agriculture, computer science, legal, and mixed domains. For the full evaluation methodology, prompts, and reproduce steps, see **[docs\u002FReproduce.md](.\u002Fdocs\u002FReproduce.md)**.\n\n**Overall Performance Table**\n\n||**Agriculture**||**CS**||**Legal**||**Mix**||\n|----------------------|---------------|------------|------|------------|---------|------------|-------|------------|\n||NaiveRAG|**LightRAG**|NaiveRAG|**LightRAG**|NaiveRAG|**LightRAG**|NaiveRAG|**LightRAG**|\n|**Comprehensiveness**|32.4%|**67.6%**|38.4%|**61.6%**|16.4%|**83.6%**|38.8%|**61.2%**|\n|**Diversity**|23.6%|**76.4%**|38.0%|**62.0%**|13.6%|**86.4%**|32.4%|**67.6%**|\n|**Empowerment**|32.4%|**67.6%**|38.8%|**61.2%**|16.4%|**83.6%**|42.8%|**57.2%**|\n|**Overall**|32.4%|**67.6%**|38.8%|**61.2%**|15.2%|**84.8%**|40.0%|**60.0%**|\n||RQ-RAG|**LightRAG**|RQ-RAG|**LightRAG**|RQ-RAG|**LightRAG**|RQ-RAG|**LightRAG**|\n|**Comprehensiveness**|31.6%|**68.4%**|38.8%|**61.2%**|15.2%|**84.8%**|39.2%|**60.8%**|\n|**Diversity**|29.2%|**70.8%**|39.2%|**60.8%**|11.6%|**88.4%**|30.8%|**69.2%**|\n|**Empowerment**|31.6%|**68.4%**|36.4%|**63.6%**|15.2%|**84.8%**|42.4%|**57.6%**|\n|**Overall**|32.4%|**67.6%**|38.0%|**62.0%**|14.4%|**85.6%**|40.0%|**60.0%**|\n||HyDE|**LightRAG**|HyDE|**LightRAG**|HyDE|**LightRAG**|HyDE|**LightRAG**|\n|**Comprehensiveness**|26.0%|**74.0%**|41.6%|**58.4%**|26.8%|**73.2%**|40.4%|**59.6%**|\n|**Diversity**|24.0%|**76.0%**|38.8%|**61.2%**|20.0%|**80.0%**|32.4%|**67.6%**|\n|**Empowerment**|25.2%|**74.8%**|40.8%|**59.2%**|26.0%|**74.0%**|46.0%|**54.0%**|\n|**Overall**|24.8%|**75.2%**|41.6%|**58.4%**|26.4%|**73.6%**|42.4%|**57.6%**|\n||GraphRAG|**LightRAG**|GraphRAG|**LightRAG**|GraphRAG|**LightRAG**|GraphRAG|**LightRAG**|\n|**Comprehensiveness**|45.6%|**54.4%**|48.4%|**51.6%**|48.4%|**51.6%**|**50.4%**|49.6%|\n|**Diversity**|22.8%|**77.2%**|40.8%|**59.2%**|26.4%|**73.6%**|36.0%|**64.0%**|\n|**Empowerment**|41.2%|**58.8%**|45.2%|**54.8%**|43.6%|**56.4%**|**50.8%**|49.2%|\n|**Overall**|45.2%|**54.8%**|48.0%|**52.0%**|47.2%|**52.8%**|**50.4%**|49.6%|\n\n\n## 🔗 Related Projects\n\n*Ecosystem & Extensions*\n\n\u003Cdiv align=\"center\">\n  \u003Ctable>\n    \u003Ctr>\n      \u003Ctd align=\"center\">\n        \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FRAG-Anything\">\n          \u003Cdiv style=\"width: 100px; height: 100px; background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%); border-radius: 15px; border: 1px solid rgba(0, 217, 255, 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;\">\n            \u003Cspan style=\"font-size: 32px;\">📸\u003C\u002Fspan>\n          \u003C\u002Fdiv>\n          \u003Cb>RAG-Anything\u003C\u002Fb>\u003Cbr>\n          \u003Csub>Multimodal RAG\u003C\u002Fsub>\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n      \u003Ctd align=\"center\">\n        \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FVideoRAG\">\n          \u003Cdiv style=\"width: 100px; height: 100px; background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%); border-radius: 15px; border: 1px solid rgba(0, 217, 255, 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;\">\n            \u003Cspan style=\"font-size: 32px;\">🎥\u003C\u002Fspan>\n          \u003C\u002Fdiv>\n          \u003Cb>VideoRAG\u003C\u002Fb>\u003Cbr>\n          \u003Csub>Extreme Long-Context Video RAG\u003C\u002Fsub>\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n      \u003Ctd align=\"center\">\n        \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FMiniRAG\">\n          \u003Cdiv style=\"width: 100px; height: 100px; background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%); border-radius: 15px; border: 1px solid rgba(0, 217, 255, 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;\">\n            \u003Cspan style=\"font-size: 32px;\">✨\u003C\u002Fspan>\n          \u003C\u002Fdiv>\n          \u003Cb>MiniRAG\u003C\u002Fb>\u003Cbr>\n          \u003Csub>Extremely Simple RAG\u003C\u002Fsub>\n        \u003C\u002Fa>\n      \u003C\u002Ftd>\n    \u003C\u002Ftr>\n  \u003C\u002Ftable>\n\u003C\u002Fdiv>\n\n---\n\n## ⭐ Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=HKUDS\u002FLightRAG&type=Date)](https:\u002F\u002Fstar-history.com\u002F#HKUDS\u002FLightRAG&Date)\n\n## 🤝 Contribution\n\n\u003Cdiv align=\"center\">\n  We welcome contributions of all kinds — bug fixes, new features, documentation improvements, and more.\u003Cbr>\n  Please read our \u003Ca href=\".github\u002FCONTRIBUTING.md\">\u003Cstrong>Contributing Guide\u003C\u002Fstrong>\u003C\u002Fa> before submitting a pull request.\n\u003C\u002Fdiv>\n\n\u003Cbr>\n\n\u003Cdiv align=\"center\">\n  We thank all our contributors for their valuable contributions.\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fgraphs\u002Fcontributors\">\n    \u003Cimg src=\"https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=HKUDS\u002FLightRAG\" style=\"border-radius: 15px; box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fdiv>\n\n\n## 📖 Citation\n\n```python\n@article{guo2024lightrag,\ntitle={LightRAG: Simple and Fast Retrieval-Augmented Generation},\nauthor={Zirui Guo and Lianghao Xia and Yanhua Yu and Tu Ao and Chao Huang},\nyear={2024},\neprint={2410.05779},\narchivePrefix={arXiv},\nprimaryClass={cs.IR}\n}\n```\n\n---\n\n\u003Cdiv align=\"center\" style=\"background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; padding: 30px; margin: 30px 0;\">\n  \u003Cdiv>\n    \u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F74038190\u002F212284100-561aa473-3905-4a80-b561-0d28506553ee.gif\" width=\"500\">\n  \u003C\u002Fdiv>\n  \u003Cdiv style=\"margin-top: 20px;\">\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\" style=\"text-decoration: none;\">\n      \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F⭐%20Star%20us%20on%20GitHub-1a1a2e?style=for-the-badge&logo=github&logoColor=white\">\n    \u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fissues\" style=\"text-decoration: none;\">\n      \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🐛%20Report%20Issues-ff6b6b?style=for-the-badge&logo=github&logoColor=white\">\n    \u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FLightRAG\u002Fdiscussions\" style=\"text-decoration: none;\">\n      \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F💬%20Discussions-4ecdc4?style=for-the-badge&logo=github&logoColor=white\">\n    \u003C\u002Fa>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \u003Cdiv style=\"width: 100%; max-width: 600px; margin: 20px auto; padding: 20px; background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%); border-radius: 15px; border: 1px solid rgba(0, 217, 255, 0.2);\">\n    \u003Cdiv style=\"display: flex; justify-content: center; align-items: center; gap: 15px;\">\n      \u003Cspan style=\"font-size: 24px;\">⭐\u003C\u002Fspan>\n      \u003Cspan style=\"color: #00d9ff; font-size: 18px;\">Thank you for visiting LightRAG!\u003C\u002Fspan>\n      \u003Cspan style=\"font-size: 24px;\">⭐\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n","LightRAG 是一个简单且快速的检索增强生成框架。它通过结合大型语言模型和外部知识库，实现了高效的信息检索与文本生成一体化处理，支持多种预训练模型如GPT-4，并且能够无缝集成知识图谱以提升生成内容的质量与准确性。该工具特别适用于需要在对话系统、文档摘要、代码生成等场景中利用大量背景信息来提高输出相关性和多样性的应用。基于Python开发，易于上手，且遵循MIT许可协议开放源码。",2,"2026-06-06 02:46:06","top_all"]