munkim / monoid

Turn APIs into AI Agents
https://monoid.so
Apache License 2.0
47 stars 16 forks source link

Database Queries as Actions #14

Open edwisdom opened 9 months ago

edwisdom commented 9 months ago

Description

While retrieval-augmented generation (RAG) can help fetch relevant context (#1), sometimes we want to retrieve data in a more constrained and regular fashion than embedding vector search. We can instead create Actions out of database/index queries, where a user might add SQL template code, and allow the Agent to dynamically fill in certain values based on the user request.

This allows us much greater control vis-a-vis RAG over the way that we retrieve data. Moreover, this concept can be extended to data sources beyond SQL just as easily, such as ElasticSearch or AirTable, while maintaining much of the same UI elements as the REST API Integration.

Tasks