Have a separate UI element to enter language request, to prevent requests in the prompt to bother the matching
Open
@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:
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.