Skip to content

Commit

Permalink
Fix: Change sqlite to SQL in query checker prompt
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Tonyqu123 authored Aug 1, 2024
1 parent a643732 commit 86b8232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/src/tools/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86b8232

Please sign in to comment.