OWASP / OWASP/OpenCRE

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

Open
#376 0 comments 0 reactions 1 assignee View on GitHub

@northdpole is already working on this.

Since Sep 14, 2023.

Dominant language
Python
Stars
180
Forks
137
Avg merge
3d 23h
Merged PRs (30d)
21

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.