yangdx
commited on
Commit
·
0244726
1
Parent(s):
c4d8067
Remove Gremlin storage implementaion
Browse files- README-zh.md +1 -1
- README.md +1 -1
- examples/lightrag_ollama_gremlin_demo.py +4 -0
- lightrag/api/README-zh.md +0 -1
- lightrag/api/README.md +0 -1
- lightrag/kg/__init__.py +3 -3
README-zh.md
CHANGED
@@ -1038,7 +1038,7 @@ rag.clear_cache(modes=["local"])
|
|
1038 |
| **working_dir** | `str` | 存储缓存的目录 | `lightrag_cache+timestamp` |
|
1039 |
| **kv_storage** | `str` | Storage type for documents and text chunks. Supported types: `JsonKVStorage`,`PGKVStorage`,`RedisKVStorage`,`MongoKVStorage` | `JsonKVStorage` |
|
1040 |
| **vector_storage** | `str` | Storage type for embedding vectors. Supported types: `NanoVectorDBStorage`,`PGVectorStorage`,`MilvusVectorDBStorage`,`ChromaVectorDBStorage`,`FaissVectorDBStorage`,`MongoVectorDBStorage`,`QdrantVectorDBStorage` | `NanoVectorDBStorage` |
|
1041 |
-
| **graph_storage** | `str` | Storage type for graph edges and nodes. Supported types: `NetworkXStorage`,`Neo4JStorage`,`PGGraphStorage`,`AGEStorage
|
1042 |
| **doc_status_storage** | `str` | Storage type for documents process status. Supported types: `JsonDocStatusStorage`,`PGDocStatusStorage`,`MongoDocStatusStorage` | `JsonDocStatusStorage` |
|
1043 |
| **chunk_token_size** | `int` | 拆分文档时每个块的最大令牌大小 | `1200` |
|
1044 |
| **chunk_overlap_token_size** | `int` | 拆分文档时两个块之间的重叠令牌大小 | `100` |
|
|
|
1038 |
| **working_dir** | `str` | 存储缓存的目录 | `lightrag_cache+timestamp` |
|
1039 |
| **kv_storage** | `str` | Storage type for documents and text chunks. Supported types: `JsonKVStorage`,`PGKVStorage`,`RedisKVStorage`,`MongoKVStorage` | `JsonKVStorage` |
|
1040 |
| **vector_storage** | `str` | Storage type for embedding vectors. Supported types: `NanoVectorDBStorage`,`PGVectorStorage`,`MilvusVectorDBStorage`,`ChromaVectorDBStorage`,`FaissVectorDBStorage`,`MongoVectorDBStorage`,`QdrantVectorDBStorage` | `NanoVectorDBStorage` |
|
1041 |
+
| **graph_storage** | `str` | Storage type for graph edges and nodes. Supported types: `NetworkXStorage`,`Neo4JStorage`,`PGGraphStorage`,`AGEStorage` | `NetworkXStorage` |
|
1042 |
| **doc_status_storage** | `str` | Storage type for documents process status. Supported types: `JsonDocStatusStorage`,`PGDocStatusStorage`,`MongoDocStatusStorage` | `JsonDocStatusStorage` |
|
1043 |
| **chunk_token_size** | `int` | 拆分文档时每个块的最大令牌大小 | `1200` |
|
1044 |
| **chunk_overlap_token_size** | `int` | 拆分文档时两个块之间的重叠令牌大小 | `100` |
|
README.md
CHANGED
@@ -1066,7 +1066,7 @@ Valid modes are:
|
|
1066 |
| **working_dir** | `str` | Directory where the cache will be stored | `lightrag_cache+timestamp` |
|
1067 |
| **kv_storage** | `str` | Storage type for documents and text chunks. Supported types: `JsonKVStorage`,`PGKVStorage`,`RedisKVStorage`,`MongoKVStorage` | `JsonKVStorage` |
|
1068 |
| **vector_storage** | `str` | Storage type for embedding vectors. Supported types: `NanoVectorDBStorage`,`PGVectorStorage`,`MilvusVectorDBStorage`,`ChromaVectorDBStorage`,`FaissVectorDBStorage`,`MongoVectorDBStorage`,`QdrantVectorDBStorage` | `NanoVectorDBStorage` |
|
1069 |
-
| **graph_storage** | `str` | Storage type for graph edges and nodes. Supported types: `NetworkXStorage`,`Neo4JStorage`,`PGGraphStorage`,`AGEStorage
|
1070 |
| **doc_status_storage** | `str` | Storage type for documents process status. Supported types: `JsonDocStatusStorage`,`PGDocStatusStorage`,`MongoDocStatusStorage` | `JsonDocStatusStorage` |
|
1071 |
| **chunk_token_size** | `int` | Maximum token size per chunk when splitting documents | `1200` |
|
1072 |
| **chunk_overlap_token_size** | `int` | Overlap token size between two chunks when splitting documents | `100` |
|
|
|
1066 |
| **working_dir** | `str` | Directory where the cache will be stored | `lightrag_cache+timestamp` |
|
1067 |
| **kv_storage** | `str` | Storage type for documents and text chunks. Supported types: `JsonKVStorage`,`PGKVStorage`,`RedisKVStorage`,`MongoKVStorage` | `JsonKVStorage` |
|
1068 |
| **vector_storage** | `str` | Storage type for embedding vectors. Supported types: `NanoVectorDBStorage`,`PGVectorStorage`,`MilvusVectorDBStorage`,`ChromaVectorDBStorage`,`FaissVectorDBStorage`,`MongoVectorDBStorage`,`QdrantVectorDBStorage` | `NanoVectorDBStorage` |
|
1069 |
+
| **graph_storage** | `str` | Storage type for graph edges and nodes. Supported types: `NetworkXStorage`,`Neo4JStorage`,`PGGraphStorage`,`AGEStorage` | `NetworkXStorage` |
|
1070 |
| **doc_status_storage** | `str` | Storage type for documents process status. Supported types: `JsonDocStatusStorage`,`PGDocStatusStorage`,`MongoDocStatusStorage` | `JsonDocStatusStorage` |
|
1071 |
| **chunk_token_size** | `int` | Maximum token size per chunk when splitting documents | `1200` |
|
1072 |
| **chunk_overlap_token_size** | `int` | Overlap token size between two chunks when splitting documents | `100` |
|
examples/lightrag_ollama_gremlin_demo.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import asyncio
|
2 |
import inspect
|
3 |
import os
|
|
|
1 |
+
##############################################
|
2 |
+
# Gremlin storage implementation is deprecated
|
3 |
+
##############################################
|
4 |
+
|
5 |
import asyncio
|
6 |
import inspect
|
7 |
import os
|
lightrag/api/README-zh.md
CHANGED
@@ -303,7 +303,6 @@ NetworkXStorage NetworkX(默认)
|
|
303 |
Neo4JStorage Neo4J
|
304 |
PGGraphStorage Postgres
|
305 |
AGEStorage AGE
|
306 |
-
GremlinStorage Gremlin
|
307 |
```
|
308 |
|
309 |
* VECTOR_STORAGE 支持的实现名称
|
|
|
303 |
Neo4JStorage Neo4J
|
304 |
PGGraphStorage Postgres
|
305 |
AGEStorage AGE
|
|
|
306 |
```
|
307 |
|
308 |
* VECTOR_STORAGE 支持的实现名称
|
lightrag/api/README.md
CHANGED
@@ -314,7 +314,6 @@ NetworkXStorage NetworkX(defualt)
|
|
314 |
Neo4JStorage Neo4J
|
315 |
PGGraphStorage Postgres
|
316 |
AGEStorage AGE
|
317 |
-
GremlinStorage Gremlin
|
318 |
```
|
319 |
|
320 |
* VECTOR_STORAGE supported implement-name
|
|
|
314 |
Neo4JStorage Neo4J
|
315 |
PGGraphStorage Postgres
|
316 |
AGEStorage AGE
|
|
|
317 |
```
|
318 |
|
319 |
* VECTOR_STORAGE supported implement-name
|
lightrag/kg/__init__.py
CHANGED
@@ -16,7 +16,7 @@ STORAGE_IMPLEMENTATIONS = {
|
|
16 |
# "MongoGraphStorage",
|
17 |
# "TiDBGraphStorage",
|
18 |
"AGEStorage",
|
19 |
-
"GremlinStorage",
|
20 |
"PGGraphStorage",
|
21 |
],
|
22 |
"required_methods": ["upsert_node", "upsert_edge"],
|
@@ -62,7 +62,7 @@ STORAGE_ENV_REQUIREMENTS: dict[str, list[str]] = {
|
|
62 |
"AGE_POSTGRES_USER",
|
63 |
"AGE_POSTGRES_PASSWORD",
|
64 |
],
|
65 |
-
"GremlinStorage": ["GREMLIN_HOST", "GREMLIN_PORT", "GREMLIN_GRAPH"],
|
66 |
"PGGraphStorage": [
|
67 |
"POSTGRES_USER",
|
68 |
"POSTGRES_PASSWORD",
|
@@ -104,7 +104,7 @@ STORAGES = {
|
|
104 |
"PGVectorStorage": ".kg.postgres_impl",
|
105 |
"AGEStorage": ".kg.age_impl",
|
106 |
"PGGraphStorage": ".kg.postgres_impl",
|
107 |
-
"GremlinStorage": ".kg.gremlin_impl",
|
108 |
"PGDocStatusStorage": ".kg.postgres_impl",
|
109 |
"FaissVectorDBStorage": ".kg.faiss_impl",
|
110 |
"QdrantVectorDBStorage": ".kg.qdrant_impl",
|
|
|
16 |
# "MongoGraphStorage",
|
17 |
# "TiDBGraphStorage",
|
18 |
"AGEStorage",
|
19 |
+
# "GremlinStorage",
|
20 |
"PGGraphStorage",
|
21 |
],
|
22 |
"required_methods": ["upsert_node", "upsert_edge"],
|
|
|
62 |
"AGE_POSTGRES_USER",
|
63 |
"AGE_POSTGRES_PASSWORD",
|
64 |
],
|
65 |
+
# "GremlinStorage": ["GREMLIN_HOST", "GREMLIN_PORT", "GREMLIN_GRAPH"],
|
66 |
"PGGraphStorage": [
|
67 |
"POSTGRES_USER",
|
68 |
"POSTGRES_PASSWORD",
|
|
|
104 |
"PGVectorStorage": ".kg.postgres_impl",
|
105 |
"AGEStorage": ".kg.age_impl",
|
106 |
"PGGraphStorage": ".kg.postgres_impl",
|
107 |
+
# "GremlinStorage": ".kg.gremlin_impl",
|
108 |
"PGDocStatusStorage": ".kg.postgres_impl",
|
109 |
"FaissVectorDBStorage": ".kg.faiss_impl",
|
110 |
"QdrantVectorDBStorage": ".kg.qdrant_impl",
|