quivr icon indicating copy to clipboard operation
quivr copied to clipboard

Add answers to context

Open Swader opened this issue 1 year ago • 1 comments

As discussed here.

The ideal UX flow would be:

  • on answer, add three buttons

      1. Build on answer
      1. New context answer
      1. Fork context
  • "Build on answer" adds this question and answer to the DB for future queries.

  • "New context answer" works as it does now, fresh context API call with only current raw-data vectors, previous questions and answers are ignored, even if there are some.

  • "Fork context" allows you to branch off of a certain answer (even past ones) with a different query, like so: suppose there was Context 0 -> Question 1 -> Answer 1 -> Question 2 -> Answer 2. I can scroll up to Answer 1, click Fork Context, and the next query I write will pretend Question 2 and Answer 2 never happened. This allows the user to have branched context-persistent conversations with the API and the ability to fine tune responses from the past based on new prompt insights from the future. It is also very useful for prompt auditing and reporting.

I understand 3) is very hard to build right now as it also requires a separate UI element for the forked conversations so 1) and 2) would be good enough, especially 1) which is very important in longer-context plans.

Swader avatar May 14 '23 18:05 Swader