Skip to content

Commit

Permalink
Typo in raft.py (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfleischer authored Apr 5, 2024
1 parent d8b3433 commit cf200ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft/raft.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def encode_question_gen(question: str, chunk: Any) -> list[str]:
Answer this question using the information given in the context above. Here is things to pay attention to:
- First provide step-by-step reasoning on how to answer the question.
- In the reasoning, if you need to copy paste some sentences from the context, include them in ##begin_quote## and ##end_quote##. This would mean that things outside of ##begin_quote## and ##end_quote## are not directly copy paste from the context.
- End your response with final answer in the form <ANSWER>: $answer, the answer should be succint.
- End your response with final answer in the form <ANSWER>: $answer, the answer should be succinct.
""".format(question=question, context=str(chunk))
prompts.append({"role": "system", "content": "You are a helpful question answerer who can provide an answer given a question and relevant context."})
prompts.append({"role": "user", "content": prompt})
Expand Down

0 comments on commit cf200ac

Please sign in to comment.