The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Enhance the prompt to make the LLM generate right date for real today (#4505)
vinoyang25cd6e060a44
diff --git a/langchain/chains/sql_database/prompt.py b/langchain/chains/sql_database/prompt.pyindex b257f00196..943e22e6d8 100644--- a/langchain/chains/sql_database/prompt.py+++ b/langchain/chains/sql_database/prompt.py@@ -224,6 +224,7 @@ _clickhouse_prompt = """You are a ClickHouse expert. Given an input question, fiUnless 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 ClickHouse. 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.+Pay attention to use today() function to get the current date, if the question involves "today".Use the following format: