{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "hkuds-lightrag--run-a-graph-rag-server-with-a-web-ui",
 "repo": "HKUDS/LightRAG",
 "repo_url": "https://github.com/HKUDS/LightRAG",
 "repo_slug": "hkuds-lightrag",
 "title": "Run a knowledge-graph RAG server with a web UI",
 "page_title": "How to run a knowledge-graph RAG server with a web UI with LightRAG",
 "summary": "Install the LightRAG Server, point it at your models and query documents through the WebUI.",
 "who": "A researcher who wants answers that connect people, companies and events across many documents.",
 "problem": "Plain vector RAG returns fragments and misses how entities relate across files.",
 "outcome": "A local LightRAG server where you insert documents, ask questions and see the knowledge graph.",
 "steps": [
  "Install the server as a tool with `uv tool install \"lightrag-hku[api]\"`",
  "Copy the example config with `cp env.example .env` and set your LLM and embedding settings",
  "Start it with `lightrag-server`",
  "Open the WebUI to insert documents, query them and visualize the graph",
  "Before exposing it on a network, set LIGHTRAG_API_KEY or AUTH_ACCOUNTS with TOKEN_SECRET in .env"
 ],
 "agent_prompt": "Install HKUDS/LightRAG Server with uv, configure .env for <LLM> and <embedding model>, bind it to 127.0.0.1, and load <documents>. Then ask <question> and show me the entities and relations it used.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Graph extraction quality depends heavily on the LLM; the README notes improvements for open models such as Qwen3-30B-A3B.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python with uv (recommended) or pip, or Docker Compose",
  "An LLM and an embedding model configured in .env",
  "Optional: storage backends such as PostgreSQL, Neo4j or OpenSearch"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "insecure-default",
   "notice": "The server binds to all interfaces by default and every endpoint is public without auth, so configure authentication or bind to 127.0.0.1 first."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hkuds-lightrag/run-a-graph-rag-server-with-a-web-ui/",
 "md": "https://dedupedai.com/use-cases/hkuds-lightrag/run-a-graph-rag-server-with-a-web-ui/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/hkuds-lightrag--run-a-graph-rag-server-with-a-web-ui.json",
 "api_version": "v1"
}
