added tigergraph as graph storage
This commit is contained in:
parent
bd62bb3024
commit
d0734b119a
4 changed files with 1179 additions and 0 deletions
|
|
@ -35,3 +35,9 @@ ivfflat_lists = 100
|
||||||
|
|
||||||
[memgraph]
|
[memgraph]
|
||||||
uri = bolt://localhost:7687
|
uri = bolt://localhost:7687
|
||||||
|
|
||||||
|
[tigergraph]
|
||||||
|
uri = http://localhost:9000
|
||||||
|
username = tigergraph
|
||||||
|
password = your_password
|
||||||
|
graph_name = lightrag
|
||||||
|
|
|
||||||
|
|
@ -395,6 +395,13 @@ MEMGRAPH_PASSWORD=
|
||||||
MEMGRAPH_DATABASE=memgraph
|
MEMGRAPH_DATABASE=memgraph
|
||||||
# MEMGRAPH_WORKSPACE=forced_workspace_name
|
# MEMGRAPH_WORKSPACE=forced_workspace_name
|
||||||
|
|
||||||
|
### TigerGraph Configuration
|
||||||
|
TIGERGRAPH_URI=http://localhost:9000
|
||||||
|
TIGERGRAPH_USERNAME=tigergraph
|
||||||
|
TIGERGRAPH_PASSWORD='your_password'
|
||||||
|
TIGERGRAPH_GRAPH_NAME=lightrag
|
||||||
|
# TIGERGRAPH_WORKSPACE=forced_workspace_name
|
||||||
|
|
||||||
############################
|
############################
|
||||||
### Evaluation Configuration
|
### Evaluation Configuration
|
||||||
############################
|
############################
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ STORAGE_IMPLEMENTATIONS = {
|
||||||
"PGGraphStorage",
|
"PGGraphStorage",
|
||||||
"MongoGraphStorage",
|
"MongoGraphStorage",
|
||||||
"MemgraphStorage",
|
"MemgraphStorage",
|
||||||
|
"TigerGraphStorage",
|
||||||
],
|
],
|
||||||
"required_methods": ["upsert_node", "upsert_edge"],
|
"required_methods": ["upsert_node", "upsert_edge"],
|
||||||
},
|
},
|
||||||
|
|
@ -53,6 +54,11 @@ STORAGE_ENV_REQUIREMENTS: dict[str, list[str]] = {
|
||||||
"Neo4JStorage": ["NEO4J_URI", "NEO4J_USERNAME", "NEO4J_PASSWORD"],
|
"Neo4JStorage": ["NEO4J_URI", "NEO4J_USERNAME", "NEO4J_PASSWORD"],
|
||||||
"MongoGraphStorage": [],
|
"MongoGraphStorage": [],
|
||||||
"MemgraphStorage": ["MEMGRAPH_URI"],
|
"MemgraphStorage": ["MEMGRAPH_URI"],
|
||||||
|
"TigerGraphStorage": [
|
||||||
|
"TIGERGRAPH_URI",
|
||||||
|
"TIGERGRAPH_USERNAME",
|
||||||
|
"TIGERGRAPH_PASSWORD",
|
||||||
|
],
|
||||||
"AGEStorage": [
|
"AGEStorage": [
|
||||||
"AGE_POSTGRES_DB",
|
"AGE_POSTGRES_DB",
|
||||||
"AGE_POSTGRES_USER",
|
"AGE_POSTGRES_USER",
|
||||||
|
|
@ -101,6 +107,7 @@ STORAGES = {
|
||||||
"FaissVectorDBStorage": ".kg.faiss_impl",
|
"FaissVectorDBStorage": ".kg.faiss_impl",
|
||||||
"QdrantVectorDBStorage": ".kg.qdrant_impl",
|
"QdrantVectorDBStorage": ".kg.qdrant_impl",
|
||||||
"MemgraphStorage": ".kg.memgraph_impl",
|
"MemgraphStorage": ".kg.memgraph_impl",
|
||||||
|
"TigerGraphStorage": ".kg.tigergraph_impl",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
1159
lightrag/kg/tigergraph_impl.py
Normal file
1159
lightrag/kg/tigergraph_impl.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue