Enhance /ask
with a parameter for the length of chat history to use as context
#814
Labels
/ask
with a parameter for the length of chat history to use as context
#814
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 conversationforgetting
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:Related code in
ask.py
:jupyter-ai/packages/jupyter-ai/jupyter_ai/chat_handlers/ask.py
Line 52 in 465d991
Related code in
default.py
:jupyter-ai/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py
Line 21 in 465d991
jupyter-ai/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py
Line 35 in 465d991
Additional context
There are other issues that are related to this one (partially or directly):
The text was updated successfully, but these errors were encountered: