ReferenceLearning
Teach the memory
Feed corrections back so the memory improves instead of repeating a mistake.
learn_type | Effect |
|---|---|
correction | Store the corrected text and deprecate the wrong source |
deprecation | Stop returning a document without deleting it |
lesson | Store a durable note for future retrieval |
validation | Confirm an answer was right |
feedback | Record a signal without changing retrieval |
deprecation sets a document's retrieval weight to zero rather than
deleting it, so the record survives for audit while dropping out of
answers.
x-api-key<token>
A platform key (ck_live_…) — reaches every memory in the tenant.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/memory/learn" \ -H "Content-Type: application/json" \ -d '{ "learn_type": "correction", "trigger": { "source_document_id": "doc_5f1c2a" }, "learning": { "correction": "The Acme deal closed on 14 September, not October." } }'{ "deprecated_chunks": 0, "ingested_document_id": "string"}Was this page helpful?Report an issue