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

Proposal for adding conversation history #494

Open
glennfeys opened this issue Jan 2, 2025 · 0 comments
Open

Proposal for adding conversation history #494

glennfeys opened this issue Jan 2, 2025 · 0 comments

Comments

@glennfeys
Copy link

As mentioned in #302 There is no easy way to include message history eventhough this could quite easily be added in a couple of ways. Since it's a logical next step I am unsure if @jamescalam already has on opinion on how to add this? Some ways that feel obvious to me is by adding a preprocessor step that could do one of both things:

  1. Rewrite the last message by providing n LLM with the history and telling it to rewrite it if necesairy for a standalone question. Downsides of this is that it has a drastic impact on speed eventhough a small model could already be used to do this rewriting.
  2. Embedding both question and question+history, then treat these two as seperate async router calls and based on the similarity scores of the question and question+history encoding you can check if question has high confidence you can pick this routing if not you can use the one with history. Or you can even use this in the aggregation per group, similar to HybridRouter.

Hope we can have a discussion what would fit here best since I think many people are hoping for this feature and is necessary to have a decent router in a continuous interactive process like a chatbot.

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

1 participant