Skip to content

LangChain能否通过LangChain_Neo4j接口与tugraph相连? #924

@wangmn-cufe

Description

@wangmn-cufe

我正在考虑使用LangChain_Neo4j接口实现将自然语言转换成Cypher语句的功能,https://www.langchain.com.cn/docs/integrations/graphs/neo4j_cypher/

执行如下代码

from langchain.chains import GraphCypherQAChain
from langchain_community.graphs import Neo4jGraph

graph = Neo4jGraph(
    url="bolt://localhost:7687",
    username="admin",
    password="73@TuGraph",
)

后报错:neo4j.exceptions.DatabaseError: {code: CypherException} {message: failed at src/cypher/execution_plan/pattern_graph_maker.cpp:403}

请问是因为该接口无法迁移到tugraph吗?还是因为我设置错了什么参数?如果是接口不支持,有没有什么其他好的方法做Cypher语句的生成?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions