Skip to content

Commit 35a6342

Browse files
mtyinaverikitsch
andauthored
fix(graph): Minor tweek to the prompts (#158)
Co-authored-by: Averi Kitsch <akitsch@google.com>
1 parent 2109892 commit 35a6342

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/langchain_google_spanner/prompts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"""
149149

150150
DEFAULT_GQL_VERIFY_TEMPLATE_PART0 = """
151-
Given a natual language question, Spanner Graph GQL graph query and a graph schema,
151+
Given a natural language question, Spanner Graph GQL graph query and a graph schema,
152152
validate the query.
153153
154154
{verify_examples}
@@ -186,7 +186,7 @@
186186
```
187187
{err_msg}
188188
```
189-
Give me a correct version of the query.
189+
Return a modified version of the query which addresses the error message.
190190
Do not generate the same query as the input gql.
191191
"""
192192

@@ -219,7 +219,7 @@
219219

220220
SPANNERGRAPH_QA_TEMPLATE = """
221221
You are a helpful AI assistant.
222-
Create a human readable answer for the for the question.
222+
Create a human readable answer for the question.
223223
You should only use the information provided in the context and not use your internal knowledge.
224224
Don't add any information.
225225
Here is an example:

0 commit comments

Comments
 (0)