awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
zilliztech avatar

zilliztech/GPTCache

0
View on GitHub↗
8,068 stars·583 forks·Python·MIT·43 viewsgptcache.readthedocs.io↗

GPTCache

GPTCache is a semantic caching layer and response optimizer for large language models. It functions as pluggable middleware for orchestration frameworks, utilizing vector database caching to store and retrieve model responses based on the semantic similarity of prompts rather than exact text matches.

The system uses embeddings to determine cache hits by comparing the distance between new queries and stored vectors. It employs a hybrid storage model that persists original prompts in relational databases while maintaining high-dimensional embeddings in vector stores.

The project covers a broad range of capabilities, including semantic embedding generation, vector indexing, and policy-based cache eviction. It also provides user session isolation to prevent data leakage and can be hosted as a standalone cache server to handle requests over HTTP.

Features

  • Semantic Caching Systems - Stores and retrieves LLM responses based on the semantic similarity of input queries to optimize performance.
  • Embedding Generators - Converts text requests into vector representations to enable semantic similarity searches within the cache.
  • Latency Reduction Techniques - Minimizes response latency by retrieving cached answers instead of triggering full model generation.
  • LLM Cost Management - Reduces API expenses by reusing previously generated responses for semantically similar queries.
  • Text Embedding Generators - Transforms user queries into dense vectors via external providers to facilitate context similarity searches.
  • Vector Databases - Uses vector databases to store embeddings and match new queries against previously generated model outputs.
  • Vector Retrieval Systems - Employs vector-based retrieval to match new queries against stored embeddings for semantic context retrieval.
  • API Response Optimizations - Optimizes API performance and costs by reusing cached responses for semantically similar queries.
  • Hybrid Storage Engines - Utilizes a hybrid storage architecture to maintain both relational metadata and vector embeddings.
  • Response Caching - Saves previous AI model answers to eliminate redundant API calls and reduce latency.
  • Vector Database Integrations - Provides connectors for integrating specialized vector databases to store and retrieve semantic embeddings.
  • Relational Vector Engines - Combines relational databases for raw text and metadata with vector stores for high-dimensional embeddings.
  • Vector Storage - Persists model responses and high-dimensional embeddings using specialized vector storage systems.
  • Distance Metrics - Uses mathematical distance functions to compare query embeddings and determine semantic cache hits.
  • AI Model Adapters - Provides a standardized adapter interface to connect the caching layer with various language and image models.
  • Orchestration Store Integrations - Offers a pluggable caching backend compatible with common LLM orchestration frameworks like LangChain and LlamaIndex.
  • LLM Performance Optimization Libraries - Optimizes the execution speed and efficiency of LLM chains through a semantic caching layer.
  • Cache Hit Evaluation - Matches new queries against cached responses using exact string matching or embedding distance metrics.
  • Model Abstractions - Implements a standardized interface to normalize diverse AI model API responses and request handling.
  • Query Optimization - Enhances retrieval in LLM frameworks by caching common queries and their corresponding responses.
  • Cache Eviction Policies - Implements predefined replacement rules to remove outdated or infrequently accessed entries when storage limits are reached.
  • Vector Indexing - Organizes high-dimensional embeddings in vector databases to ensure rapid retrieval of similar queries.
  • Similarity Thresholds - Uses distance metric thresholds to determine if a new request is semantically similar enough to a cached entry.
  • Inference Session Isolation - Isolates cached entries using unique user identifiers to prevent data leakage and maintain context relevance.
  • Unified Model Wrappers - Standardizes request protocols and APIs across different LLMs and multimodal services for consistent interaction.
  • Application Services - Semantic caching library for LLM queries.
  • Development Frameworks - Caching library to reduce latency and costs for LLM queries.
  • Infrastructure and Utilities - Provides semantic caching to reduce API costs and latency.
  • Memory And Caching - Semantic caching library to reduce API costs and latency.
  • RAG Frameworks - Semantic caching layer to accelerate LLM response times.
  • Data Storage Systems - Creates semantic caches for LLM query optimization.
  • Development Packages - Semantic caching layer for LLM queries.

Star history

Star history chart for zilliztech/gptcacheStar history chart for zilliztech/gptcache

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with GPTCache

These projects share indexed features with GPTCache. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • tporadowski/redistporadowski avatar

    tporadowski/redis

    9,987View on GitHub↗

    Redis is a high-performance in-memory key-value store that functions as a distributed cache, message broker, and NoSQL database. It provides sub-millisecond read and write access to data stored in RAM and can operate as a vector database for indexing high-dimensional embeddings. The system supports a wide range of data storage and synchronization primitives, including the management of strings, hashes, lists, sets, and JSON documents. It enables real-time data operations through atomic transactions, hybrid persistence using snapshots and append-only logs, and high-availability configurations

    Credisredis-for-windowsredis-msi-installer
    View on GitHub↗9,987
  • redis/go-redisredis avatar

    redis/go-redis

    22,159View on GitHub↗

    This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive interface for managing remote data stores, enabling developers to execute standard database commands, handle complex data structures, and perform asynchronous operations within Go applications. The library distinguishes itself through its support for advanced Redis capabilities, including connection pooling, pipelining, and transactional integrity. It provides specialized primitives for managing distributed clusters, including automated topology updates and request routing to sha

    Gogogolangredis
    View on GitHub↗22,159
  • lancedb/lancedblancedb avatar

    lancedb/lancedb

    9,031View on GitHub↗

    LanceDB is a vector database and columnar data store designed to function as a versioned dataset manager and vector search engine. It serves as a high-performance backend for indexing and retrieving high-dimensional embeddings, providing the foundation for machine learning data pipelines. The system distinguishes itself through a combination of cloud-native object storage and immutable version tracking, allowing for data time-travel and reproducible AI experiments. It integrates hybrid search capabilities, merging dense vector similarity with BM25 full-text search and SQL-like scalar filters

    HTMLapproximate-nearest-neighbor-searchimage-searchnearest-neighbor-search
    View on GitHub↗9,031
  • mastra-ai/mastramastra-ai avatar

    mastra-ai/mastra

    21,221View on GitHub↗

    Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and multi-agent systems. It provides a comprehensive suite of primitives for creating resilient AI applications, including durable workflow orchestration, event-driven agent loops, and semantic memory management. By integrating these core components, the platform enables developers to build complex, multi-step processes that can reason about goals and execute tasks without manual intervention. The framework distinguishes itself through its focus on observability and secure, isolated execut

    TypeScriptagentsaichatbots
    View on GitHub↗21,221
Compare all 30 related projects→

Frequently asked questions

What does zilliztech/gptcache do?

GPTCache is a semantic caching layer and response optimizer for large language models. It functions as pluggable middleware for orchestration frameworks, utilizing vector database caching to store and retrieve model responses based on the semantic similarity of prompts rather than exact text matches.

What are the main features of zilliztech/gptcache?

The main features of zilliztech/gptcache are: Semantic Caching Systems, Embedding Generators, Latency Reduction Techniques, LLM Cost Management, Text Embedding Generators, Vector Databases, Vector Retrieval Systems, API Response Optimizations.

Which projects share features with zilliztech/gptcache?

Projects with overlapping indexed features include: tporadowski/redis — Redis is a high-performance in-memory key-value store that functions as a distributed cache, message broker, and NoSQL… redis/go-redis — This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive… lancedb/lancedb — LanceDB is a vector database and columnar data store designed to function as a versioned dataset manager and vector… mastra-ai/mastra — Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and… llmware-ai/llmware — llmware is a Python framework for AI agent orchestration and model management, designed to coordinate multi-model… alibaba/higress — Higress is an AI API gateway and cloud-native traffic manager that functions as a Kubernetes ingress controller. It…