You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/core_docs/docs/how_to/graph_prompting.ipynb
+14-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,20 @@
6
6
"source": [
7
7
"# How to improve results with prompting\n",
8
8
"\n",
9
-
"In this guide we’ll go over prompting strategies to improve graph database query generation. We’ll largely focus on methods for getting relevant database-specific information in your prompt."
9
+
"In this guide we’ll go over prompting strategies to improve graph database query generation. We’ll largely focus on methods for getting relevant database-specific information in your prompt.\n",
10
+
"\n",
11
+
"```{=mdx}\n",
12
+
":::warning\n",
13
+
"\n",
14
+
"The `GraphCypherQAChain` used in this guide will execute Cypher statements against the provided database.\n",
15
+
"For production, make sure that the database connection uses credentials that are narrowly-scoped to only include necessary permissions.\n",
16
+
"\n",
17
+
"Failure to do so may result in data corruption or loss, since the calling code\n",
18
+
"may attempt commands that would result in deletion, mutation of data\n",
19
+
"if appropriately prompted or reading sensitive data if such data is present in the database.\n",
"LangChain comes with a built-in chain for this workflow that is designed to work with Neo4j: `GraphCypherQAChain`.\n",
184
185
"\n",
185
-
"LangChain comes with a built-in chain for this workflow that is designed to work with Neo4j: [GraphCypherQAChain](https://python.langchain.com/docs/use_cases/graph/graph_cypher_qa)"
186
+
"```{=mdx}\n",
187
+
":::warning\n",
188
+
"\n",
189
+
"The `GraphCypherQAChain` used in this guide will execute Cypher statements against the provided database.\n",
190
+
"For production, make sure that the database connection uses credentials that are narrowly-scoped to only include necessary permissions.\n",
191
+
"\n",
192
+
"Failure to do so may result in data corruption or loss, since the calling code\n",
193
+
"may attempt commands that would result in deletion, mutation of data\n",
194
+
"if appropriately prompted or reading sensitive data if such data is present in the database.\n",
0 commit comments