Unified Language Model Cache.
Project description
Caiche: Unified Language Model Cache
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 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
-
Conversational Agents Enhance the user experience of your chatbots and conversational agents by tapping into the Caiche global database.
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm-caiche-0.1.1.tar.gz.
File metadata
- Download URL: llm-caiche-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c93b18dcb140f8380465a36151cf3f50c8b6b9c6f2c0c3ccee8feb4569d0d3
|
|
| MD5 |
22dc0c6f42d5baa8f6119511734a9a4f
|
|
| BLAKE2b-256 |
946559459590a4423fef493c46eaf5d22f31b9e46aa684d050e564248d8028c7
|
File details
Details for the file llm_caiche-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_caiche-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c317da35b08700d08ea5338cec2e1a769ab932e51e1cc8d5e6e46dcb5a7599bb
|
|
| MD5 |
2bfd51a48c7914592897a44c4f6498ef
|
|
| BLAKE2b-256 |
9a400e7effa0a2909a7741040790300ef7fd4c75d3b6b178f23c3a8e9ad16dde
|