zrguo commited on
Commit
cee2d02
·
unverified ·
2 Parent(s): 91c5685 fc90f47

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

Browse files
env.example CHANGED
@@ -140,10 +140,17 @@ NEO4J_USERNAME=neo4j
140
  NEO4J_PASSWORD='your_password'
141
 
142
  ### MongoDB Configuration
143
- MONGODB_URI=mongodb://root:root@localhost:27017/
144
- MONGODB_DATABASE=LightRAG
145
  MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
146
 
 
 
 
 
 
 
 
147
  ### Qdrant
148
  QDRANT_URL=http://localhost:16333
149
  # QDRANT_API_KEY=your-api-key
 
140
  NEO4J_PASSWORD='your_password'
141
 
142
  ### MongoDB Configuration
143
+ MONGO_URI=mongodb://root:root@localhost:27017/
144
+ MONGO_DATABASE=LightRAG
145
  MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
146
 
147
+ ### Milvus Configuration
148
+ MILVUS_URI=http://localhost:19530
149
+ MILVUS_DB_NAME=lightrag
150
+ # MILVUS_USER=root
151
+ # MILVUS_PASSWORD=your_password
152
+ # MILVUS_TOKEN=your_token
153
+
154
  ### Qdrant
155
  QDRANT_URL=http://localhost:16333
156
  # QDRANT_API_KEY=your-api-key
lightrag/api/README.md CHANGED
@@ -317,7 +317,7 @@ OracleGraphStorage Postgres
317
 
318
  ```
319
  NanoVectorDBStorage NanoVector(default)
320
- MilvusVectorDBStorge Milvus
321
  ChromaVectorDBStorage Chroma
322
  TiDBVectorDBStorage TiDB
323
  PGVectorStorage Postgres
 
317
 
318
  ```
319
  NanoVectorDBStorage NanoVector(default)
320
+ MilvusVectorDBStorage Milvus
321
  ChromaVectorDBStorage Chroma
322
  TiDBVectorDBStorage TiDB
323
  PGVectorStorage Postgres
lightrag/kg/mongo_impl.py CHANGED
@@ -221,6 +221,7 @@ class MongoDocStatusStorage(DocStatusStorage):
221
  created_at=doc.get("created_at"),
222
  updated_at=doc.get("updated_at"),
223
  chunks_count=doc.get("chunks_count", -1),
 
224
  )
225
  for doc in result
226
  }
 
221
  created_at=doc.get("created_at"),
222
  updated_at=doc.get("updated_at"),
223
  chunks_count=doc.get("chunks_count", -1),
224
+ file_path=doc.get("file_path", doc["_id"])
225
  )
226
  for doc in result
227
  }