Spaces:
Build error
Build error
Commit
·
03b98ec
1
Parent(s):
e16cc9b
Fix prompt template
Browse files
main.py
CHANGED
|
@@ -139,7 +139,7 @@ def search(question: str) -> GeneratedAnswer:
|
|
| 139 |
template = (
|
| 140 |
"Using the information contained in the context, give a comprehensive answer to the question."
|
| 141 |
"If the answer cannot be deduced from the context, do not give an answer."
|
| 142 |
-
"Context: {{ documents|map(attribute='content')|replace('\n', ' ')
|
| 143 |
"Question: {{ query }}"
|
| 144 |
"Answer:"
|
| 145 |
)
|
|
|
|
| 139 |
template = (
|
| 140 |
"Using the information contained in the context, give a comprehensive answer to the question."
|
| 141 |
"If the answer cannot be deduced from the context, do not give an answer."
|
| 142 |
+
"Context: {{ documents|map(attribute='content')|join(';')|replace('\n', ' ') }}"
|
| 143 |
"Question: {{ query }}"
|
| 144 |
"Answer:"
|
| 145 |
)
|