[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
graph = MemgraphGraph(url="bolt://localhost:7687", username="", password="")
documents = [Document(page_content="this is test")]
llm_transformer = LLMGraphTransformer(llm=llm) # please define your llm here
graph_documents = llm_transformer.convert_to_graph_documents(documents)
graph.add_graph_documents(
graph_documents,
baseEntityLabel=False,
include_source=False
)
Error Message and Stack Trace (if applicable)
ClientError: {code: Memgraph.ClientError.MemgraphError.MemgraphError} {message: There is no procedure named 'apoc.merge.node'.}
Description
I understand that the community libs covers support for Memgraph database by extending the Neo4j graph class. However, the functions provided by the class methods do not work with Memgraph. For example. add_graph_documents throws multiple errors depending on the parameters set. In the code, setting parameters baseEntityLabel and include_source to False results in the following error
ClientError: {code: Memgraph.ClientError.MemgraphError.MemgraphError} {message: There is no procedure named 'apoc.merge.node'.}
Is Memgraph actually supported for usage with LLMGraphTransformer? Since Neo4jGraph can be used, and MemgraphGraph is derived from neo4j, i would expect it to work without any issue. Please let me know how i can use Memgraph with LLMGraphTransformers, if not can we add this support?
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000
Python Version: 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I understand that the community libs covers support for Memgraph database by extending the Neo4j graph class. However, the functions provided by the class methods do not work with Memgraph. For example.
add_graph_documents
throws multiple errors depending on the parameters set. In the code, setting parametersbaseEntityLabel
andinclude_source
toFalse
results in the following errorI'm not sure there exists any such procedures for memgraph as per this post on stackoverflow https://stackoverflow.com/questions/75244143/is-there-something-in-memgraph-that-has-the-same-function-as-apoc-in-neo4j
Now, setting just the
baseEntityLabel
toTrue
will result in the following errorsetting
include_source
toTrue
results in the following errorIs Memgraph actually supported for usage with
LLMGraphTransformer
? SinceNeo4jGraph
can be used, andMemgraphGraph
is derived from neo4j, i would expect it to work without any issue. Please let me know how i can use Memgraph withLLMGraphTransformers
, if not can we add this support?System Info
System Information
Package Information
Optional packages not installed
Other Dependencies