Augmented LLM
Level: Deterministic: one pass, with nothing for the AI to decide about what happens next. See the patterns and their levels.
Also called: single call.
An Augmented LLM combines the reasoning and generative abilities of an LLM with external tools, data, or systems to overcome its inherent limitations. It is the foundational building block for all other workflow architecture patterns.
Think of it as an intelligent assistant that can access databases, search the web, run calculations, or interact with APIs — providing answers that go beyond what the model knows from training alone.
Why It Matters
Section titled “Why It Matters”- Enhanced capabilities — Augmentation lets the model fetch real-time information, query databases, or use tools for accurate, up-to-date, and customized responses
- Task specialization — Augmented LLMs excel at domain-specific tasks (financial analysis, customer service, medical diagnostics) because they pull in relevant data
- Adaptability — They integrate into existing workflows and leverage specialized tools, making them flexible across business applications
Key Components
Section titled “Key Components”| Component | Purpose | Example |
|---|---|---|
| LLM Core | Understands input, generates responses, decides which tasks require augmentation | User asks “What were our sales figures last month?” — the model recognizes it needs to retrieve this data |
| External Data Source | Provides relevant, up-to-date, or domain-specific information (APIs, databases, cloud storage) | Sales data in a company database queried for the latest figures |
| Tools (Plugins) | Specialized tools for calculations, data processing, or third-party interactions | A spreadsheet plugin calculates revenue growth from retrieved data |
| Orchestrator | Oversees the process, ensuring seamless interaction between the LLM and external components | Routes the query to the database and sends results back to the LLM |
| User Input/Output | The user’s request in, and the enriched response out | Input: “What were last month’s sales?” → Output: “Sales were $500,000, up from $455,000 the month before.” |
When to Use It
Section titled “When to Use It”- Real-time information needs — generating reports from live data, stock prices, or current metrics
- Complex tasks requiring multiple tools — financial analysis that involves querying a database, running calculations, and formatting results
- Domain-specific expertise — a healthcare LLM augmented with medical databases and imaging tools
Example: Customer Support Chatbot
Section titled “Example: Customer Support Chatbot”A company uses an AI-powered chatbot augmented with external systems:
- The LLM understands the customer’s issue
- It queries the company’s knowledge base or CRM for specific information (e.g., order status)
- If needed, it uses tools like a refund calculator to generate a solution
- The response — enriched with real-time data — is delivered to the customer
This pattern enables accurate, context-aware responses without requiring the model to have all information in its training data.
How to Implement
Section titled “How to Implement”- Define the goal — What task does the augmented LLM need to perform? Real-time data retrieval, calculations, or insight generation?
- Integrate external data and tools — Connect the LLM to relevant APIs, databases, or plugins. Ensure the orchestrator routes tasks properly.
- Test iteratively — Validate with different inputs to ensure seamless, accurate responses
Sources
Section titled “Sources”- Anthropic — Building effective agents (December 19, 2024) — “Building block: The augmented LLM”, which calls it “an LLM enhanced with augmentations such as retrieval, tools, and memory”
Related
Section titled “Related”- Workflow Architecture Patterns Overview
- Prompt Chaining — the next step up in complexity
- Tool Use — the capability that gives an LLM its tools
- MCP (Model Context Protocol) — the connector layer for giving models access to external tools
- Design Your AI Workflow