Skip to content
OSSsoftware

GPTCache

Semantic cache for LLMs. Fully integrated with LangChain and llama_index.

Open sourceHealthy · 77/1008.2k GitHub stars

GPTCache is an open-source project in the AI category written in Python, released under the MIT license. It has 8,235 GitHub stars and its last commit was 2 months ago.

About GPTCache

GPTCache is a semantic cache designed specifically for large language models (LLMs). It is fully integrated with LangChain and llama_index, providing efficient storage and retrieval of precomputed embeddings and related data. By caching semantic information, GPTCache accelerates inference tasks for LLMs, reducing latency and improving overall performance. Its seamless integration with LangChain and llama_index ensures compatibility and ease of use within existing workflows. With GPTCache, developers can leverage the power of semantic caching to enhance the efficiency and effectiveness of their language model applications.

GPTCache screenshot

GitHub activity

Stars
8,235
Forks
606
Open issues
77
Last commit
2 months ago
Latest release
0.1.44 · 2 years ago
Created
2023

#chatbot#chatgpt#chatgpt-api#llm#milvus#similarity-search#vector-search#aigc#openai#memcache#gpt#langchain

GPTCache at a glance

Open source
Yes
License
MIT
Language
Python
Pricing
Free
Categories
AIChatGPTPython

GPTCache vs similar projects

GPTCache compared with similar open-source projects
ProjectStarsLicenseLanguageLast commitHealth
GPTCacheSemantic cache for LLMs. Fully integrated with LangChain and llama_index.8.2k GitHub starsMITPython2 months agoHealthy
Open WebUISelf-hosted AI interface for local and cloud language models with RAG and tool support.159k GitHub starsOtherSveltetodayThriving
Lobe ChatAn open-source high-performance chatbot framework that supports speech synthesis / multimodal and extensible F86k GitHub starsOtherTypeScripttodayThriving
unslothLocal UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, G80k GitHub starsApache-2.0PythontodayThriving
AnythingLLMOpen-source local-first AI workspace for LLMs, RAG, agents and document-aware chat.69k GitHub starsMITJavaScripttodayThriving
JanOpen-source desktop AI assistant for running language models locally.46k GitHub starsOtherRust2 days agoThriving
Onyx Community EditionChat UI that works with any LLM. It comes loaded with advanced features like agents, web search, RAG, MCP, dee34k GitHub starsOtherPythontodayThriving

GPTCache FAQ

What is GPTCache?

Semantic cache for LLMs. Fully integrated with LangChain and llama_index. GPTCache is a semantic cache designed specifically for large language models (LLMs). It is fully integrated with LangChain and llama_index, providing efficient storage and retrieval of precomputed embeddings and related data. By caching semantic information, GPTCache accelerates inference tasks for

Is GPTCache open source?

Yes. GPTCache's source code is public on GitHub (zilliztech/GPTCache) under the MIT license.

Is GPTCache still maintained?

GPTCache's last commit was on 2026-09-22 (2 months ago), latest release 0.1.44 on 2024-08-01. Health score: 77/100.

Is GPTCache free?

GPTCache is free to use and can be self-hosted; some projects also sell an optional hosted plan.

What are the best alternatives to GPTCache?

Similar projects include Open WebUI (★ 159k), Lobe Chat (★ 86k), unsloth (★ 80k), AnythingLLM (★ 69k), Jan (★ 46k).

Share:XLinkedIn

Maintain GPTCache? Add the badge to your README

Shows your project's health score and links back to this page.

GPTCache on OSS Software
[![GPTCache on OSS Software](https://osssoftware.org/badge/gptcache.svg)](https://osssoftware.org/tools/gptcache/)