Closed CedricGoby closed 4 days ago
Looks like the tool call is actually working as intended, but the JSON formed back from the model while passing the schema requirement still has a value of {database_id: "mydatabase"}
When you setup the database - what is in this field? If it is not mydatabase
the connector alias wont be found and the model is basically hallucinating the database id. We give it the list of all databases but you can more explicit in your prompt to encourage the model to make a valid call.
eg: Using <connector alias> give me xyz
related docs: https://docs.useanything.com/agent-not-using-tools
Thank you very much. Setting "Connection name" to "mydatabase" and be more explicit in the prompt did the trick.
How are you running AnythingLLM?
Docker (local)
What happened?
After setting up a SQL Connector (MySQL) the agent answer there is no active connection to the database if I ask for the list of the tables of the database.
I'm using the MistralAI API with mistral-large-2402 model.
This is the logs from AnythingLLM :
Are there known steps to reproduce?
If you look at the capabilities of the agent you don't see SQL Connector :
You can verify that the database is reachable from inside the AnythingLLM container with the same database connection settings :
The database is also reachable using phpmyadmin (http://localhost:8080/)
Can someone help me ?