Lightlines
By redis

redis-semantic-cache

redis1.7k installs

Reuse similar answers to cut LLM cost and latency.

What it does

Adds semantic caching to LLM applications with guidance on cache lookups, response storage, similarity thresholds, and workload isolation.

When to use it

Use when adding an LLM or RAG cache, tuning cache precision and hit rate, or separating caches for different workloads.

How to use it

It changes how the agent implements LLM caching by prescribing cache-aside lookups, similarity tuning, and isolation between task types.

What you provide

  • An existing project

Uses

Latest review

What you need · 3

Requires a LangCache service on Redis Cloud, addressed through a server URL and cache ID.

The main SDK implementation uses Python; no runtime version is specified.

The SDK reads the LangCache API key from the API_KEY environment variable.


Access · 1

This skill

Redis Cloud

Write

Creates task-specific caches