From e88ad5333070807863b69de23787a5afe38de893 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:35:17 +0000 Subject: [PATCH 1/2] Initial plan From 201b667ec77a93cedb284425900168f3685f79d9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:40:20 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=8C=E5=88=97=E5=87=BA=20LightRAG=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9A=84=E6=89=80=E6=9C=89=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: BukeLy <19304666+BukeLy@users.noreply.github.com> --- env.example | 12 +++++++----- src/config.py | 25 ++++++++++++++++++++----- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/env.example b/env.example index db7a4f2..41bb482 100644 --- a/env.example +++ b/env.example @@ -271,26 +271,28 @@ RAG_MAX_CONTEXT_TOKENS=3000 # ====== 存储后端配置 ====== # LightRAG 存储层配置(必须与 docker-compose 中的服务匹配) +# 完整支持列表参考:https://github.com/HKUDS/LightRAG # --- Vector Storage --- # 用于存储文档向量和语义检索 -# 可选值: QdrantVectorDBStorage, MilvusVectorDBStorage, PGVectorStorage, etc. +# 支持: NanoVectorDBStorage, MilvusVectorDBStorage, PGVectorStorage, +# FaissVectorDBStorage, QdrantVectorDBStorage, MongoVectorDBStorage VECTOR_STORAGE=QdrantVectorDBStorage # --- Key-Value Storage --- # 用于缓存和临时数据存储 -# 可选值: RedisKVStorage, JsonKVStorage +# 支持: JsonKVStorage, RedisKVStorage, PGKVStorage, MongoKVStorage KV_STORAGE=RedisKVStorage # --- Graph Storage --- # 用于存储知识图谱(实体和关系) -# 可选值: MemgraphStorage, Neo4JStorage +# 支持: NetworkXStorage, Neo4JStorage, PGGraphStorage, MongoGraphStorage, MemgraphStorage GRAPH_STORAGE=MemgraphStorage # --- Document Status Storage --- # 用于存储文档处理状态和追踪信息 -# 推荐值: RedisDocStatusStorage(生产环境), JsonDocStatusStorage(开发环境) -# 其他支持: MongoDocStatusStorage, PGDocStatusStorage +# 支持: JsonDocStatusStorage, RedisDocStatusStorage, PGDocStatusStorage, MongoDocStatusStorage +# 推荐: RedisDocStatusStorage(生产环境), JsonDocStatusStorage(开发环境) DOC_STATUS_STORAGE=RedisDocStatusStorage # ====== 可选配置 ====== diff --git a/src/config.py b/src/config.py index 0d1f8f5..10b33b8 100644 --- a/src/config.py +++ b/src/config.py @@ -168,22 +168,37 @@ class StorageConfig(BaseSettings): ) kv_storage: str = Field( default="RedisKVStorage", - description="KV Storage Type", + description=( + "KV Storage Type. " + "Supported: JsonKVStorage, RedisKVStorage, PGKVStorage, MongoKVStorage" + ), alias="KV_STORAGE" ) vector_storage: str = Field( - default="QdrantStorage", - description="Vector Storage Type", + default="QdrantVectorDBStorage", + description=( + "Vector Storage Type. " + "Supported: NanoVectorDBStorage, MilvusVectorDBStorage, PGVectorStorage, " + "FaissVectorDBStorage, QdrantVectorDBStorage, MongoVectorDBStorage" + ), alias="VECTOR_STORAGE" ) graph_storage: str = Field( default="MemgraphStorage", - description="Graph Storage Type", + description=( + "Graph Storage Type. " + "Supported: NetworkXStorage, Neo4JStorage, PGGraphStorage, " + "MongoGraphStorage, MemgraphStorage" + ), alias="GRAPH_STORAGE" ) doc_status_storage: str = Field( default="RedisDocStatusStorage", - description="Document Status Storage Type", + description=( + "Document Status Storage Type. " + "Supported: JsonDocStatusStorage, RedisDocStatusStorage, " + "PGDocStatusStorage, MongoDocStatusStorage" + ), alias="DOC_STATUS_STORAGE" ) redis_uri: str = Field(