# lightrag-webui - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 lightrag-webui 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **AI 研究者或研究型 Agent 构建者**：README 明确围绕研究、实验或论文工作流展开。 证据：`README.md` Claim：`clm_0021` supported 0.86
- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0022` supported 0.86

## 它能做什么

- **Knowledge Graph-based RAG Retrieval**（需要安装后验证）：LightRAG uses graph-based knowledge representation to extract entities and relationships from documents, building a knowledge graph that enables multiple retrieval modes for enhanced information retrieval. 证据：`AGENTS.md`, `docs/Algorithm.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Multi-Engine Document Parsing Pipeline**（可做安装前预览）：LightRAG supports multiple content extraction engines (legacy, native, MinerU, Docling) with configurable routing by file extension and per-file hints. 证据：`docs/FileProcessingPipeline.md`, `AGENTS.md`, `docs/FileProcessingPipeline-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Multimodal Content Processing**（需要安装后验证）：LightRAG processes images, tables, and equations from documents via external MinerU/Docling services and VLM models, enabling multimodal RAG queries. 证据：`docs/AdvancedFeatures.md`, `README.md`, `docs/FileProcessingPipeline.md` Claim：`clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0005` supported 0.86, `clm_0006` supported 0.86 等
- **Multi-Backend Storage Architecture**（可做安装前预览）：LightRAG provides pluggable storage backends for KV, vector, graph, and doc-status storage with implementations including PostgreSQL, Neo4j, Redis, Milvus, Qdrant, MongoDB, OpenSearch, NetworkX, and more. 证据：`AGENTS.md`, `k8s-deploy/databases/README.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Multi-Provider LLM Integration**（需要安装后验证）：LightRAG supports multiple LLM providers including OpenAI, Azure, Ollama, Gemini, Bedrock, and Anthropic with role-specific configuration for extraction, querying, keywords, and VLM tasks. 证据：`AGENTS.md`, `docs/LightRAG-API-Server-zh.md`, `docs/AdvancedFeatures.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Multiple Text Chunking Strategies**（可做安装前预览）：LightRAG provides four selectable text chunking methods: Fix (token-size), Recursive, Vector (semantic), and Paragraph (semantic) for optimized document segmentation. 证据：`README.md`, `AGENTS.md`, `docs/FileProcessingPipeline-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Asymmetric Embedding Support**（可做安装前预览）：LightRAG supports query/document asymmetric embeddings for specialized models, with provider-specific configurations for Jina, Gemini, VoyageAI and prefix-based configurations for OpenAI/Azure/Ollama. 证据：`docs/AsymmetricEmbedding.md`, `docs/AsymmetricEmbedding.md`, `docs/DockerDeployment.md` Claim：`clm_0007` supported 0.86, `clm_0008` supported 0.86, `clm_0015` supported 0.86
- **Reranking Integration**（可做安装前预览）：LightRAG supports reranking of retrieved results to improve query accuracy, with support for mixed query modes as the default. 证据：`README.md`, `docs/DockerDeployment.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0007` supported 0.86, `clm_0008` supported 0.86 等
- **Token Usage Tracking**（可做安装前预览）：LightRAG provides a TokenTracker utility to monitor token consumption across LLM API calls for cost control and performance optimization. 证据：`docs/AdvancedFeatures.md`, `docs/AdvancedFeatures.md` Claim：`clm_0003` supported 0.86, `clm_0005` supported 0.86, `clm_0009` supported 0.86, `clm_0018` supported 0.86
- **REST API Server with FastAPI**（需要安装后验证）：LightRAG provides a FastAPI-based REST API server with Ollama-compatible endpoints, enabling integration with chatbots like Open WebUI and programmatic RAG operations. 证据：`AGENTS.md`, `docs/LightRAG-API-Server-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Interactive WebUI**（需要安装后验证）：LightRAG includes a React-based web interface for document indexing, knowledge graph exploration, and RAG querying with built-in 2D graph visualization using Sigma. 证据：`lightrag_webui/package.json`, `docs/LightRAG-API-Server-zh.md`, `lightrag_webui/README.md` Claim：`clm_0005` supported 0.86, `clm_0010` supported 0.86, `clm_0011` supported 0.86
- **3D Knowledge Graph Visualization**（可做安装前预览）：LightRAG includes a standalone 3D graph visualization tool using ModernGL for rendering, supporting multiple layout algorithms and community detection. 证据：`lightrag/tools/lightrag_visualizer/README.md`, `lightrag/tools/lightrag_visualizer/README.md` Claim：`clm_0012` supported 0.86
- **RAG Evaluation with RAGAS**（可做安装前预览）：LightRAG integrates RAGAS for RAG quality evaluation and Langfuse for tracing, with API returning retrieved contexts alongside query results for context precision metrics. 证据：`README.md`, `lightrag/evaluation/sample_documents/README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Kubernetes Deployment with Helm**（需要安装后验证）：LightRAG supports production Kubernetes deployment via Helm charts, with KubeBlocks integration for managing PostgreSQL, Neo4j, Redis, and other databases. 证据：`k8s-deploy/README.md`, `k8s-deploy/databases/README.md` Claim：`clm_0004` supported 0.86, `clm_0014` supported 0.86
- **Docker Compose Deployment**（需要安装后验证）：LightRAG can be deployed via Docker Compose with optional local embedding and reranking services via vLLM for GPU-accelerated inference. 证据：`docs/DockerDeployment.md`, `docs/DockerDeployment.md` Claim：`clm_0007` supported 0.86, `clm_0008` supported 0.86, `clm_0015` supported 0.86
- **Interactive Setup Wizard**（可做安装前预览）：LightRAG provides an interactive configuration wizard via make targets for LLM/embedding setup, storage backend selection, and server configuration. 证据：`docs/InteractiveSetup.md`, `README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Document Deletion with KG Regeneration**（可做安装前预览）：LightRAG supports deleting indexed documents with automatic regeneration of the associated knowledge graph structures. 证据：`README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Role-Based LLM Configuration**（可做安装前预览）：LightRAG supports configuring different LLM models and providers for distinct roles: EXTRACT (entity extraction), QUERY (query answering), KEYWORDS (keyword generation), and VLM (vision processing). 证据：`AGENTS.md`, `docs/AdvancedFeatures.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Large-Scale Dataset Processing**（可做安装前预览）：LightRAG eliminates processing bottlenecks to efficiently handle large-scale datasets with async operations and configurable concurrency. 证据：`README.md`, `AGENTS.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Storage Migration Support**（可做安装前预览）：LightRAG includes a StorageMigrationMixin for migrating data between storage backends and schema versions. 证据：`AGENTS.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等

## 怎么开始

- `uv tool install "lightrag-hku[api]"` 证据：`README.md` Claim：`clm_0023` supported 0.86
- `git clone https://github.com/HKUDS/LightRAG.git` 证据：`README.md` Claim：`clm_0024` supported 0.86
- `curl https://raw.githubusercontent.com/gusye1234/nano-graphrag/main/tests/mock_data.txt > ./book.txt` 证据：`README.md` Claim：`clm_0025` supported 0.86

## 继续前判断卡

- **当前建议**：先做角色匹配试用
- **为什么**：这个项目更像角色库，核心风险是选错角色或把角色文案当执行能力；先用 Prompt Preview 试角色匹配，再决定是否沙盒导入。

### 30 秒判断

- **现在怎么做**：先做角色匹配试用
- **最小安全下一步**：先用 Prompt Preview 试角色匹配；满意后再隔离导入
- **先别相信**：角色质量和任务匹配不能直接相信。
- **继续会触碰**：角色选择偏差、命令执行、宿主 AI 配置

### 现在可以相信

- **适合人群线索：AI 研究者或研究型 Agent 构建者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0021` supported 0.86
- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0022` supported 0.86
- **能力存在：Knowledge Graph-based RAG Retrieval**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`AGENTS.md`, `docs/Algorithm.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86
- **能力存在：Multi-Engine Document Parsing Pipeline**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`docs/FileProcessingPipeline.md`, `AGENTS.md`, `docs/FileProcessingPipeline-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86
- **能力存在：Multimodal Content Processing**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`docs/AdvancedFeatures.md`, `README.md`, `docs/FileProcessingPipeline.md` Claim：`clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0005` supported 0.86, `clm_0006` supported 0.86
- **能力存在：Multi-Backend Storage Architecture**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`AGENTS.md`, `k8s-deploy/databases/README.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86

### 现在还不能相信

- **角色质量和任务匹配不能直接相信。**（unverified）：角色库证明有很多角色，不证明每个角色都适合你的具体任务，也不证明角色能产生高质量结果。
- **不能把角色文案当成真实执行能力。**（unverified）：安装前只能判断角色描述和任务画像是否匹配，不能证明它能在宿主 AI 里完成任务。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`, `CLAUDE.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **角色选择偏差**：用户对任务应该由哪个专家角色处理的判断。 原因：选错角色会让 AI 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`, `CLAUDE.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`AGENTS.md`, `README.md`, `docs/AdvancedFeatures.md`, `docs/Algorithm.md` 等
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先用交互式试用验证任务画像和角色匹配，不要先导入整套角色库。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **保留原始角色选择记录**：如果输出偏题，可以回到任务画像阶段重新选择角色，而不是继续沿着错误角色推进。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0026` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0027` supported 0.86
- **风险**： 处理方式：
- **风险**： 处理方式：
- **风险**： 处理方式：
- **风险**： 处理方式：
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **Knowledge Graph-based RAG Retrieval**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`AGENTS.md`, `docs/Algorithm.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Multi-Engine Document Parsing Pipeline**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`docs/FileProcessingPipeline.md`, `AGENTS.md`, `docs/FileProcessingPipeline-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Multimodal Content Processing**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`docs/AdvancedFeatures.md`, `README.md`, `docs/FileProcessingPipeline.md` Claim：`clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0005` supported 0.86, `clm_0006` supported 0.86 等
- **Multi-Backend Storage Architecture**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`AGENTS.md`, `k8s-deploy/databases/README.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Multi-Provider LLM Integration**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`AGENTS.md`, `docs/LightRAG-API-Server-zh.md`, `docs/AdvancedFeatures.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Multiple Text Chunking Strategies**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`README.md`, `AGENTS.md`, `docs/FileProcessingPipeline-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Asymmetric Embedding Support**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`docs/AsymmetricEmbedding.md`, `docs/AsymmetricEmbedding.md`, `docs/DockerDeployment.md` Claim：`clm_0007` supported 0.86, `clm_0008` supported 0.86, `clm_0015` supported 0.86
- **Reranking Integration**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`README.md`, `docs/DockerDeployment.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0007` supported 0.86, `clm_0008` supported 0.86 等
- **Token Usage Tracking**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`docs/AdvancedFeatures.md`, `docs/AdvancedFeatures.md` Claim：`clm_0003` supported 0.86, `clm_0005` supported 0.86, `clm_0009` supported 0.86, `clm_0018` supported 0.86
- **REST API Server with FastAPI**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`AGENTS.md`, `docs/LightRAG-API-Server-zh.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等
- **Interactive WebUI**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`lightrag_webui/package.json`, `docs/LightRAG-API-Server-zh.md`, `lightrag_webui/README.md` Claim：`clm_0005` supported 0.86, `clm_0010` supported 0.86, `clm_0011` supported 0.86
- **3D Knowledge Graph Visualization**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`lightrag/tools/lightrag_visualizer/README.md`, `lightrag/tools/lightrag_visualizer/README.md` Claim：`clm_0012` supported 0.86
- **RAG Evaluation with RAGAS**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`README.md`, `lightrag/evaluation/sample_documents/README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Kubernetes Deployment with Helm**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`k8s-deploy/README.md`, `k8s-deploy/databases/README.md` Claim：`clm_0004` supported 0.86, `clm_0014` supported 0.86
- **Docker Compose Deployment**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`docs/DockerDeployment.md`, `docs/DockerDeployment.md` Claim：`clm_0007` supported 0.86, `clm_0008` supported 0.86, `clm_0015` supported 0.86
- **Interactive Setup Wizard**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`docs/InteractiveSetup.md`, `README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Document Deletion with KG Regeneration**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`README.md` Claim：`clm_0003` supported 0.86, `clm_0006` supported 0.86, `clm_0008` supported 0.86, `clm_0013` supported 0.86 等
- **Role-Based LLM Configuration**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`AGENTS.md`, `docs/AdvancedFeatures.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Large-Scale Dataset Processing**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`README.md`, `AGENTS.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0003` supported 0.86, `clm_0004` supported 0.86 等
- **Storage Migration Support**：先基于 role_skill_index / evidence_index 帮用户挑选可用角色、Skill 或工作流。 边界：可做安装前 Prompt 体验。 证据：`AGENTS.md` Claim：`clm_0001` supported 0.86, `clm_0002` supported 0.86, `clm_0004` supported 0.86, `clm_0005` supported 0.86 等

### 上下文规模

- 文件总数：415
- 重要文件覆盖：40/415
- 证据索引条目：80
- 角色 / Skill 条目：46

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 lightrag-webui 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 lightrag-webui 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 lightrag-webui 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```


## 角色 / Skill 索引

- 共索引 46 个角色 / Skill / 项目文档条目。

- **Repository Guidelines**（project_doc）：LightRAG is a Retrieval-Augmented Generation RAG framework that uses graph-based knowledge representation for enhanced information retrieval. The system extracts entities and relationships from documents, builds a knowledge graph, and uses multiple retrieval modes local , global , hybrid , mix , naive for queries. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`AGENTS.md`
- **Claude**（project_doc）：Strictly follow the rules in ./AGENTS.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CLAUDE.md`
- **🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation**（project_doc）：🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **LightRAG Helm Chart**（project_doc）：This is the Helm chart for LightRAG, used to deploy LightRAG services on a Kubernetes cluster. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`k8s-deploy/README.md`
- **LightRAG WebUI**（project_doc）：LightRAG WebUI is a React-based web interface for interacting with the LightRAG system. It provides a user-friendly interface for querying, managing, and exploring LightRAG's functionalities. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag_webui/README.md`
- **Using KubeBlocks to Deploy and Manage Databases**（project_doc）：Using KubeBlocks to Deploy and Manage Databases 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`k8s-deploy/databases/README.md`
- **Sample Documents for Evaluation**（project_doc）：These markdown files correspond to test questions in ../sample dataset.json . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/README.md`
- **LightRAG 3D Graph Viewer**（project_doc）：An interactive 3D graph visualization tool included in the LightRAG package for visualizing and analyzing RAG Retrieval-Augmented Generation graphs and other graph structures. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/tools/lightrag_visualizer/README.md`
- **Advanced Features**（project_doc）：LightRAG Server includes a multimodal document pipeline for text, images, tables, and equations. Document parsing is handled through external MinerU or Docling services configured by endpoint, so the server no longer needs to install or import the raganything package locally. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/AdvancedFeatures.md`
- **Algorithm**（project_doc）：! LightRAG Indexing Flowchart https://learnopencv.com/wp-content/uploads/2024/11/LightRAG-VectorDB-Json-KV-Store-Indexing-Flowchart-scaled.jpg Figure 1: LightRAG Indexing Flowchart - Img Caption : Source https://learnopencv.com/lightrag/ ! LightRAG Retrieval and Querying Flowchart https://learnopencv.com/wp-content/uploads/2024/11/LightRAG-Querying-Flowchart-Dual-Level-Retrieval-Generation-Knowledge-Graphs-scaled.jp… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/Algorithm.md`
- **Asymmetric Embedding Configuration**（project_doc）：LightRAG keeps embedding behavior symmetric by default. Query/document asymmetric embedding is enabled only when EMBEDDING ASYMMETRIC=true is explicitly set. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/AsymmetricEmbedding.md`
- **LightRAG Docker Deployment**（project_doc）：A lightweight Knowledge Graph Retrieval-Augmented Generation system with multiple LLM backend support. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/DockerDeployment.md`
- **文件处理流水线工作方式说明**（project_doc）：从版本 v1.5.0 （目前在dev分支）开始，LightRAG的文件处理流水线进行了重大的升级： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/FileProcessingPipeline-zh.md`
- **File Processing Pipeline Specification**（project_doc）：File Processing Pipeline Specification 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/FileProcessingPipeline.md`
- **Frontend Build Guide**（project_doc）：The LightRAG project includes a React-based WebUI frontend. This guide explains how frontend building works in different scenarios. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/FrontendBuildGuide.md`
- **Interactive Setup Guide**（project_doc）：Use the interactive setup wizard when you want LightRAG to guide you through the configuration instead of editing .env by hand. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/InteractiveSetup.md`
- **LightRAG 服务器和 WebUI**（project_doc）：LightRAG 服务器旨在提供 Web 界面和 API 支持。Web 界面便于文档索引、知识图谱探索和简单的 RAG 查询界面。LightRAG 服务器还提供了与 Ollama 兼容的接口，旨在将 LightRAG 模拟为 Ollama 聊天模型。这使得 AI 聊天机器人（如 Open WebUI）可以轻松访问 LightRAG。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/LightRAG-API-Server-zh.md`
- **LightRAG Server and WebUI**（project_doc）：The LightRAG Server is designed to provide a Web UI and API support. The Web UI facilitates document indexing, knowledge graph exploration, and a simple RAG query interface. LightRAG Server also provides an Ollama-compatible interface, aiming to emulate LightRAG as an Ollama chat model. This allows AI chat bots, such as Open WebUI, to access LightRAG easily. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/LightRAG-API-Server.md`
- **LightRAG Sidecar 文件格式说明**（project_doc）：本文介绍内解析引擎输出的 LightRAG Sidecar 文件格式。LightRAG 在使用native/mineru/docling这些支持多模态内容解析引擎提取文件内容的时候，会把"正文 + 多模态对象 + 解析元数据"拆开写到一个 .parsed/ 目录中，目录内的每个 JSON / JSONL 文件统称为 sidecar 文件。Sidecar 是后续流水线（多模态分析 → 多模态 chunk 构造 → 实体抽取 → 文档删除时的缓存清理）唯一可靠的依据。Sidecar的文件格式是LightRAG内置的通用文件交换格式，新的多模态内容提取引擎都需要遵循这个格式。公开 LightRAG Sidecar 文件格式的目的是给社区开发者编写字节的内容解析引擎提供方便。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/LightRAGSidecarFormat-zh.md`
- **LightRAG Sidecar File Format Specification**（project_doc）：LightRAG Sidecar File Format Specification 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/LightRAGSidecarFormat.md`
- **Milvus Configuration via vector db storage cls kwargs**（project_doc）：Milvus Configuration via vector db storage cls kwargs 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/MilvusConfigurationGuide.md`
- **Single-Server Multi-Site Deployment**（project_doc）：Single-Server Multi-Site Deployment 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/MultiSiteDeployment.md`
- **LightRAG Offline Deployment Guide**（project_doc）：This guide provides comprehensive instructions for deploying LightRAG in offline environments where internet access is limited or unavailable. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/OfflineDeployment.md`
- **Paragraph Semantic 分块策略**（project_doc）：Paragraph Semantic Chunking（下文简称 P 策略 ）面向 DOCX 等具有清晰章节结构的文档。其核心目标是： 让分块边界尽可能对齐文档原生的语义边界 （标题、段落、表格行），而不是仅由 token 长度计数决定切点。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ParagraphSemanticChunking-zh.md`
- **Paragraph Semantic Chunking Strategy**（project_doc）：Paragraph Semantic Chunking Strategy 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ParagraphSemanticChunking.md`
- **Parser CLI Debuger使用指南**（project_doc）：本工具用于本地调试 LightRAG 的三个内容解析引擎（ native / mineru / docling ），针对 单个文件 触发 LightRAG.parse 生产代码路径，并把解析产物（sidecar 与 raw 缓存）输出到一个 扁平目录布局 ——与生产入库目录相比，区别仅在于： 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ParserDebugCLI-zh.md`
- **Parser CLI Debugger Guide**（project_doc）：This tool is used to locally debug LightRAG's three content parsing engines native / mineru / docling . It triggers the LightRAG.parse production code path for a single file and outputs the parsing artifacts sidecar and raw cache into a flat directory layout . Compared with the production ingestion directory, the only differences are: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ParserDebugCLI.md`
- **Programming With LightRAG Core**（project_doc）：If you want to integrate LightRAG into your project, we recommend using the REST API provided by the LightRAG Server. LightRAG Core is intended for embedded applications or researchers conducting studies and evaluations. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/ProgramingWithCore.md`
- **Evaluation Result Reproduce**（project_doc）：The dataset used in LightRAG can be downloaded from TommyChien/UltraDomain https://huggingface.co/datasets/TommyChien/UltraDomain . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/Reproduce.md`
- **基于角色的 LLM/VLM 配置指南**（project_doc）：LightRAG 支持为不同处理阶段配置不同的 LLM 或 VLM。这个机制适合把低成本模型用于抽取，把更强模型用于最终回答，或为多模态分析单独指定视觉语言模型。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/RoleSpecificLLMConfiguration-zh.md`
- **Role-Specific LLM/VLM Configuration Guide**（project_doc）：Role-Specific LLM/VLM Configuration Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/RoleSpecificLLMConfiguration.md`
- **uv.lock Update Guide**（project_doc）：uv.lock is uv's lock file. It captures the exact version of every dependency, including transitive ones, much like: - Node.js package-lock.json - Rust Cargo.lock - Python Poetry poetry.lock 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/UV_LOCK_GUIDE.md`
- **LightRAG Project Intelligence .clinerules**（project_doc）：LightRAG Project Intelligence .clinerules 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`.clinerules/01-basic.md`
- **🚀 LightRAG: 简单且快速的检索增强生成（RAG）框架**（project_doc）：🎉 新闻 - 2026.05 🎯 新功能 ： 将 RagAnything 合并至 LightRAG 🎉。支持通过 MinerU / Docling 服务进行多模态内容解析与提取。 - 2026.05 🎯 新功能 ：引入四种可选的文本分块策略： Fix （固定）、 Recursive （递归）、 Vector （向量）和 Paragraph （段落语义）。 - 2026.05 🎯 新功能 ： 支持按角色配置 LLM ，提供四个独立角色：EXTRACT、QUERY、KEYWORDS 和 VLM，每个角色拥有独立的 LLM 设置。 - 2026.03 🎯 新功能 : 集成了 OpenSearch 作为统一存储后端，为 LightRAG 的全部四种存储类型提供全面支持。 - 2026.03 🎯 新功能 : 推出交互式安装向导，支持通过 Docker 在本地部署 Embedding、Reranking 及存储后端服务。 - 2025.1… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README-zh.md`
- **Reporting Security Issues**（project_doc）：The LightRAG team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`SECURITY.md`
- **LightRAG Helm Chart**（project_doc）：这是用于在Kubernetes集群上部署LightRAG服务的Helm chart。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`k8s-deploy/README-zh.md`
- **Folder for User-Defined Prompts**（project_doc）：This folder is designated for storing customized prompt templates created by users. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`prompts/UserCustomizePrompts.md`
- **📊 RAGAS-based Evaluation Framework**（project_doc）：RAGAS Retrieval Augmented Generation Assessment is a framework for reference-free evaluation of RAG systems using LLMs. RAGAS uses state-of-the-art evaluation metrics: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/README_EVALUASTION_RAGAS.md`
- **LightRAG Framework Overview**（project_doc）：LightRAG is a Simple and Fast Retrieval-Augmented Generation framework. LightRAG was developed by HKUDS Hong Kong University Data Science Lab . The framework provides developers with tools to build RAG applications efficiently. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/01_lightrag_overview.md`
- **RAG System Architecture**（project_doc）：A RAG system consists of three main components that work together to provide intelligent responses. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/02_rag_architecture.md`
- **LightRAG Improvements Over Traditional RAG**（project_doc）：LightRAG Improvements Over Traditional RAG 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/03_lightrag_improvements.md`
- **LightRAG Vector Database Support**（project_doc）：LightRAG supports multiple vector databases for flexible deployment options. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/04_supported_databases.md`
- **RAG Evaluation Metrics and Deployment**（project_doc）：RAG Evaluation Metrics and Deployment 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/evaluation/sample_documents/05_evaluation_and_deployment.md`
- **LLM Query Cache Cleanup Tool - User Guide**（project_doc）：LLM Query Cache Cleanup Tool - User Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/tools/README_CLEAN_LLM_QUERY_CACHE.md`
- **LLM Cache Migration Tool - User Guide**（project_doc）：LLM Cache Migration Tool - User Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/tools/README_MIGRATE_LLM_CACHE.md`
- **3D GraphML Viewer**（project_doc）：一个基于 Dear ImGui 和 ModernGL 的交互式 3D 图可视化工具。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`lightrag/tools/lightrag_visualizer/README-zh.md`

## 证据索引

- 共索引 80 条证据。

- **Repository Guidelines**（documentation）：LightRAG is a Retrieval-Augmented Generation RAG framework that uses graph-based knowledge representation for enhanced information retrieval. The system extracts entities and relationships from documents, builds a knowledge graph, and uses multiple retrieval modes local , global , hybrid , mix , naive for queries. 证据：`AGENTS.md`
- **Claude**（documentation）：Strictly follow the rules in ./AGENTS.md 证据：`CLAUDE.md`
- **🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation**（documentation）：🚀 LightRAG: Simple and Fast Retrieval-Augmented Generation 证据：`README.md`
- **LightRAG Helm Chart**（documentation）：This is the Helm chart for LightRAG, used to deploy LightRAG services on a Kubernetes cluster. 证据：`k8s-deploy/README.md`
- **LightRAG WebUI**（documentation）：LightRAG WebUI is a React-based web interface for interacting with the LightRAG system. It provides a user-friendly interface for querying, managing, and exploring LightRAG's functionalities. 证据：`lightrag_webui/README.md`
- **Using KubeBlocks to Deploy and Manage Databases**（documentation）：Using KubeBlocks to Deploy and Manage Databases 证据：`k8s-deploy/databases/README.md`
- **Sample Documents for Evaluation**（documentation）：These markdown files correspond to test questions in ../sample dataset.json . 证据：`lightrag/evaluation/sample_documents/README.md`
- **LightRAG 3D Graph Viewer**（documentation）：An interactive 3D graph visualization tool included in the LightRAG package for visualizing and analyzing RAG Retrieval-Augmented Generation graphs and other graph structures. 证据：`lightrag/tools/lightrag_visualizer/README.md`
- **Package**（package_manifest）：{ "name": "lightrag-webui", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint .", "preview": "vite preview", "test": "bun test", "test:watch": "bun test --watch", "test:coverage": "bun test --coverage", "dev:bun": "bunx --bun vite", "build:bun": "bunx --bun vite build", "preview:bun": "bunx --bun vite preview" }, "dependencies": { "@faker-js/faker": "^10.4.0", "@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-popover": "^1.1.15", "@radix-ui/react-progress": "^1.1.8", "@radix-ui/react-scroll-area": "^1.2.10", "@radix-ui/react-select": "^… 证据：`lightrag_webui/package.json`
- **License**（source_file）：Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the "Software" , to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 证据：`LICENSE`
- **Advanced Features**（documentation）：LightRAG Server includes a multimodal document pipeline for text, images, tables, and equations. Document parsing is handled through external MinerU or Docling services configured by endpoint, so the server no longer needs to install or import the raganything package locally. 证据：`docs/AdvancedFeatures.md`
- **Algorithm**（documentation）：! LightRAG Indexing Flowchart https://learnopencv.com/wp-content/uploads/2024/11/LightRAG-VectorDB-Json-KV-Store-Indexing-Flowchart-scaled.jpg Figure 1: LightRAG Indexing Flowchart - Img Caption : Source https://learnopencv.com/lightrag/ ! LightRAG Retrieval and Querying Flowchart https://learnopencv.com/wp-content/uploads/2024/11/LightRAG-Querying-Flowchart-Dual-Level-Retrieval-Generation-Knowledge-Graphs-scaled.jpg Figure 2: LightRAG Retrieval and Querying Flowchart - Img Caption : Source https://learnopencv.com/lightrag/ 证据：`docs/Algorithm.md`
- **Asymmetric Embedding Configuration**（documentation）：LightRAG keeps embedding behavior symmetric by default. Query/document asymmetric embedding is enabled only when EMBEDDING ASYMMETRIC=true is explicitly set. 证据：`docs/AsymmetricEmbedding.md`
- **LightRAG Docker Deployment**（documentation）：A lightweight Knowledge Graph Retrieval-Augmented Generation system with multiple LLM backend support. 证据：`docs/DockerDeployment.md`
- **文件处理流水线工作方式说明**（documentation）：从版本 v1.5.0 （目前在dev分支）开始，LightRAG的文件处理流水线进行了重大的升级： 证据：`docs/FileProcessingPipeline-zh.md`
- **File Processing Pipeline Specification**（documentation）：File Processing Pipeline Specification 证据：`docs/FileProcessingPipeline.md`
- **Frontend Build Guide**（documentation）：The LightRAG project includes a React-based WebUI frontend. This guide explains how frontend building works in different scenarios. 证据：`docs/FrontendBuildGuide.md`
- **Interactive Setup Guide**（documentation）：Use the interactive setup wizard when you want LightRAG to guide you through the configuration instead of editing .env by hand. 证据：`docs/InteractiveSetup.md`
- **LightRAG 服务器和 WebUI**（documentation）：LightRAG 服务器旨在提供 Web 界面和 API 支持。Web 界面便于文档索引、知识图谱探索和简单的 RAG 查询界面。LightRAG 服务器还提供了与 Ollama 兼容的接口，旨在将 LightRAG 模拟为 Ollama 聊天模型。这使得 AI 聊天机器人（如 Open WebUI）可以轻松访问 LightRAG。 证据：`docs/LightRAG-API-Server-zh.md`
- **LightRAG Server and WebUI**（documentation）：The LightRAG Server is designed to provide a Web UI and API support. The Web UI facilitates document indexing, knowledge graph exploration, and a simple RAG query interface. LightRAG Server also provides an Ollama-compatible interface, aiming to emulate LightRAG as an Ollama chat model. This allows AI chat bots, such as Open WebUI, to access LightRAG easily. 证据：`docs/LightRAG-API-Server.md`
- **LightRAG Sidecar 文件格式说明**（documentation）：本文介绍内解析引擎输出的 LightRAG Sidecar 文件格式。LightRAG 在使用native/mineru/docling这些支持多模态内容解析引擎提取文件内容的时候，会把"正文 + 多模态对象 + 解析元数据"拆开写到一个 .parsed/ 目录中，目录内的每个 JSON / JSONL 文件统称为 sidecar 文件。Sidecar 是后续流水线（多模态分析 → 多模态 chunk 构造 → 实体抽取 → 文档删除时的缓存清理）唯一可靠的依据。Sidecar的文件格式是LightRAG内置的通用文件交换格式，新的多模态内容提取引擎都需要遵循这个格式。公开 LightRAG Sidecar 文件格式的目的是给社区开发者编写字节的内容解析引擎提供方便。 证据：`docs/LightRAGSidecarFormat-zh.md`
- **LightRAG Sidecar File Format Specification**（documentation）：LightRAG Sidecar File Format Specification 证据：`docs/LightRAGSidecarFormat.md`
- **Milvus Configuration via vector db storage cls kwargs**（documentation）：Milvus Configuration via vector db storage cls kwargs 证据：`docs/MilvusConfigurationGuide.md`
- **Single-Server Multi-Site Deployment**（documentation）：Single-Server Multi-Site Deployment 证据：`docs/MultiSiteDeployment.md`
- **LightRAG Offline Deployment Guide**（documentation）：This guide provides comprehensive instructions for deploying LightRAG in offline environments where internet access is limited or unavailable. 证据：`docs/OfflineDeployment.md`
- **Paragraph Semantic 分块策略**（documentation）：Paragraph Semantic Chunking（下文简称 P 策略 ）面向 DOCX 等具有清晰章节结构的文档。其核心目标是： 让分块边界尽可能对齐文档原生的语义边界 （标题、段落、表格行），而不是仅由 token 长度计数决定切点。 证据：`docs/ParagraphSemanticChunking-zh.md`
- **Paragraph Semantic Chunking Strategy**（documentation）：Paragraph Semantic Chunking Strategy 证据：`docs/ParagraphSemanticChunking.md`
- **Parser CLI Debuger使用指南**（documentation）：本工具用于本地调试 LightRAG 的三个内容解析引擎（ native / mineru / docling ），针对 单个文件 触发 LightRAG.parse 生产代码路径，并把解析产物（sidecar 与 raw 缓存）输出到一个 扁平目录布局 ——与生产入库目录相比，区别仅在于： 证据：`docs/ParserDebugCLI-zh.md`
- **Parser CLI Debugger Guide**（documentation）：This tool is used to locally debug LightRAG's three content parsing engines native / mineru / docling . It triggers the LightRAG.parse production code path for a single file and outputs the parsing artifacts sidecar and raw cache into a flat directory layout . Compared with the production ingestion directory, the only differences are: 证据：`docs/ParserDebugCLI.md`
- **Programming With LightRAG Core**（documentation）：If you want to integrate LightRAG into your project, we recommend using the REST API provided by the LightRAG Server. LightRAG Core is intended for embedded applications or researchers conducting studies and evaluations. 证据：`docs/ProgramingWithCore.md`
- **Evaluation Result Reproduce**（documentation）：The dataset used in LightRAG can be downloaded from TommyChien/UltraDomain https://huggingface.co/datasets/TommyChien/UltraDomain . 证据：`docs/Reproduce.md`
- **基于角色的 LLM/VLM 配置指南**（documentation）：LightRAG 支持为不同处理阶段配置不同的 LLM 或 VLM。这个机制适合把低成本模型用于抽取，把更强模型用于最终回答，或为多模态分析单独指定视觉语言模型。 证据：`docs/RoleSpecificLLMConfiguration-zh.md`
- **Role-Specific LLM/VLM Configuration Guide**（documentation）：Role-Specific LLM/VLM Configuration Guide 证据：`docs/RoleSpecificLLMConfiguration.md`
- **uv.lock Update Guide**（documentation）：uv.lock is uv's lock file. It captures the exact version of every dependency, including transitive ones, much like: - Node.js package-lock.json - Rust Cargo.lock - Python Poetry poetry.lock 证据：`docs/UV_LOCK_GUIDE.md`
- **LightRAG Project Intelligence .clinerules**（documentation）：LightRAG Project Intelligence .clinerules 证据：`.clinerules/01-basic.md`
- **🚀 LightRAG: 简单且快速的检索增强生成（RAG）框架**（documentation）：🎉 新闻 - 2026.05 🎯 新功能 ： 将 RagAnything 合并至 LightRAG 🎉。支持通过 MinerU / Docling 服务进行多模态内容解析与提取。 - 2026.05 🎯 新功能 ：引入四种可选的文本分块策略： Fix （固定）、 Recursive （递归）、 Vector （向量）和 Paragraph （段落语义）。 - 2026.05 🎯 新功能 ： 支持按角色配置 LLM ，提供四个独立角色：EXTRACT、QUERY、KEYWORDS 和 VLM，每个角色拥有独立的 LLM 设置。 - 2026.03 🎯 新功能 : 集成了 OpenSearch 作为统一存储后端，为 LightRAG 的全部四种存储类型提供全面支持。 - 2026.03 🎯 新功能 : 推出交互式安装向导，支持通过 Docker 在本地部署 Embedding、Reranking 及存储后端服务。 - 2025.11 🎯 新功能 : 集成了 RAGAS 评估 和 Langfuse 追踪 。更新了 API 以在查询结果中返回召回上下文，支持上下文精度指标。 - 2025.10 🎯 可扩展性增强 : 消除了处理瓶颈，以高效支持 大规模数据集 。 - 2025.09 🎯 新功能 : 显著提升了 Qwen3-30B-A3B 等 开源 LLM 的知识图谱提取准确性。 - 2025.08 🎯 新功能 : 现已支持 Reranker ，显著提升混合查询性能（已设为默认查询模式）。 - 2025.08 🎯 新功能 : 添加了 文档删除 功能，并支持自动重新生成知识图谱，以确保最佳… 证据：`README-zh.md`
- **Reporting Security Issues**（documentation）：The LightRAG team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. 证据：`SECURITY.md`
- **LightRAG Helm Chart**（documentation）：这是用于在Kubernetes集群上部署LightRAG服务的Helm chart。 证据：`k8s-deploy/README-zh.md`
- **Folder for User-Defined Prompts**（documentation）：This folder is designated for storing customized prompt templates created by users. 证据：`prompts/UserCustomizePrompts.md`
- **📊 RAGAS-based Evaluation Framework**（documentation）：RAGAS Retrieval Augmented Generation Assessment is a framework for reference-free evaluation of RAG systems using LLMs. RAGAS uses state-of-the-art evaluation metrics: 证据：`lightrag/evaluation/README_EVALUASTION_RAGAS.md`
- **LightRAG Framework Overview**（documentation）：LightRAG is a Simple and Fast Retrieval-Augmented Generation framework. LightRAG was developed by HKUDS Hong Kong University Data Science Lab . The framework provides developers with tools to build RAG applications efficiently. 证据：`lightrag/evaluation/sample_documents/01_lightrag_overview.md`
- **RAG System Architecture**（documentation）：A RAG system consists of three main components that work together to provide intelligent responses. 证据：`lightrag/evaluation/sample_documents/02_rag_architecture.md`
- **LightRAG Improvements Over Traditional RAG**（documentation）：LightRAG Improvements Over Traditional RAG 证据：`lightrag/evaluation/sample_documents/03_lightrag_improvements.md`
- **LightRAG Vector Database Support**（documentation）：LightRAG supports multiple vector databases for flexible deployment options. 证据：`lightrag/evaluation/sample_documents/04_supported_databases.md`
- **RAG Evaluation Metrics and Deployment**（documentation）：RAG Evaluation Metrics and Deployment 证据：`lightrag/evaluation/sample_documents/05_evaluation_and_deployment.md`
- **LLM Query Cache Cleanup Tool - User Guide**（documentation）：LLM Query Cache Cleanup Tool - User Guide 证据：`lightrag/tools/README_CLEAN_LLM_QUERY_CACHE.md`
- **LLM Cache Migration Tool - User Guide**（documentation）：LLM Cache Migration Tool - User Guide 证据：`lightrag/tools/README_MIGRATE_LLM_CACHE.md`
- **3D GraphML Viewer**（documentation）：一个基于 Dear ImGui 和 ModernGL 的交互式 3D 图可视化工具。 证据：`lightrag/tools/lightrag_visualizer/README-zh.md`
- **.Prettierrc**（structured_config）：{ "$schema": "https://json.schemastore.org/prettierrc", "semi": false, "tabWidth": 2, "singleQuote": true, "printWidth": 100, "trailingComma": "none", "endOfLine": "crlf", "plugins": "prettier-plugin-tailwindcss" } 证据：`lightrag_webui/.prettierrc.json`
- **Components**（structured_config）：{ "$schema": "https://ui.shadcn.com/schema.json", "style": "new-york", "rsc": false, "tsx": true, "tailwind": { "config": "", "css": "src/index.css", "baseColor": "zinc", "cssVariables": true, "prefix": "" }, "aliases": { "components": "@/components", "utils": "@/lib/utils", "ui": "@/components/ui", "lib": "@/lib", "hooks": "@/hooks" }, "iconLibrary": "lucide" } 证据：`lightrag_webui/components.json`
- **Tsconfig**（structured_config）：{ "compilerOptions": { "target": "ES2022", "useDefineForClassFields": true, "lib": "ES2022", "DOM", "DOM.Iterable" , "module": "ESNext", "skipLibCheck": true, 证据：`lightrag_webui/tsconfig.json`
- **Sample Dataset**（structured_config）：{ "test cases": { "question": "How does LightRAG solve the hallucination problem in large language models?", "ground truth": "LightRAG solves the hallucination problem by combining large language models with external knowledge retrieval. The framework ensures accurate responses by grounding LLM outputs in actual documents. LightRAG provides contextual responses that reduce hallucinations significantly.", "project": "lightrag evaluation sample" }, { "question": "What are the three main components required in a RAG system?", "ground truth": "A RAG system requires three main components: a retrieval system vector database or search engine to find relevant documents, an embedding model to conver… 证据：`lightrag/evaluation/sample_dataset.json`
- **Sample Retrieval Oracle**（structured_config）：{ "oracle": { "question": "How does LightRAG solve the hallucination problem in large language models?", "expected documents": "01 lightrag overview.md" }, { "question": "What are the three main components required in a RAG system?", "expected documents": "02 rag architecture.md" }, { "question": "How does LightRAG's retrieval performance compare to traditional RAG approaches?", "expected documents": "03 lightrag improvements.md" }, { "question": "What vector databases does LightRAG support and what are their key characteristics?", "expected documents": "04 supported databases.md" }, { "question": "What are the four key metrics for evaluating RAG system quality and what does each metric mea… 证据：`lightrag/evaluation/sample_retrieval_oracle.json`
- **Ar**（structured_config）：{ "settings": { "language": "اللغة", "theme": "السمة", "light": "فاتح", "dark": "داكن", "system": "النظام" }, "header": { "documents": "المستندات", "knowledgeGraph": "شبكة المعرفة", "retrieval": "الاسترجاع", "api": "واجهة برمجة التطبيقات", "projectRepository": "مستودع المشروع", "logout": "تسجيل الخروج", "frontendNeedsRebuild": "الواجهة الأمامية تحتاج إلى إعادة البناء", "themeToggle": { "switchToLight": "التحويل إلى السمة الفاتحة", "switchToDark": "التحويل إلى السمة الداكنة" } }, "login": { "description": "الرجاء إدخال حسابك وكلمة المرور لتسجيل الدخول إلى النظام", "username": "اسم المستخدم", "usernamePlaceholder": "الرجاء إدخال اسم المستخدم", "password": "كلمة المرور", "passwordPlaceholder":… 证据：`lightrag_webui/src/locales/ar.json`
- **De**（structured_config）：{ "settings": { "language": "Sprache", "theme": "Design", "light": "Hell", "dark": "Dunkel", "system": "System" }, "header": { "documents": "Dokumente", "knowledgeGraph": "Wissensgraph", "retrieval": "Abruf", "api": "API", "projectRepository": "Projekt-Repository", "logout": "Abmelden", "frontendNeedsRebuild": "Frontend muss neu erstellt werden", "themeToggle": { "switchToLight": "Zu hellem Design wechseln", "switchToDark": "Zu dunklem Design wechseln" } }, "login": { "description": "Bitte geben Sie Ihr Konto und Passwort ein, um sich im System anzumelden", "username": "Benutzername", "usernamePlaceholder": "Bitte geben Sie einen Benutzernamen ein", "password": "Passwort", "passwordPlacehol… 证据：`lightrag_webui/src/locales/de.json`
- **En**（structured_config）：{ "settings": { "language": "Language", "theme": "Theme", "light": "Light", "dark": "Dark", "system": "System" }, "header": { "documents": "Documents", "knowledgeGraph": "Knowledge Graph", "retrieval": "Retrieval", "api": "API", "projectRepository": "Project Repository", "logout": "Logout", "frontendNeedsRebuild": "Frontend needs rebuild", "themeToggle": { "switchToLight": "Switch to light theme", "switchToDark": "Switch to dark theme" } }, "login": { "description": "Please enter your account and password to log in to the system", "username": "Username", "usernamePlaceholder": "Please input a username", "password": "Password", "passwordPlaceholder": "Please input a password", "loginButton":… 证据：`lightrag_webui/src/locales/en.json`
- **Fr**（structured_config）：{ "settings": { "language": "Langue", "theme": "Thème", "light": "Clair", "dark": "Sombre", "system": "Système" }, "header": { "documents": "Documents", "knowledgeGraph": "Graphe de connaissances", "retrieval": "Récupération", "api": "API", "projectRepository": "Référentiel du projet", "logout": "Déconnexion", "frontendNeedsRebuild": "Le frontend nécessite une reconstruction", "themeToggle": { "switchToLight": "Passer au thème clair", "switchToDark": "Passer au thème sombre" } }, "login": { "description": "Veuillez entrer votre compte et mot de passe pour vous connecter au système", "username": "Nom d'utilisateur", "usernamePlaceholder": "Veuillez saisir un nom d'utilisateur", "password": "… 证据：`lightrag_webui/src/locales/fr.json`
- **Ja**（structured_config）：{ "settings": { "language": "言語", "theme": "テーマ", "light": "ライト", "dark": "ダーク", "system": "システム" }, "header": { "documents": "ドキュメント", "knowledgeGraph": "ナレッジグラフ", "retrieval": "検索", "api": "API", "projectRepository": "プロジェクトリポジトリ", "logout": "ログアウト", "frontendNeedsRebuild": "フロントエンドの再ビルドが必要です", "themeToggle": { "switchToLight": "ライトテーマに切り替え", "switchToDark": "ダークテーマに切り替え" } }, "login": { "description": "システムにログインするには、アカウントとパスワードを入力してください", "username": "ユーザー名", "usernamePlaceholder": "ユーザー名を入力してください", "password": "パスワード", "passwordPlaceholder": "パスワードを入力してください", "loginButton": "ログイン", "loggingIn": "ログイン中...", "successMessage": "ログインに成功しました", "errorEmptyFields": "ユーザー名とパスワードを入力してください", "err… 证据：`lightrag_webui/src/locales/ja.json`
- **Ko**（structured_config）：{ "settings": { "language": "언어", "theme": "테마", "light": "라이트", "dark": "다크", "system": "시스템" }, "header": { "documents": "문서", "knowledgeGraph": "지식 그래프", "retrieval": "검색", "api": "API", "projectRepository": "프로젝트 저장소", "logout": "로그아웃", "frontendNeedsRebuild": "프론트엔드 재빌드 필요", "themeToggle": { "switchToLight": "라이트 테마로 전환", "switchToDark": "다크 테마로 전환" } }, "login": { "description": "시스템에 로그인하려면 계정과 비밀번호를 입력하세요", "username": "사용자 이름", "usernamePlaceholder": "사용자 이름을 입력하세요", "password": "비밀번호", "passwordPlaceholder": "비밀번호를 입력하세요", "loginButton": "로그인", "loggingIn": "로그인 중...", "successMessage": "로그인 성공", "errorEmptyFields": "사용자 이름과 비밀번호를 입력하세요", "errorInvalidCredentials": "로그인 실패, 사용자 이름… 证据：`lightrag_webui/src/locales/ko.json`
- **Ru**（structured_config）：{ "settings": { "language": "Язык", "theme": "Тема", "light": "Светлая", "dark": "Тёмная", "system": "Системная" }, "header": { "documents": "Документы", "knowledgeGraph": "Граф знаний", "retrieval": "Поиск", "api": "API", "projectRepository": "Репозиторий проекта", "logout": "Выйти", "frontendNeedsRebuild": "Требуется пересборка фронтенда", "themeToggle": { "switchToLight": "Переключить на светлую тему", "switchToDark": "Переключить на тёмную тему" } }, "login": { "description": "Пожалуйста, введите ваш аккаунт и пароль для входа в систему", "username": "Имя пользователя", "usernamePlaceholder": "Введите имя пользователя", "password": "Пароль", "passwordPlaceholder": "Введите пароль", "log… 证据：`lightrag_webui/src/locales/ru.json`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`AGENTS.md`, `CLAUDE.md`, `README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`AGENTS.md`, `CLAUDE.md`, `README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **LightRAG 简介**：importance `high`
  - source_paths: README.md, docs/Algorithm.md, lightrag/__init__.py
- **快速开始**：importance `high`
  - source_paths: examples/lightrag_openai_demo.py, examples/lightrag_openai_compatible_demo.py, env.example, docs/ProgramingWithCore.md
- **安装指南**：importance `high`
  - source_paths: pyproject.toml, Dockerfile, Dockerfile.postgres, docker-compose.yml, docs/OfflineDeployment.md
- **系统架构**：importance `high`
  - source_paths: lightrag/lightrag.py, lightrag/operate.py, lightrag/base.py, lightrag/pipeline.py, lightrag/kg/factory.py
- **存储后端**：importance `high`
  - source_paths: lightrag/kg/postgres_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/neo4j_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/redis_impl.py
- **文本分块策略**：importance `high`
  - source_paths: lightrag/chunker/__init__.py, lightrag/chunker/recursive_character.py, lightrag/chunker/semantic_vector.py, lightrag/chunker/paragraph_semantic.py, lightrag/chunker/token_size.py
- **知识图谱提取**：importance `high`
  - source_paths: lightrag/utils_graph.py, lightrag/prompt.py, lightrag/llm_roles.py, docs/Algorithm.md, examples/insert_custom_kg.py
- **多模态文档处理**：importance `high`
  - source_paths: lightrag/parser/__init__.py, lightrag/parser/external/docling/__init__.py, lightrag/parser/external/mineru/__init__.py, lightrag/parser/docx/__init__.py, lightrag/multimodal_context.py

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `3e60422305263fcb2938427bdf80a5d47a81c4a2`
- inspected_files: `pyproject.toml`, `Dockerfile`, `README.md`, `docker-compose.yml`, `uv.lock`, `docs/AdvancedFeatures.md`, `docs/LightRAG-API-Server-zh.md`, `docs/ParagraphSemanticChunking-zh.md`, `docs/InteractiveSetup.md`, `docs/RoleSpecificLLMConfiguration.md`, `docs/ParserDebugCLI.md`, `docs/ParagraphSemanticChunking.md`, `docs/OfflineDeployment.md`, `docs/Reproduce.md`, `docs/FileProcessingPipeline.md`, `docs/FileProcessingPipeline-zh.md`, `docs/ProgramingWithCore.md`, `docs/Algorithm.md`, `docs/MilvusConfigurationGuide.md`, `docs/LightRAG-API-Server.md`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 来源证据：Guidance on Adding Multimodal Support to LightRAG: Wrap with RAG‑Anything or Extend (modify) LightRAGs lightrag‑server?

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Guidance on Adding Multimodal Support to LightRAG: Wrap with RAG‑Anything or Extend (modify) LightRAGs lightrag‑server?
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | cevd_9aea67d79c4b46508c4267093ebb19da | https://github.com/HKUDS/LightRAG/issues/2642 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：[Question]: How to distinguish documents with same name but different content?

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：[Question]: How to distinguish documents with same name but different content?
- Host AI rule: 来源问题仍为 open，Pack Agent 需要复核是否仍影响当前版本。
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | cevd_6c7ed97673d041ef92d4ff54a3718289 | https://github.com/HKUDS/LightRAG/issues/3158 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 失败模式：installation: v1.4.10

- Trigger: Developers should check this installation risk before relying on the project: v1.4.10
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.10. Context: Observed when using windows
- Why it matters: Upgrade or migration may change expected behavior: v1.4.10
- Evidence: failure_mode_cluster:github_release | fmev_dceb1b266203b7a89767ff26a0852383 | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.10 | v1.4.10
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 失败模式：configuration: [Bug]: Not working on reverse proxy - sub path

- Trigger: Developers should check this configuration risk before relying on the project: [Bug]: Not working on reverse proxy - sub path
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: [Bug]: Not working on reverse proxy - sub path. Context: Observed when using python
- Why it matters: Developers may misconfigure credentials, environment, or host setup: [Bug]: Not working on reverse proxy - sub path
- Evidence: failure_mode_cluster:github_issue | fmev_13dbaaeb506c72cc5b9ecd91cdabc2a2 | https://github.com/HKUDS/LightRAG/issues/2755 | [Bug]: Not working on reverse proxy - sub path
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 失败模式：configuration: v1.4.11

- Trigger: Developers should check this configuration risk before relying on the project: v1.4.11
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.11. Context: Observed when using docker
- Why it matters: Upgrade or migration may change expected behavior: v1.4.11
- Evidence: failure_mode_cluster:github_release | fmev_eda26a0bfd194234d2eb2fa02f9bdae9 | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.11 | v1.4.11
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 失败模式：configuration: v1.4.11rc2

- Trigger: Developers should check this configuration risk before relying on the project: v1.4.11rc2
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.11rc2. Context: Observed during installation or first-run setup.
- Why it matters: Upgrade or migration may change expected behavior: v1.4.11rc2
- Evidence: failure_mode_cluster:github_release | fmev_0ff3ca856c8031ac2b0c56ec5eb253ab | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.11rc2 | v1.4.11rc2
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 失败模式：configuration: v1.4.12

- Trigger: Developers should check this configuration risk before relying on the project: v1.4.12
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.12. Context: Observed when using python
- Why it matters: Upgrade or migration may change expected behavior: v1.4.12
- Evidence: failure_mode_cluster:github_release | fmev_ded21b8d88cae5cd73ae76e6ec499f47 | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.12 | v1.4.12
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 8: 失败模式：configuration: v1.4.13

- Trigger: Developers should check this configuration risk before relying on the project: v1.4.13
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.13. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: v1.4.13
- Evidence: failure_mode_cluster:github_release | fmev_9e994731fd7834839bbe18111ec634c6 | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.13 | v1.4.13
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 9: 失败模式：configuration: v1.4.14

- Trigger: Developers should check this configuration risk before relying on the project: v1.4.14
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.4.14. Context: Observed when using python, docker
- Why it matters: Upgrade or migration may change expected behavior: v1.4.14
- Evidence: failure_mode_cluster:github_release | fmev_a1044f275fce0a09fbf5f7ff15ce5406 | https://github.com/HKUDS/LightRAG/releases/tag/v1.4.14 | v1.4.14
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 10: 失败模式：configuration: v1.5.0rc3

- Trigger: Developers should check this configuration risk before relying on the project: v1.5.0rc3
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: v1.5.0rc3. Context: Observed when using python
- Why it matters: Upgrade or migration may change expected behavior: v1.5.0rc3
- Evidence: failure_mode_cluster:github_release | fmev_f612aafe1cfe8a3c51740b6487bd93a7 | https://github.com/HKUDS/LightRAG/releases/tag/v1.5.0rc3 | v1.5.0rc3
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
