Merge pull request #1160 from Gardelll/fix-mongo-doc-status

Fix mongo doc status
This commit is contained in:
zrguo
2025-03-24 16:31:57 +08:00
committed by GitHub
3 changed files with 11 additions and 3 deletions

View File

@@ -140,10 +140,17 @@ NEO4J_USERNAME=neo4j
NEO4J_PASSWORD='your_password'
### MongoDB Configuration
MONGODB_URI=mongodb://root:root@localhost:27017/
MONGODB_DATABASE=LightRAG
MONGO_URI=mongodb://root:root@localhost:27017/
MONGO_DATABASE=LightRAG
MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
### Milvus Configuration
MILVUS_URI=http://localhost:19530
MILVUS_DB_NAME=lightrag
# MILVUS_USER=root
# MILVUS_PASSWORD=your_password
# MILVUS_TOKEN=your_token
### Qdrant
QDRANT_URL=http://localhost:16333
# QDRANT_API_KEY=your-api-key

View File

@@ -317,7 +317,7 @@ OracleGraphStorage Postgres
```
NanoVectorDBStorage NanoVector(default)
MilvusVectorDBStorge Milvus
MilvusVectorDBStorage Milvus
ChromaVectorDBStorage Chroma
TiDBVectorDBStorage TiDB
PGVectorStorage Postgres

View File

@@ -221,6 +221,7 @@ class MongoDocStatusStorage(DocStatusStorage):
created_at=doc.get("created_at"),
updated_at=doc.get("updated_at"),
chunks_count=doc.get("chunks_count", -1),
file_path=doc.get("file_path", doc["_id"])
)
for doc in result
}