World's Fair 2025
Why the Best AI Agents Are Built Without Frameworks (Primitives over Frameworks) — Ahmad Awais, CHAI
Overview
This talk argues that building AI agents on primitives rather than frameworks leads to more production-ready and scalable solutions. Frameworks are often bloated, slow, and introduce unnecessary abstractions. Instead, developers should leverage composable, low-level primitives, similar to how cloud services like Amazon S3 function, to create flexible and efficient AI agents.
Who should watch
- AI Engineers
- Product Managers
- Builders working with AI agents
- Developers seeking to improve agent development speed and scalability
- Those frustrated with the complexity and slow iteration of AI frameworks
Key takeaways
- Production-ready AI agents from companies like Perplexity, Cursor, and Chai are built on primitives, not frameworks, due to frameworks' bloat and slow evolution.
- AI primitives are fundamental building blocks, such as memory, parsers, chunkers, and tools, that offer native production capabilities and scalability.
- Composable primitives, like those offered by Langbase (memory, parsing, chunking, threads), enable the creation of serverless AI agents that handle heavy lifting automatically.
- Common agent architectures like Augmented LLMs, prompt chaining, agent routers, and orchestrator-worker models can be effectively built using primitives.
- Building on primitives allows for faster iteration and easier adaptation to new LLMs and paradigms, avoiding the lock-in associated with rigid frameworks.
- The speaker demonstrated building a "chat with PDF" agent using primitives for memory, parsing, and LLM interaction, showcasing rapid development.
- Agent development is evolving into a new way of writing code, with primitives providing the flexibility needed for this paradigm shift.
- The talk highlighted various agent architectures, including an evaluator-optimizer pattern where an LLM generates content and another LLM evaluates it with feedback.
Notable quotes
*All AI agents in production are actually not built on top of any AI frameworks because frameworks do not really add that much value.*
*Instead, you should be building on top of AI primitives. This is what my entire talk is about today.*
*I think most engineers are going to become AI engineers.*
Unofficial community note. Prefer the recording for nuance.