Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include conversation history? #302

Open
vdemchenko3 opened this issue May 29, 2024 · 3 comments
Open

How to include conversation history? #302

vdemchenko3 opened this issue May 29, 2024 · 3 comments

Comments

@vdemchenko3
Copy link

Hello!

I'm wondering how to include conversation history into a RouteLayer prediction?

Ideally I'd like to do something like:

rl = RouteLayer(encoder=encoder, routes=routes)
route_with_chat_history = rl(user_message, chat_history)

Is this possible?

I see there are two notebooks that attempt this 04-chat-history.ipynb and conversation-topic-splitter.ipynb using the Messages and Conversation classes, but I'm not sure how then to use those messages/conversation in a route selection.

@bendykoh
Copy link

Hi @vdemchenko3 did you have any update after this? I am also interested in routing multiple subjects based on a whole chat history

@vdemchenko3
Copy link
Author

No I don't have any updates unfortunately. The best I could find was to use an encoder that is able to handle context to some degree such as the E5 Mistral one.

@bendykoh
Copy link

I see, thanks for replying!, looks like I would have to do loops in my conversation turns in order to do some semantic routing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants