上传文件至 kg_lab_6.13
6.18 更新数据配置路径统一,和前端demo
This commit is contained in:
@@ -4,6 +4,8 @@ from langchain_core.prompts import ChatPromptTemplate
|
||||
from langchain_core.prompts.prompt import PromptTemplate
|
||||
from langchain_core.output_parsers import JsonOutputParser
|
||||
|
||||
from extraction_info import neo4j_url, neo4j_username, neo4j_password
|
||||
|
||||
qwen_llm = ChatOpenAI(
|
||||
openai_api_base="https://api.siliconflow.cn/v1",
|
||||
model_name="Qwen/Qwen2.5-72B-Instruct",
|
||||
@@ -111,9 +113,9 @@ from langchain_community.graphs import Neo4jGraph
|
||||
|
||||
|
||||
graph = Neo4jGraph(
|
||||
url="bolt://172.20.0.145:7687",
|
||||
username="neo4j",
|
||||
password="password",
|
||||
url = neo4j_url,
|
||||
username = neo4j_username,
|
||||
password = neo4j_password,
|
||||
)
|
||||
|
||||
graph.refresh_schema()
|
||||
|
||||
Reference in New Issue
Block a user