yangdx
commited on
Commit
·
ba76171
1
Parent(s):
510c4d8
docs: add MongoDB storage support and improve storage client comment
Browse files- lightrag/api/README.md +1 -0
- lightrag/lightrag.py +2 -2
lightrag/api/README.md
CHANGED
@@ -183,6 +183,7 @@ OracleVectorDBStorag Oracle
|
|
183 |
```
|
184 |
JsonDocStatusStorage JsonFile(default)
|
185 |
PGDocStatusStorage Postgres
|
|
|
186 |
```
|
187 |
|
188 |
#### How Select Storage Type
|
|
|
183 |
```
|
184 |
JsonDocStatusStorage JsonFile(default)
|
185 |
PGDocStatusStorage Postgres
|
186 |
+
MongoDocStatusStorage MongoDB
|
187 |
```
|
188 |
|
189 |
#### How Select Storage Type
|
lightrag/lightrag.py
CHANGED
@@ -557,8 +557,8 @@ class LightRAG:
|
|
557 |
return storage_class
|
558 |
|
559 |
def set_storage_client(self, db_client):
|
560 |
-
#
|
561 |
-
#
|
562 |
for storage in [
|
563 |
self.vector_db_storage_cls,
|
564 |
self.graph_storage_cls,
|
|
|
557 |
return storage_class
|
558 |
|
559 |
def set_storage_client(self, db_client):
|
560 |
+
# Deprecated, seting correct value to *_storage of LightRAG insteaded
|
561 |
+
# Inject db to storage implementation (only tested on Oracle Database)
|
562 |
for storage in [
|
563 |
self.vector_db_storage_cls,
|
564 |
self.graph_storage_cls,
|