In-Database AI Agents: Teaching Claude to Use Tools With Pgai
Blog post from Tiger Data
In-Database AI Agents are computer programs designed to interact with their environment by perceiving data, interpreting it through algorithms, and acting on it to achieve specific goals. With the advent of large language models (LLMs), AI agents can now combine LLMs with execution chains to perform specific actions. The Claude family of LLMs is equipped to use external tools and APIs, making it easier to develop custom AI agents. In this article, we show how to create AI agents within PostgreSQL's database using the pgai PostgreSQL extension to reduce latency and simplify architecture. AI agents serve many benefits in various industries such as finance, power industry, transportation, and healthcare. The combination of pgai with Claude offers enhanced efficiency, scalability, and cost-effectiveness.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| AI Agents | 36 | 656 | 110 | 51 | +81% |
| LLM | 9 | 4,030 | 486 | 147 | +1% |
| Real-time | 5 | 4,377 | 976 | 225 | +49% |
| Vector Search | 3 | 3,701 | 290 | 90 | +59% |
| Kubernetes | 2 | 1,327 | 196 | 88 | +0% |
| Multi-agent systems | 2 | 99 | 30 | 19 | +94% |
| AI Coding Assistant | 1 | 706 | 110 | 47 | +46% |
| Developer Experience | 1 | 286 | 160 | 88 | -13% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.