Enhance Context

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

image

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.

Last updated