Capturing knowledge
A single capture
Omit bucket and the brain routes the capture itself, recording bucketSource: "auto".
Batches
Each item in a batch is processed independently — one malformed entry fails on its own instead of rejecting the whole request.
Chat turns
If you’re building a conversational product, most turns aren’t worth remembering. Rather than capturing everything and polluting the brain, push turns through the classifier and let it decide.
Send every turn. The classifier is the point — filtering client-side with your own heuristic defeats it, and turns you discard are gone for good.
Tracking ingestion
Captures compile in the background. To show a queue, list the brain’s sources:
Statuses run pending → compiling → completed, or failed.
Retrying
Only failed sources can be retried. Deleting a source leaves any pages already derived from
it in place — delete those separately if you want them gone.
Polling works, but the change feed is cheaper and tells you when pages actually appear rather than when a source finishes.