ReferenceLearning

Teach the memory

Feed corrections back so the memory improves instead of repeating a mistake.

learn_typeEffect
correctionStore the corrected text and deprecate the wrong source
deprecationStop returning a document without deleting it
lessonStore a durable note for future retrieval
validationConfirm an answer was right
feedbackRecord 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.

POST
/api/v1/memory/learn

Authorization

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