本页还没有译文
本页 13 段还没译成Español,下面显示的是英文原文。Memgraph integrations
还没翻译译自英文(docs.langchain.com)本页 13 段都还没译
Memgraph is a high-performance, in-memory graph database that is optimized for real-time queries and analytics. Get started with Memgraph by visiting their website.
Installation and setup
- Install the Python SDK with
pip install langchain-memgraph
MemgraphQAChain
There exists a wrapper around Memgraph database that allows you to generate Cypher statements based on the user input and use them to retrieve relevant information from the database.
from langchain_memgraph.chains.graph_qa import MemgraphQAChain
from langchain_memgraph.graphs.memgraph import MemgraphLangChainSee a usage example
Constructing a knowledge graph from unstructured data
You can use the integration to construct a knowledge graph from unstructured data.
Warning
The langchain-experimental package is no longer maintained. Examples that import from langchain_experimental may be outdated or broken. Use with caution.
from langchain_memgraph.graphs.memgraph import MemgraphLangChain
from langchain_neo4j import LLMGraphTransformerSee a usage example
Memgraph tools and toolkit
Memgraph also provides a toolkit that allows you to interact with the Memgraph database. See a usage example.
from langchain_memgraph import MemgraphToolkit