new(whatsapp.gblib): LLM SQL.
This commit is contained in:
parent
681f398f14
commit
7b9d7446da
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ export class ChatServices {
|
|||
const finalResponsePrompt = SQL_SQLITE_PROMPT
|
||||
PromptTemplate.fromTemplate(`Based on the table schema below, question, SQL query, and SQL response, write a natural language response:
|
||||
You are a SQLite expert. Given an input question, first create a syntactically correct SQLite query to run, then look at the results of the query and return the answer to the input question.
|
||||
Unless the user specifies in the question a specific number of examples to obtain, query for at most {top_k} results using the LIMIT clause as per SQLite. You can order the results to return the most informative data in the database.
|
||||
Unless the user specifies in the question a specific number of examples to obtain, query for at most results using the LIMIT clause as per SQLite. You can order the results to return the most informative data in the database.
|
||||
Never query for all columns from a table. You must query only the columns that are needed to answer the question. Wrap each column name in double quotes (") to denote them as delimited identifiers.
|
||||
Pay attention to use only the column names you can see in the tables below. Be careful to not query for columns that do not exist. Also, pay attention to which column is in which table.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue