OpenCRE icon indicating copy to clipboard operation
OpenCRE copied to clipboard

Have a separate UI element to enter language request, to prevent requests in the prompt to bother the matching

Open robvanderveer opened this issue 1 year ago • 0 comments

Have a separate UI element to enter language request, to prevent requests in the prompt to bother the matching. If you ask 'Answer in Chinese how I should prevent command injection' you get a worse opencre match than when you ask 'How should I prevent command injection'. Probably because we calculate the embedding over the entire user prompt. We can do two things:

  1. add a text box with the label 'Language of Answer' and put English in it by default, then use that in constructing the final prompt
  2. add a text box with the label 'Instructions' and put there by default 'Anwer in English'. People can change that to 'Answer in layman terms in German' for example. This is the nicest I believe

robvanderveer avatar Sep 14 '23 09:09 robvanderveer