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

[Feature Request] Enhance conversation repl #88

Closed
sigoden opened this issue Mar 21, 2023 · 3 comments · Fixed by #162
Closed

[Feature Request] Enhance conversation repl #88

sigoden opened this issue Mar 21, 2023 · 3 comments · Fixed by #162
Labels
enhancement New feature or request

Comments

@sigoden
Copy link
Owner

sigoden commented Mar 21, 2023

GPT-3.5 supports up to 4096 tokens, and it is not very likely to have a long conversatio, so there is no need to design a feature-rich conversation repl.

But gpt-4 supports up to 8k tokens, gpt-4-32k supports up to 32k tokens, we can do long conversation. It's necesarry to enhance conversation repl.

.conversation - show conversation help

.conversation new - create a new conversation

.conversation revert [num] - revert current conversation messages.

This give user the ability to edit previous lines, thus branching the conversation in a new direction. This is useful when models get caught in infinite loops, or local optima.

The num parameter specify how many messages to revert. If we omit num parameter, Aichat will display a list of current messages, the user can choose where to revert.

.conversation delete - delete a saved conversation

AIChat will display a multi-select list for the user to select the conversation to delete

.conversation use - reuse a saved conversation

AIChat will display a list for the user to select the conversation to load to

Design details

  1. The conversation automaticlly saved to $CONFIG_DIR/conversations/<datetime>-<first-message-truncated>.json
  2. The conversation is not bound to a specifiy model.
  3. Allow to run .model in the middle of conversation.
  4. Not allow to run .role or .prompt in the middle of conversation.

Welcome to provide suggestions for the design of the conversation repl.

@crabdancing
Copy link

.conversation is a bit long to type every time. Shortening it to .conv would be helpful -- perhaps as an optional abbreviation?

@sigoden
Copy link
Owner Author

sigoden commented Mar 22, 2023

aichat's readline supports tab completion, type .conv then type tab, you get .conversation. there is no need to use abbreviation.

@alxpettit

@sigoden sigoden pinned this issue Mar 25, 2023
@sigoden sigoden added the enhancement New feature or request label Mar 26, 2023
@asb
Copy link

asb commented Mar 26, 2023

One related request/suggestion I have would be to make it easy to convert a one-off request into a conversation. Often I expect a one-off response to be fine, but upon getting it back I realise I have a follow-up question or refinement, and this may be better handled through a conversation rather than editing the prompt.

As a strawman, how about .conversation last to start a conversation that incorporates the last question and answer.

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

Successfully merging a pull request may close this issue.

3 participants