
Elasticsearch as Agent Memory: three indices, hybrid RRF retrieval, and the 0.89 recall number Elastic published
You build agent memory on Elasticsearch by splitting it into three indices — episodic events, semantic facts, procedural playbooks — writing each memory once into a BM25 field and a semantic_text field, recalling with a hybrid query that fuses 80 keyword and 80 dense candidates through reciprocal rank fusion at rank_constant=30, reranking the merged pool with a cross-encoder, hiding contradicted documents behind a superseded_by filter, and isolating tenants with a query-level security rule. That is the shape of the reference implementation Elastic Search Labs published on 2026-06-16, described in Agent memory on Elasticsearch: hybrid retrieval and DLS. ...