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

Dynamic conversation context limit #983

Open
oskarslapinsvismacom opened this issue Jul 3, 2024 · 0 comments
Open

Dynamic conversation context limit #983

oskarslapinsvismacom opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@oskarslapinsvismacom
Copy link

Is your feature request related to this sample app, or to an Azure service, such as Azure OpenAI or Azure AI Search?
It is related to this sample app.

Is your feature request related to a problem? Please describe.
For some implementations it might be very useful to set a limit of conversation context. Meaning, taking into account, for example, only last 5, or 10 messages as the context. This could help dealing with users that keep asking unrelated questions in the same conversation

Describe the solution you'd like
Implementing an environment variable that, if set, would take into context only last X messages from the conversation when sending a chat completion request.

Is this feature specific to your use case or your organization, or would it apply broadly across other uses of this app?
It would apply for our use case in some specific scenarios and I believe that the same would apply for other organisations as well

Describe alternatives you've considered
Implementing a reminder in the system message for users to clear the chat, but this would be awfully unreliable.

Additional context
Issue we are facing is that when users keep very long conversations of many different topics, at some point chat-bot no longer can find answer in the documents and it explains that in his answer, which makes users very confused, since the topic is in the documents. Also, trying the same question later gives them an answer.
I very strongly feel that a variable that can be set for such a behavior to shorten the context can help in many different scenarios, especially if you do not want to over-spend for resources

@oskarslapinsvismacom oskarslapinsvismacom added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant