Skip to main content

Unified Language Model Cache.

Project description

Caiche: Unified Language Model Cache

Supported Versions

Welcome to Caiche – your gateway to efficient and cached language model interactions! 🚀

What is Caiche?

Caiche is a Unified Language Model Cache designed to streamline your language model queries. Imagine a world where you can ask a question and instantly get a response, thanks to a global vector database that stores and retrieves prompt-response pairs. That's Caiche for you – making your language model interactions faster and cheaper.

Installation

Installing Caiche is a breeze. Open your terminal and run:

pip install llm-caiche

Getting Started

Now that you have Caiche installed, let's dive into some quick code snippets to get you started:

from caiche import Caiche

# Replace <OPENAI_API_KEY> with your actual OpenAI API key
cai = Caiche(api_key="<OPENAI_API_KEY>")

# Ask a question and get a response
result = cai.query("What is the capital of Bulgaria?")

And just like that, you're ready to unlock the power of cached language model responses!

Why Caiche?

1. Cheaper Responses

Enjoy cost savings as you won't be charged for inference costs when a response is cached.

2. Faster Queries

Caiche eliminates the need to wait for language models to generate responses by storing and retrieving previous interactions. Say goodbye to unnecessary delays!

3. Global Database

Your prompts and responses are stored globally, allowing you to benefit from a vast database of interactions. Join the Caiche community and contribute to a shared knowledge space.

What's Next?

At Caiche, we're not just stopping at efficient cached responses. Our vision extends beyond, aiming to redefine the landscape of language model interactions. Here's a glimpse of what's on the horizon:

Approximate Cache for Semantically Similar Prompts

We're actively working on building an approximate cache that goes beyond storing exact prompt-response pairs. Our goal is to leverage the collected data to lower costs not only for existing prompts but also for prompts that are semantically similar. Imagine getting cost-efficient responses for a range of related queries, making your interactions even more budget-friendly and responsive.

Community and Contributions

We believe in the power of community collaboration. If you have ideas, improvements, or want to report issues, head over to our GitHub repository and let your voice be heard!

Example Use Cases

  1. Conversational Agents Enhance the user experience of your chatbots and conversational agents by tapping into the Caiche global database.

  2. Research and Development Expedite your language model experimentation process by utilizing stored interactions for quicker testing.

Contributing

We will be adding contributing guidelines soon.

License

Caiche is licensed under the MIT License. Feel free to explore, modify, and share!


Ready to revolutionize your language model interactions? Install Caiche, explore the possibilities, and join us on this exciting journey!

Happy querying! 🚀✨

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-caiche-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_caiche-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file llm-caiche-0.1.2.tar.gz.

File metadata

  • Download URL: llm-caiche-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for llm-caiche-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7b45675987f1b758cc3a7802216d9397714148ac43441d7efece5731fcedc177
MD5 a525c742e2dfbe3ec5ac7a594c0d104e
BLAKE2b-256 bff5a280d3be4d5154c4f28d08afba53b84436cfa76104fb9ed7aece90be094c

See more details on using hashes here.

File details

Details for the file llm_caiche-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: llm_caiche-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for llm_caiche-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a32204d0a900ebd56b8eb0ed068169be4794715b29ae329b10baab274943459
MD5 5789d2feac9fc79fb6b5167313b1c2df
BLAKE2b-256 29643e084d45e85a916e7b2282d71e5a81c421f28a1a8a775bebd3ff2889bd3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page