Comments (2)
Hi @wired87 one of these guide might help you out:
- https://github.com/redis-developer/redis-ai-resources/blob/main/python-recipes/semantic-cache/semantic_caching_gemini.ipynb
- https://github.com/redis/redis-vl-python/blob/main/docs/user_guide/llmcache_03.ipynb
If you want to pre-populate the cache you can do this with an initialization script one time and the records will live on in the Redis instance. When you consume the cache you don't need to redefine just connect to it and you can cache.check() as you would.
from redis-vl-python.
Also would be helpful to understand the runtime environment you are in here... is this a FastAPI service? Or a notebook? This will influence how you should load the caching instance
from redis-vl-python.
Related Issues (20)
- Docstring error on schema `distance_metrics` -> `distance_metric`
- Automate docs build for future releases
- Support for OpenAI API >= 1.0.0 HOT 1
- Switch to poetry for package management HOT 4
- [Feat] Support for binary and scalar embedding quantization HOT 1
- Issue with search dialect 3 and JSON HOT 4
- How to access aws bed rock embedding models for vectorizer? HOT 1
- Improve & Enrich the LLM client implementation for TextVectorizer HOT 4
- Add Index Alias management capabilities HOT 4
- Adding a filter_expression to an existing VectorQuery is not always working HOT 2
- ValueError: Required Redis database module searchlight with version >= 20600 not installed. Refer to Redis Stack documentation: HOT 9
- Simplify the chaining of queries HOT 1
- Add Session Management Feat. HOT 4
- Redis semantic cache working with custom embeddings HOT 4
- Provide the utility to count the token saved using Semantic Cache
- How to apply filter on a semantic cache check() function HOT 3
- Usage of redisvl with redis without redis stack server HOT 1
- IndexError: list index out of range while applying filter on semantic cache check HOT 9
- Incorrect number of embedding dimensions in the YAML schema in README.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-vl-python.