Skip to content

Commit

Permalink
Fix linting issue in chat.py
Browse files Browse the repository at this point in the history
FIx linting errors
  • Loading branch information
KevinEtchells committed May 29, 2024
1 parent cc81f7c commit a5d8802
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions redbox/llm/prompts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
If the user asks for a specific number or range of bullet points you MUST give that number of bullet points. \
For example
QUESTION: Please give me 6-8 bullet points on tigers
FINAL ANSWER: - Tigers are orange. \n- Tigers are big. \n- Tigers are scary. \n- Tigers are cool. \n- Tigers are cats. -\n Tigers are animals. \
FINAL ANSWER: - Tigers are orange. \n- Tigers are big. \n- Tigers are scary. \n- Tigers are cool. \n- Tigers are \
cats. -\n Tigers are animals. \
If the number of bullet points a user asks for is not supported by the amount of information that you have, then say so, else give what the user asks for. \
If the number of bullet points a user asks for is not supported by the amount of information that you have, then \
say so, else give what the user asks for. \
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. \
Expand All @@ -45,9 +47,7 @@
=========
FINAL ANSWER:"""

WITH_SOURCES_PROMPT = PromptTemplate.from_template(
_core_redbox_prompt + _with_sources_template
)
WITH_SOURCES_PROMPT = PromptTemplate.from_template(_core_redbox_prompt + _with_sources_template)

_stuff_document_template = "<Doc{parent_doc_uuid}>{page_content}</Doc{parent_doc_uuid}>"

Expand Down

0 comments on commit a5d8802

Please sign in to comment.