Skip to content
G

GPTCache

Semantic cache for LLMs. Fully integrated with LangChain and llama_index

by zilliztechFree

#402in AI
0In stores

Description

GPTCache is a Python library for building a semantic cache for large language model queries. Instead of calling the model every time, it sto…

Highlights

  • Semantic cache for LLM queries
  • Exact and similar matching
  • LangChain and llama_index integration
  • Server Docker image for any language
  • Get and set API

Ratings & Reviews

No ratings yet

Be the first to rate GPTCache.

People also visit

R

redis-semantic-cache

Redis LangCache guidance for semantic caching of LLM responses on Redis Cloud

AI Skills
Get
C

Claude Code Cache Fix

Fixes prompt cache regression in Claude Code

AI
Launch
M

Memlayer

Plug-and-play memory for LLMs in 3 lines of code

AI
Launch
S

SMG

Engine-agnostic LLM gateway in Rust

AI
Launch
L

liter-llm

Universal LLM API client — 163 providers, 14 native language bindings…

AI
Launch
E

Embedbase

A dead-simple API to build LLM-powered apps

AI
Launch

GPTCache FAQ

What is GPTCache?

A Python library that caches large language model responses and returns them for similar queries, so the model is not called each time.

How do I install it?

Run pip install gptcache. It needs Python 3.8.1 or later.

Does it work with LangChain?

Yes. The README says it has been fully integrated with LangChain, and it also supports llama_index.

Can other languages use it?

Yes. The README says the GPTCache server Docker image lets any language use the cache.

Does it support new model APIs?

The README says the authors no longer add support for new APIs or models, and recommend the get and set API instead.

Is it stable?

The README says the project is under heavy development and its API may change at any time.

What are the best GPTCache alternatives?

Popular alternatives to GPTCache include Claude Code Cache Fix, Memlayer and SMG. See all GPTCache alternatives

Developer Stuff

Badges