4 ms·
Is there any reason why you can't build a full agent in SQL? SQLite with a little sauce should be competitive with Langchain if you think a little bit.
by datadrivenangel 2y ago
Is there any reason why you can't build a full agent in SQL? SQLite with a little sauce should be competitive with Langchain if you think a little bit.
- bob1029 2y agoI don't see why not. Recursive CTEs allow you to express pretty much anything you desire. You could also expose additional functions corresponding to the external tools that you would like the agent to have access to and pass these as arguments to additional UDFs. You could also lean into data-driven and express much of the configuration in tables and then use the enhanced SQL dialect to tie everything together at runtime. In SQLite, during UDF execution, arbitrary queries can be ran. You could pull tool descriptions, parameter lists, enums, etc. from ordinary SQL tables without having to pass explicit args to the functions.
- datadrivenangel 2y agoUse triggers to execute trees of tasks and you have a working agentic system!
- dpflan 2y agoAny benefit to having a graph database component alongside the SQL? Maybe add some Apache Age to Postgres? “”” Apache AGE™ Graph Database for PostgreSQL Apache AGE™ is a PostgreSQL Graph database compatible with PostgreSQL's distributed assets and leverages graph data structures to analyze and use relationships and patterns in data. “”” https://age.apache.org/ https://age.apache.org/
- whattheheckheck 2y agohttps://explainextended.com/2023/12/31/happy-new-year-15/ https://explainextended.com/2023/12/31/happy-new-year-15/