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

Enhance /ask with a parameter for the length of chat history to use as context #814

Closed
srdas opened this issue Jun 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request @jupyter-ai/chatui

Comments

@srdas
Copy link
Collaborator

srdas commented Jun 3, 2024

Problem

Currently the /ask command will use the two previous interactions (k=2) in conversation history as context. When switching to a different topic of conversation forgetting the current context is useful (k=0). Or, it may be necessary to use a longer conversation chain instead to have bigger context (k>2).

Proposed Solution

Modify the /ask command to take a parameter for the size (n) of conversation history to use, such as:

`/ask k=n <prompt>`

Related code in ask.py:

Related code in default.py:

Additional context

There are other issues that are related to this one (partially or directly):

@srdas srdas added the enhancement New feature or request label Jun 3, 2024
@srdas srdas self-assigned this Jun 3, 2024
@JasonWeill JasonWeill changed the title Enhance /ask with a prameter for the length of chat history to use as context Enhance /ask with a parameter for the length of chat history to use as context Jun 3, 2024
@srdas
Copy link
Collaborator Author

srdas commented Jun 4, 2024

Closing this issue as there are two other issues that cover some of the same functionality:
(1) Update functionality to also remove chat history when the /clear command is used. This is already requested in Issue #616.
(2) Allow the user to modify the default chat history length globally in Settings. #817.

@srdas srdas closed this as completed Jun 4, 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 @jupyter-ai/chatui
Projects
None yet
Development

No branches or pull requests

2 participants