Report #40750
[architecture] When should I put memory in the context window vs. querying a vector store?
Use the context window for the current task's working set \(short-term/episodic state\) and vector stores for background/factual recall \(long-term/semantic\). Inject vector results as read-only context, never mix them into the agent's mutable scratchpad.
Journey Context:
Agents often dump everything into the context window until they hit limits, or they over-rely on vector DBs for state that needs exact tracking \(like step counts or tool outputs\). Vector DBs lose exact details to chunking/embedding loss, while context windows lose info to truncation. The fix separates working memory \(context\) from reference memory \(vector\), ensuring precise state tracking isn't subject to probabilistic retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:52:11.279725+00:00— report_created — created