Skip to content

Commit 83ea571

Browse files
authored
docs: Fix Memgraph class name (#31329)
- **Description:** Fix Memgraph name that has been changed in the integration.
1 parent 635ce60 commit 83ea571

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

docs/docs/integrations/graphs/memgraph.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,16 @@
6565
"\n",
6666
"from langchain_core.prompts import PromptTemplate\n",
6767
"from langchain_memgraph.chains.graph_qa import MemgraphQAChain\n",
68-
"from langchain_memgraph.graphs.memgraph import Memgraph\n",
68+
"from langchain_memgraph.graphs.memgraph import MemgraphLangChain\n",
6969
"from langchain_openai import ChatOpenAI\n",
7070
"\n",
7171
"url = os.environ.get(\"MEMGRAPH_URI\", \"bolt://localhost:7687\")\n",
7272
"username = os.environ.get(\"MEMGRAPH_USERNAME\", \"\")\n",
7373
"password = os.environ.get(\"MEMGRAPH_PASSWORD\", \"\")\n",
7474
"\n",
75-
"graph = Memgraph(url=url, username=username, password=password, refresh_schema=False)"
75+
"graph = MemgraphLangChain(\n",
76+
" url=url, username=username, password=password, refresh_schema=False\n",
77+
")"
7678
]
7779
},
7880
{

docs/docs/integrations/providers/memgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ and use them to retrieve relevant information from the database.
1414

1515
```python
1616
from langchain_memgraph.chains.graph_qa import MemgraphQAChain
17-
from langchain_memgraph.graphs.memgraph import Memgraph
17+
from langchain_memgraph.graphs.memgraph import MemgraphLangChain
1818
```
1919

2020
See a [usage example](/docs/integrations/graphs/memgraph)
@@ -24,7 +24,7 @@ See a [usage example](/docs/integrations/graphs/memgraph)
2424
You can use the integration to construct a knowledge graph from unstructured data.
2525

2626
```python
27-
from langchain_memgraph.graphs.memgraph import Memgraph
27+
from langchain_memgraph.graphs.memgraph import MemgraphLangChain
2828
from langchain_experimental.graph_transformers import LLMGraphTransformer
2929
```
3030

docs/docs/integrations/tools/memgraph.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
"source": [
8888
"from langchain.chat_models import init_chat_model\n",
8989
"from langchain_memgraph import MemgraphToolkit\n",
90-
"from langchain_memgraph.graphs.memgraph import Memgraph\n",
90+
"from langchain_memgraph.graphs.memgraph import MemgraphLangChain\n",
9191
"\n",
92-
"db = Memgraph(url=url, username=username, password=password)\n",
92+
"db = MemgraphLangChain(url=url, username=username, password=password)\n",
9393
"\n",
9494
"llm = init_chat_model(\"gpt-4o-mini\", model_provider=\"openai\")\n",
9595
"\n",

0 commit comments

Comments
 (0)