Chryslerx10 commited on
Commit
dfe503c
·
verified ·
1 Parent(s): 973591d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -83,13 +83,13 @@ Libraries Used:
83
  ## Inference the model
84
  ```python
85
  def create_chat_template(question, context):
86
- text = (
87
- "[Instruction] You are a question-answering agent which answers the question based on the related reviews. "
88
- "If related reviews are not provided, you can generate the answer based on the question.\n"
89
- f"[Question] {question}\n"
90
- "[Related Reviews] {context}\n"
91
- "[Answer] "
92
- )
93
  return text
94
 
95
  def generate_response(question, context):
 
83
  ## Inference the model
84
  ```python
85
  def create_chat_template(question, context):
86
+ text = f"""
87
+ [Instruction] You are a question-answering agent which answers the question based on the related reviews.
88
+ If related reviews are not provided, you can generate the answer based on the question.\n
89
+ [Question] {question}\n
90
+ [Related Reviews] {context}\n
91
+ [Answer]
92
+ """
93
  return text
94
 
95
  def generate_response(question, context):