Find answers from the community

Updated 4 months ago

Does llama index support agent that can

At a glance

The post asks if Llama Index supports agents that can read data from and write data to SQL databases like PostgreSQL and SQLite. The comments suggest that there are tools available on Llama Hub that can be used for this purpose, and one community member mentions a specific tool called "llama-index-tools-database" that allows for database reads. However, another community member notes that the import for this tool is outdated, and the updated import does not seem to work. The comments indicate that the tool can be installed using pip install llama-index-tools-database, but there is no explicitly marked answer to the original question.

Useful resources
Does llama index support agent that can read data from and write data to a SQL db (postgres , sqlite, etc.)?
L
t
5 comments
There are a few tools on llama-hub

But its also very easy to wrap any function into a FunctionTool
the import is outdated: from llama_index.tools.database import DatabaseToolSpec


do you know where this went?

from llama_index.core.tools.database import DatabaseToolSpec does not work either
It's not outdated, just have to install it
pip install llama-index-tools-database
Add a reply
Sign up and join the conversation on Discord