From 86b8232d40e178269f5df19f9ba45a257e5b3ab9 Mon Sep 17 00:00:00 2001 From: Tony Qu <18809892579qu@gmail.com> Date: Thu, 1 Aug 2024 13:28:15 +0800 Subject: [PATCH] Fix: Change sqlite to SQL in query checker prompt In the `sqlAgent`, the `query-checker` step currently references `sqlite` specifically in the prompt, which is incorrect since the `sqlAgent` can interact with multiple types of databases. To make this prompt more accurate and applicable to various SQL databases, I have replaced `sqlite` with `SQL`. --- langchain/src/tools/sql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/src/tools/sql.ts b/langchain/src/tools/sql.ts index 09584fe980e3..6a139af3d5c2 100644 --- a/langchain/src/tools/sql.ts +++ b/langchain/src/tools/sql.ts @@ -156,7 +156,7 @@ export class QueryCheckerTool extends Tool { template = ` {query} -Double check the sqlite query above for common mistakes, including: +Double check the SQL query above for common mistakes, including: - Using NOT IN with NULL values - Using UNION when UNION ALL should have been used - Using BETWEEN for exclusive ranges