🦉
AI Engineering Handbook
About
  • Hey
  • Tech Stack
  • ML to AI Shift
  • Agentic Systems
  • Anti Patterns
  • AI Engineer
  • Roles Reimagined
  • Dream Team
  • System
    • Architecture
    • Start Simple
    • Enhance Context
    • Implement Guardrails
    • Add Routing and Gateway
    • Optimise with Caching
    • Enable Agent Patterns
Powered by GitBook
On this page
  • 🤖 Agentic Patterns
  • Planning
  • Tool Categories
  • 📈 Iteration
  • 1: Basic Retrieval
  • 2: Advanced Retrieval (Read Only)
  • 3: Tool Integration (Read Only)
  • 4: Agentic Capabilities
  1. System

Enhance Context

PreviousStart SimpleNextImplement Guardrails

Last updated 6 days ago

Transform basic AI into informed intelligence. Add real-time information to your model.Use it when foundation models fail without specific information and good prompting can't fix missing information. Three triggers:

  • Recent events beyond knowledge cutoff

  • User data not in training

  • Company knowledge unavailable publicly

Context Construction Flow

  1. Intercept user query

  2. Retrieve relevant information

  3. Combine query with context

  4. Send enriched prompt

🤖 Agentic Patterns

Advanced context enables agentic behaviour. Models use tools actively.

Planning

Agentic systems decide action sequences:

  • Understand user intent

  • Select appropriate tools

  • Execute multi-step processes

  • Correct errors through reflection

Tool Categories

Knowledge: 😍🤩

  • External data access

  • Real-time retrieval

  • Proprietary databases

Capability: 🤔❓

  • Math calculations

  • Code execution

  • Specialised processing

Write Actions: ⚠️🚨

  • Submit enquiries

  • Book appointments

  • Send emails

  • Confirm purchase

📈 Iteration

1: Basic Retrieval

  • Term-based document search

  • Internal knowledge bases

  • File upload capabilities

2: Advanced Retrieval (Read Only)

  • Embedding-based search

  • Real-time data sources

  • Context relevance

3: Tool Integration (Read Only)

  • Read-only external APIs

  • Calculation tools

  • Multi-step workflows

4: Agentic Capabilities

  • Planning mechanisms

  • Enable write actions (carefully) ❗❗❗

  • Reflection and error correction

👷 This is an important step to make your AI system more intelligent. We should put lots of effort to make it work.

image