Skip to content

Commit

Permalink
feature/omit-empty-sources (#386)
Browse files Browse the repository at this point in the history
* empty source omitted

* momet sources altogether

* formatting

---------

Co-authored-by: George Burton <[email protected]>
  • Loading branch information
gecBurton and George Burton authored May 21, 2024
1 parent 73242fd commit 446f89b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions django_app/frontend/README.md

This file was deleted.

10 changes: 1 addition & 9 deletions redbox/llm/prompts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
a question, create a final answer with Sources at the end. \
If you don't know the answer, just say that you don't know. Don't try to make \
up an answer.
Be concise in your response and summarise where appropriate. \
At the end of your response add a "Sources:" section with the documents you used. \
DO NOT reference the source documents in your response. Only cite at the end. \
ONLY PUT CITED DOCUMENTS IN THE "Sources:" SECTION AND NO WHERE ELSE IN YOUR RESPONSE. \
IT IS CRUCIAL that citations only happens in the "Sources:" section. \
This format should be <DocX> where X is the document UUID being cited. \
DO NOT INCLUDE ANY DOCUMENTS IN THE "Sources:" THAT YOU DID NOT USE IN YOUR RESPONSE. \
YOU MUST CITE USING THE <DocX> FORMAT. NO OTHER FORMAT WILL BE ACCEPTED.
Example: "Sources: <DocX> <DocY> <DocZ>"
Be concise in your response and summarise where appropriate.
Use **bold** to highlight the most question relevant parts in your response.
If dealing dealing with lots of data return it in markdown table format.
Expand Down

0 comments on commit 446f89b

Please sign in to comment.