---
title: "\"I'm Sorry, Have We Met?\" — Frictionless Memory for AI"
description: "LLM APIs are stateless, so conversational memory must be built in the application layer, and the right design depends on scale."
url: "https://swe.quest/articles/i-m-sorry-have-we-met-frictionless-memory-for-ai-e2b06b8840d066bb"
canonical: "https://tech.trivago.com/post/2026-10-16-im-sorry-have-we-met--frictionless-memory-for-ai/"
source: "trivago tech"
published: "2026-10-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["llms","ai-agents","rag","search","vector-search"]
---

# "I'm Sorry, Have We Met?" — Frictionless Memory for AI

A post on [trivago tech](https://swe.quest/sources/trivago.md), published 2026-10-16, 11 min read, Case study. Original: [https://tech.trivago.com/post/2026-10-16-im-sorry-have-we-met--frictionless-memory-for-ai/](https://tech.trivago.com/post/2026-10-16-im-sorry-have-we-met--frictionless-memory-for-ai/)

## Summary

LLM APIs are stateless, so conversational memory must be built in the application layer, and the right design depends on scale. Resending full history grows token cost linearly with conversation length. RAG over memory (Mem0-style) and hybrid agent-framework memory trade that cost for retrieval infrastructure. SimpleMem's three-stage pipeline of semantic compression, recursive consolidation and adaptive retrieval suits lifelong memory. trivago's 10-turn hotel concierge demo keeps only compression into structured fields with a direct thread-ID lookup, beating naive resending on input tokens by message 4 (914 vs 1016). A hypothesis applies the same compress-consolidate-retrieve pattern to AI search, using canonical-query match confidence to decide how many cached results to prepend.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)

## Prerequisites

- LLM API basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- embeddings and vector search ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- RAG ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))

## Keywords

SimpleMem, Mem0, trivago Concierge, Letta, Zep, prompt caching

## Related posts

- [How to build a retrieval system for agents](https://swe.quest/articles/how-to-build-a-retrieval-system-for-agents-08b9b297721895b1.md): Turso · 2026-02-20 · Medium · 5 min read · AI agents, Vector search, SQLite, AI for coding, RAG & retrieval
  Memelord is a fully local memory system for coding agents that keeps a per-project SQLite database (via Turso) of corrections, insights and user-requested memories, embedded with all-MiniLM-L6-v2 and retrieved by cosine vector search at task start.
- [Give Your Coding Agents a Memory You Own](https://swe.quest/articles/give-your-coding-agents-a-memory-you-own-a4b8ff1b9b62d4a5.md): Hugging Face · 2026-09-03 · Medium · 9 min read · AI agents, AI for coding, RAG & retrieval, Search, Developer tools
  funes is an open-source, single-binary memory layer that indexes the session traces of coding agents (Claude Code, Codex, pi, Hermes) so any agent can recall past decisions and rationale with exact provenance.
- [Context Engineering (Agent Memory) for AI Agents Starts with Retrieval](https://swe.quest/articles/context-engineering-agent-memory-for-ai-agents-starts-with-retrieval-4b7268c3138eae87.md): LangChain · 2026-11-10 · Medium · 11 min read · AI agents, RAG & retrieval, LLMs, Vector search
  Agent retrieval fails in three ways: inefficient searching, too much context at once, and irrelevant or stale context.
- [ReasoningBank: Enabling agents to learn from experience](https://swe.quest/articles/reasoningbank-enabling-agents-to-learn-from-experience-c24d005f6ce31b05.md): Google Research · 2026-04-21 · Hard · 5 min read · AI agents, LLMs, Evaluation
  ReasoningBank is an agent memory framework that distills generalizable reasoning strategies from both successful and failed trajectories, stored as structured items (title, description, content) in a closed loop of retrieval, LLM-as-a-judge self-assessment, extraction and append-only consolidation.
- [The components of agent memory](https://swe.quest/articles/the-components-of-agent-memory-6ad54605491f6c6e.md): Anthropic Engineering · 2026-11-06 · Medium · 21 min read · AI agents, LLMs, Evaluation
  Agent memory works best as a layered hierarchy: transcripts as an event log, notes Claude writes in-session, richer representations such as wikis, and context injected into every session, with an offline "dreaming" pass that reflects on transcripts to correct and reorganize memory.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
