{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "RetrievalAugment",
 "ref": "RetrievalAugment#6f84",
 "hash": "sema:RetrievalAugment#mh:SHA-256:6f840cc4134b302b712d8f59dcca0c1b446c255369a8cea11031e884c16f3052",
 "stub": "6f84",
 "layer": "Mind",
 "type": "Memory",
 "summary": "Ground responses in retrieved external knowledge",
 "mechanism": "Before generating a response, the Agent#e127 queries an external knowledge store to retrieve material relevant to the current Context#c1b7. The retrieval follows ContextFirst#f157: the lookup completes before generation begins, and the retrieved material is supplied as context for the response. The store, retrieval method, selection policy, and response process remain caller- or descendant-defined.",
 "invariants": [
  "Query Before Generate: Retrieval must precede response generation"
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Retrieval Poisoning: Malicious or incorrect material returned by the store contaminates responses.",
  "Context#c1b7 Stuffing: Retrieved material exceeds the available Context#c1b7 capacity, causing critical information to be omitted or truncated."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "RetrievalAugment",
 "builds_on": [
  {
   "alias": "context",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Context",
   "ref": "Context#c1b7",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Context"
  },
  {
   "alias": "context_first",
   "relation": "references",
   "library": "bootstrap",
   "slug": "ContextFirst",
   "ref": "ContextFirst#f157",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ContextFirst"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "DeepResearch",
   "ref": "DeepResearch#cd1d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DeepResearch"
  }
 ],
 "used_by": [
  {
   "slug": "CiteBack",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CiteBack"
  },
  {
   "slug": "DeepResearch",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DeepResearch"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/RetrievalAugment",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/RetrievalAugment.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
