Knowledge Base Integration
Overview
The Knowledge Base module provides Retrieval-Augmented Generation (RAG) capabilities for the Agentic AI Framework. It enables agents to query configured knowledge bases during task execution, retrieving relevant context to enhance response quality and accuracy.
The module follows an interface-based design that allows multiple knowledge base implementations while providing Amazon Bedrock Knowledge Bases as the default. Key features include:
- Extensible Architecture: Interface-based design supports custom KB implementations
- Access Control (ACL): Identity-aware retrieval filtering based on user permissions
- Guardrails Support: Content filtering during retrieval operations
- Automatic Tool Generation: Built-in retrieval tool for agent-driven queries
- Observability: Integrated logging and metrics with Lambda Powertools
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Agent Framework │
├─────────────────────────────────────────────────────────────────┤
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ BaseAgent │ │ BatchAgent │ │
│ │ (abstract) │───▶│ (concrete) │ │
│ └────────┬────────┘ └─────────────────┘ │
│ │ │
│ │ uses │
│ ▼ │