forked from Archives/langchain
First iteration of sqlagent (#633)
Co-authored-by: lesscomfortable <pancho_ingham@hotmail.com>harrison/sql-agent
parent
d54fd20ba4
commit
456b329baa
@ -0,0 +1,13 @@
|
||||
# flake8: noqa
|
||||
SQL_PREFIX = """Answer the question as best you can.
|
||||
You should only use data in the SQL database to answer the query. The answer you return should come directly from the database. If you don't find an answer, say "There is not enough information in the DB to answer the question."
|
||||
Your first query can be exploratory, to understand the data in the table. As an example, you can query what the first 5 examples of a column are before querying that column.
|
||||
When possible, don't query exactly but always use 'LIKE' to make your queries more robust.
|
||||
Finally, be mindful of not repeating queries.
|
||||
|
||||
You have access to the following DB:"""
|
||||
|
||||
SQL_SUFFIX = """Begin!
|
||||
|
||||
Question: {input}
|
||||
Thought:{agent_scratchpad}"""
|
Loading…
Reference in New Issue