Skip to main content

Module smart_retrieval

Module smart_retrieval 

Source
Expand description

Smart retrieval with two-tier context optimization

This module implements intelligent retrieval that minimizes recomputation cost by enforcing strict token budgets and importance filtering.

Key optimizations:

  • Tier 1 (hot cache) → O(1) return, 100% compute savings
  • Tier 3 (cold storage) → Importance-filtered, token-budgeted SQLite retrieval

Structs§

RetrievalResult
Result of smart retrieval operation
SmartRetrieval
Smart retrieval orchestrator
SmartRetrievalConfig
Configuration for smart retrieval

Enums§

RetrievalStrategy
Strategy used for retrieval