新增属性图的配置
This commit is contained in:
@@ -65,6 +65,13 @@ VECTOR_STORE_TYPE=chroma
|
|||||||
# The name of the collection in your vector database
|
# The name of the collection in your vector database
|
||||||
VECTOR_STORE_COLLECTION=default
|
VECTOR_STORE_COLLECTION=default
|
||||||
|
|
||||||
|
GRAPH_STORE_TYPE =
|
||||||
|
|
||||||
|
#---------- neo4j - PropertyGraph ----------------
|
||||||
|
NEO4J_USERNAME = neo4j
|
||||||
|
NEO4J_PASSWORD = neo4j
|
||||||
|
NEO4J_URL = bolt://10.1.6.40:7687
|
||||||
|
|
||||||
# The API endpoint for your vector database
|
# The API endpoint for your vector database
|
||||||
# VECTOR_STORE_HOST=
|
# VECTOR_STORE_HOST=
|
||||||
|
|
||||||
@@ -76,6 +83,7 @@ VECTOR_STORE_COLLECTION=default
|
|||||||
# Otherwise, use VECTOR_STORE__HOST and VECTOR_STORE__PORT config above
|
# Otherwise, use VECTOR_STORE__HOST and VECTOR_STORE__PORT config above
|
||||||
VECTOR_STORE_PATH=./storage_vector
|
VECTOR_STORE_PATH=./storage_vector
|
||||||
BM_RETRIEVER_PATH =./storage_bm
|
BM_RETRIEVER_PATH =./storage_bm
|
||||||
|
GRAPH_STORAGE_PATH =./storage_graph
|
||||||
|
|
||||||
|
|
||||||
PHOENIX_API_KEY=123456
|
PHOENIX_API_KEY=123456
|
||||||
@@ -111,3 +119,5 @@ CHAT_UPLOAD_FILECACHE = "./output/uploaded"
|
|||||||
|
|
||||||
JIEBA_DATA=./nltk_data
|
JIEBA_DATA=./nltk_data
|
||||||
NLTK_DATA=./nltk_data
|
NLTK_DATA=./nltk_data
|
||||||
|
|
||||||
|
PYTHONUTF8=1
|
||||||
@@ -40,7 +40,7 @@ class PropertyGraph:
|
|||||||
if GRAPH_STORE_TYPE == 'neo4j':
|
if GRAPH_STORE_TYPE == 'neo4j':
|
||||||
index = PropertyGraphIndex.from_existing(property_graph_store= get_Neo4j_Graph_Store(self._prjFlag))
|
index = PropertyGraphIndex.from_existing(property_graph_store= get_Neo4j_Graph_Store(self._prjFlag))
|
||||||
else:
|
else:
|
||||||
GRAPH_STORAGE_DIR = os.getenv("GRAPH_STORAGE_DIR", "storage_graph")
|
GRAPH_STORAGE_DIR = os.getenv("GRAPH_STORAGE_PATH", "storage_graph")
|
||||||
prjCachePath = GRAPH_STORAGE_DIR + f"/{self._prjFlag}"
|
prjCachePath = GRAPH_STORAGE_DIR + f"/{self._prjFlag}"
|
||||||
if not os.path.exists(prjCachePath):
|
if not os.path.exists(prjCachePath):
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user