Index with real-time progress (NDJSON stream)
Same work as /memory/index, but the response streams newline-delimited JSON as it
runs: one {"type":"item"} event per processed memory/chunk (with its label, 1-based
position, total, and extracted entity names), then a final {"type":"done"} event
with the run totals. Failures mid-run arrive in-band as {"type":"error"}.
Body
The body is of type object.
Response
NDJSON progress stream ending with a done (or error) event.
The response is of type string.
"{\"type\":\"item\",\"kind\":\"chunk\",\"id\":\"...\",\"label\":\"runbook.pdf › DATABASE FAILOVER\",\"index\":3,\"total\":46,\"entities\":[\"Postgres\"]}\n{\"type\":\"done\",\"indexed\":0,\"chunksIndexed\":46}\n"