mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 06:39:52 +00:00
docs[patch]: Fix diffbot docs (#22584)
This commit is contained in:
parent
6b8963ad92
commit
67e58fdc2e
@ -9,8 +9,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
">[Diffbot](https://docs.diffbot.com/docs/getting-started-with-diffbot) is a suite of ML-based products that make it easy to structure web data.\n",
|
">[Diffbot](https://docs.diffbot.com/docs/getting-started-with-diffbot) is a suite of ML-based products that make it easy to structure web data.\n",
|
||||||
">\n",
|
">\n",
|
||||||
">Diffbot's [Natural Language Processing API](https://www.diffbot.com/products/natural-language/) allows for the extraction of entities, relationships, and semantic meaning from unstructured text data.",
|
">Diffbot's [Natural Language Processing API](https://www.diffbot.com/products/natural-language/) allows for the extraction of entities, relationships, and semantic meaning from unstructured text data.\n",
|
||||||
"\n",
|
|
||||||
"[](https://colab.research.google.com/github/langchain-ai/langchain/blob/master/docs/docs/integrations/graphs/diffbot.ipynb)\n",
|
"[](https://colab.research.google.com/github/langchain-ai/langchain/blob/master/docs/docs/integrations/graphs/diffbot.ipynb)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"## Use case\n",
|
"## Use case\n",
|
||||||
@ -70,8 +69,8 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"from langchain_experimental.graph_transformers.diffbot import DiffbotGraphTransformer\n",
|
"from langchain_experimental.graph_transformers.diffbot import DiffbotGraphTransformer\n",
|
||||||
"\n",
|
"\n",
|
||||||
"diffbot_api_token = \"DIFFBOT_API_TOKEN\"\n",
|
"diffbot_api_key = \"DIFFBOT_KEY\"\n",
|
||||||
"diffbot_nlp = DiffbotGraphTransformer(diffbot_api_token=diffbot_api_token)"
|
"diffbot_nlp = DiffbotGraphTransformer(diffbot_api_key=diffbot_api_key)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -111,7 +110,7 @@
|
|||||||
" --name neo4j \\\n",
|
" --name neo4j \\\n",
|
||||||
" -p 7474:7474 -p 7687:7687 \\\n",
|
" -p 7474:7474 -p 7687:7687 \\\n",
|
||||||
" -d \\\n",
|
" -d \\\n",
|
||||||
" -e NEO4J_AUTH=neo4j/pleaseletmein \\\n",
|
" -e NEO4J_AUTH=neo4j/password \\\n",
|
||||||
" -e NEO4J_PLUGINS=\\[\\\"apoc\\\"\\] \\\n",
|
" -e NEO4J_PLUGINS=\\[\\\"apoc\\\"\\] \\\n",
|
||||||
" neo4j:latest\n",
|
" neo4j:latest\n",
|
||||||
"``` \n",
|
"``` \n",
|
||||||
@ -129,7 +128,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"url = \"bolt://localhost:7687\"\n",
|
"url = \"bolt://localhost:7687\"\n",
|
||||||
"username = \"neo4j\"\n",
|
"username = \"neo4j\"\n",
|
||||||
"password = \"pleaseletmein\"\n",
|
"password = \"password\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"graph = Neo4jGraph(url=url, username=username, password=password)"
|
"graph = Neo4jGraph(url=url, username=username, password=password)"
|
||||||
]
|
]
|
||||||
@ -296,7 +295,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.10.12"
|
"version": "3.9.18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user