[GH-ISSUE #4270] [BUG]: SQL agent issues #2720

Closed
opened 2026-02-22 18:30:56 -05:00 by yindo · 1 comment
Owner

Originally created by @ckwlee1 on GitHub (Aug 11, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4270

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I am having trouble with the SQL agent in anything-llm using PostgreSQL. After correctly configuring the SQL connector, I performed some simple operations, such as '@agent list the columns of a table'. However, I only received instructions on how to obtain the information (e.g. using "\d table name") instead of returning a list of the columns. Could somebody please help? Thank you very much!

Background information:
i. Ollama v0.11.2
ii. AnythingLLM v1.8.4 Desktop
iii. Windows 10 professional 22H2
iv. PostgresSQL 17
v. Already tried /reset
vi. Already tried different LLM models

Are there known steps to reproduce?

No response

Originally created by @ckwlee1 on GitHub (Aug 11, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4270 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? I am having trouble with the SQL agent in anything-llm using PostgreSQL. After correctly configuring the SQL connector, I performed some simple operations, such as '@agent list the columns of a table'. However, I only received instructions on how to obtain the information (e.g. using "\d table name") instead of returning a list of the columns. Could somebody please help? Thank you very much! Background information: i. Ollama v0.11.2 ii. AnythingLLM v1.8.4 Desktop iii. Windows 10 professional 22H2 iv. PostgresSQL 17 v. Already tried /reset vi. Already tried different LLM models ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:30:56 -05:00
yindo closed this issue 2026-02-22 18:30:56 -05:00
Author
Owner

@timothycarambat commented on GitHub (Aug 11, 2025):

This is a model output issue, not something wrong with the tooling. We have examples and prompting sent to the model but if it still tries to return PSQL commands we simply cannot execute them since we are doing direct table calls. In short, its a model hallunication :/

@timothycarambat commented on GitHub (Aug 11, 2025): This is a model output issue, not something wrong with the tooling. We have examples and prompting sent to the model but if it still tries to return PSQL commands we simply cannot execute them since we are doing direct table calls. In short, its a model hallunication :/
yindo changed title from [BUG]: SQL agent issues to [GH-ISSUE #4270] [BUG]: SQL agent issues 2026-06-05 14:48:09 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2720