Skip to content

Follow-up questions in AI chat #12243

Open
@InAnYan

Description

@InAnYan

Is your suggestion for improvement related to a problem? Please describe.

Many AI chat programs have a feature called "follow-up questions". It behaves as follows:

  1. User sends a question to AI.
  2. AI responds.
  3. Somewhere below or above chat prompt there is a list of short questions that is relevant to ongoing conversation.

Those follow-up questions can be used for brainstorming, or when user just doesn't know what to ask more.

Describe the solution you'd like

Introduce this feature to JabRef!

Additional context

How to do this:

  1. Make a new setting: "Generate follow-up questions", which is boolean. Generate follow-up questions ONLY if it is true.
  2. After each AI response in AI chat run a background process for generating follow-up questions:
    1. You should create a prompt that would accept last user message and last AI message. Task the AI to generate follow-up questions. They should be small and there should be several of them.
    2. AI should generate response in a special format, so that you can then parse them into a list of questions.
  3. When you got follow-up questions, add them above the chat prompt as buttons or links (you are free to experiment, though it should be and look simple).
  4. When user clicks on a link, message should be sent to AI.
  5. When any message is sent to AI (either follow-up, or custom), list of follow-up questions must be cleared

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Normal priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions