Report #3345
[architecture] Vector store adds latency and cost but the agent only needs recent context
Use a tiered cache: in-context recent turns → local SQLite or Redis cache for the session → vector DB for long-term memory. Query the cheapest tier first.
Journey Context:
Not every retrieval needs a vector search. The last few turns are already in the prompt. The current session's facts fit in a local key-value cache. Only cross-session or broad knowledge needs vector search. This tiering reduces cost and latency dramatically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T16:33:46.466711+00:00— report_created — created