Comments (4)
It's under development and should be available soon.
from redis-vl-python.
@ajac-zero work is available on this branch/PR
#141
Your feedback is welcomed.
from redis-vl-python.
Awesome! The semantic session manager is really interesting.
I noticed each exchange is expected to be a pair of strings, would this limit the use of tool messages? Due to most providers returning tool/function calls as dicts. I suppose the simplest solution would be to stringify the response dicts before storing them, although this might require additional parsing. Alternatively using json mode would work fine already if available.
Also, there are situations where a single exchange could involve more than 2 messages. Like when a llm uses tools before generating a response.
user query message -> assistant tool call message -> tool result message -> assistant response message
For cases like these it could be useful to provide the option to store messages individually to allow greater flexibility.
from redis-vl-python.
Hi @ajac-zero. The session managers do have a convenience store
method to add a prompt and response texts in one call. This is meant for typical prompt->response->prompt->... chats. You can also call add_message
to add messages individually in the form of dicts and these include tool call messages. Can you let us know if that meets your needs?
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
- How to hold / cache a SemanticCache instance? HOT 2
- 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
- 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.