# Meta Long Memory Search Modeling: How Meta Is Scaling Extended History Context for Ads Recommendation Modeling

> Source: <https://engineering.fb.com/2026/12/04/ml-applications/meta-long-memory-search/>
> Published: 2026-12-04 18:56:54+00:00

**Recommendation:** When a model's fixed context window limits personalization, index long user histories and retrieve relevant entries RAG-style, as Meta did for ads recommendation.
More in the playbook "Retrieval and RAG": <https://wpnews.pro/playbooks/rag-retrieval>

Meta Long Memory Search Modeling is Meta’s machine learning (ML) technology that leverages longer user engagement history to improve ads recommendations and deliver value to people and our advertisers. This modeling approach adapts retrieval-augmented generation (RAG) techniques from large language models (LLMs) for use in ads recommendations. By treating engagement history as an indexed set [...]

The post [Meta Long Memory Search Modeling: How Meta Is Scaling Extended History Context for Ads Recommendation Modeling](https://engineering.fb.com/2026/12/04/ml-applications/meta-long-memory-search/) appeared first on [Engineering at Meta](https://engineering.fb.com).
