[GH-ISSUE #4143] [BUG]: Using "undefined" for table_schema SELECT query #2636

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

Originally created by @webtoolbox on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4143

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

The agent with the SQL connector is doing this even though a database name was specified when creating the connection in the agent settings:

@agent: Checking what are the available tables in the Test database.
Running SQL: SELECT table_name FROM information_schema.tables WHERE table_schema = 'undefined'

Are there known steps to reproduce?

Create the connection in the settings and then use the agent to try to do something with the database.

Originally created by @webtoolbox on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4143 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? The agent with the SQL connector is doing this even though a database name was specified when creating the connection in the agent settings: @agent: Checking what are the available tables in the Test database. Running SQL: SELECT table_name FROM information_schema.tables WHERE table_schema = 'undefined' ### Are there known steps to reproduce? Create the connection in the settings and then use the agent to try to do something with the database.
yindo added the possible bug label 2026-02-22 18:30:33 -05:00
yindo closed this issue 2026-02-22 18:30:33 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 14, 2025):

This is most likely:

  • a hallucination from the model
  • incorrect connection or permissions from the tool call resulting in undefined responses when checking for table names
@timothycarambat commented on GitHub (Jul 14, 2025): This is most likely: - a hallucination from the model - incorrect connection or permissions from the tool call resulting in `undefined` responses when checking for table names
yindo changed title from [BUG]: Using "undefined" for table_schema SELECT query to [GH-ISSUE #4143] [BUG]: Using "undefined" for table_schema SELECT query 2026-06-05 14:47:40 -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#2636