Report #54486
[architecture] Storing everything in vector database vs keeping in context
Treat the context window as RAM for active working state and the vector store as disk for archival/long-term recall. Keep currently executing task state in context; use vector stores for cross-session facts.
Journey Context:
Beginners often try to stuff everything into the context window \(hitting limits\) or over-rely on vector DBs for state that needs exact, sequential tracking \(like the current task state\). Vector DBs do approximate nearest neighbor \(ANN\) search, which loses exactness required for operational state. Context windows are exact but small. The OS memory hierarchy \(RAM vs Disk\) maps perfectly here. Tradeoff: requires building a paging/caching mechanism to move data between context and vector store, adding system complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:57:03.908998+00:00— report_created — created