AI Engineering

Engineering AI for the real world — from context management to multi-agent systems

View on GitHub
13 February 2025

Contexo: 95.22% on LoCoMo Benchmark

by

This post covers results from running Contexo on the LoCoMo benchmark — a test of long-term conversational memory retrieval accuracy.

The Results

Contexo achieved 95.22% accuracy, beating MemU’s published baseline of 92.09%.

Accuracy on LoCoMo Benchmark (QA Retrieval)

100% ┤
     │
 95% ┤    ██ Contexo: 95.22%
     │    ██
 92% ┤    ██  ██ MemU: 92.09%
     │    ██  ██
     └────┴────┴─────
       Contexo MemU

What is LoCoMo?

The LoCoMo benchmark tests whether an AI system can find relevant information from a long conversation history. It evaluates:

How Contexo Works

Contexo uses a two-tier memory architecture:

  1. Working Memory — Fast, in-memory context with auto-compaction strategies
  2. Persistent Memory — Long-term storage with semantic search

For this benchmark, Contexo’s hybrid search combines:

Why This Matters

Most AI applications today lose context when conversations get long. Contexo solves this by:

Try It Out

from contexo import Contexo
from contexo.config.defaults import local_config

ctx = Contexo(config=local_config())
await ctx.initialize()

# Add messages to memory
await ctx.add_message("user", "My favorite color is blue")

# Later, search and retrieve
results = await ctx.search_memory("favorite color")
# Returns the original message

View on GitHub →

tags: