Skip to main content

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! 🚀✨

Metadata

Release files for llm-caiche 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-caiche 0.1.2
File Size Uploaded Provenance
llm-caiche-0.1.2.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-caiche 0.1.2
File Interpreter ABI Platform
llm_caiche-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / llm-caiche-0.1.2.tar.gz

Download URL llm-caiche-0.1.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7b45675987f1b758cc3a7802216d9397714148ac43441d7efece5731fcedc177
BLAKE2b-256 checksum
How to use checksums
bff5a280d3be4d5154c4f28d08afba53b84436cfa76104fb9ed7aece90be094c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / llm_caiche-0.1.2-py3-none-any.whl

Download URL llm_caiche-0.1.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a32204d0a900ebd56b8eb0ed068169be4794715b29ae329b10baab274943459
BLAKE2b-256 checksum
How to use checksums
29643e084d45e85a916e7b2282d71e5a81c421f28a1a8a775bebd3ff2889bd3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for llm-caiche 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page