Chryslerx10
commited on
Update README.md
Browse files
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 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
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):
|