Papers
arxiv:2609.05463

A Three-Layer Caching Architecture for Low-Latency LLM Web Search on Commodity CPU Hardware

Published on Aug 12
· Submitted by
Ayushman Bhattacharya
on Sep 10

Abstract

OreoLook uses a three-layer caching system with session windows, semantic similarity matching, and deduplicated embeddings to reduce redundant LLM calls and maintain long-running conversations on modest hardware.

AI-powered search products such as ChatGPT search, Google's AI Overviews, and Perplexity provide LLM-synthesized answers grounded in live web results. We developed OreoLook (formerly lixSearch), an open-source answer engine using automated browser agents and provider-routed LLM inference. Its local search, caching, session-management, and embedding stack runs on commodity CPU hardware; answer synthesis is performed by a remote inference provider. As usage grew, sessions lost context, equivalent queries triggered redundant work, and URLs were repeatedly embedded across sessions. We present a three-layer caching architecture: (1) a Session Context Window maintaining a rolling window of recent messages in Redis with automatic overflow to Huffman-compressed disk archives; (2) a Semantic Query Cache catches rephrasings via cosine similarity on embedding vectors, eliminating redundant LLM invocations; and (3) a URL Embedding Cache that deduplicates embedding computations across sessions. Deployed on a single 8-vCPU Intel Cascade Lake server (2 GHz, 32 GB RAM) running 30 Hypercorn worker processes across three containerized replicas, the evaluated system reported an 89.3% aggregate Redis keyspace hit rate with 0.1 ms read latency and just 1.38 MB of memory overhead. A background LRU eviction daemon migrates idle sessions from Redis to disk and re-hydrates them on demand, enabling conversations that can be resumed hours or days later under the configured retention policy.

Community

Paper author Paper submitter

We’re excited to share OreoLook, an open-source answer engine, and the caching architecture we built to make agentic web search faster and more affordable on commodity CPU infrastructure.

Most LLM caching approaches focus on reusing final responses. Our work instead addresses redundancy across the full search pipeline through three coordinated layers:

  • Session Context Window: keeps recent conversation turns in Redis and moves overflow into Huffman-compressed disk archives.
  • Semantic Query Cache: detects equivalent or rephrased queries using embedding similarity, allowing expensive search and synthesis work to be skipped.
  • URL Embedding Cache: reuses embeddings for URLs encountered across different sessions.

In our evaluated deployment—a single 8-vCPU Intel Cascade Lake server with 32 GB RAM, running 30 Hypercorn workers across three replicas—the system reported an 89.3% aggregate Redis keyspace hit rate, approximately 0.1 ms Redis read latency, and only 1.38 MB of measured Redis memory overhead.

The local web-search, session-management, caching, and embedding stack runs on CPU hardware, while final answer synthesis uses provider-routed remote inference. We describe the architecture honestly as a production-derived system, including its limitations and the distinction between Redis keyspace hit rate and end-to-end query avoidance.

The broader goal is simple: make live, conversational, source-backed AI search practical without requiring expensive local accelerators or repeated work at every turn.

We’d especially welcome feedback on semantic-cache isolation, cache evaluation methodology, and extending the architecture toward long-lived agent memory.

🔗 Try OreoLook
💻 Source code
📄 Read the paper

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2609.05463
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2609.05463 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2609.05463 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2609.05463 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.