1.5.6 · Lesson 22 of 28
Consistent retrieval access mechanisms
Expose retrieval through a stable interface. Possible mechanisms:
WHAT
Expose retrieval through a stable interface.
Possible mechanisms:
- function calling
- standardized APIs
- MCP clients
- internal retrieval services
Architecture
FM / Agent
↓
Retrieval Interface
↓
Retrieval Service
↓
Vector StoreThe FM does not need to know the database implementation.
WHY
Abstraction enables:
- easier database replacement
- consistent access
- security enforcement
- centralized logging
- reusable retrieval logic
EXAM TRAP
The interface should hide infrastructure details while exposing the capabilities the application actually needs.
---
Key points
- easier database replacement
- consistent access
- security enforcement
- centralized logging
- reusable retrieval logic
Exam focus
The interface should hide infrastructure details while exposing the capabilities the application actually needs.