Maia Pelletier commited on
Commit ·
f4e4cf0
1
Parent(s): 91ed532
add additional external sources of information
Browse files
app.py
CHANGED
|
@@ -291,7 +291,7 @@ Answer:"""
|
|
| 291 |
response_text = re.sub(r'\[([^\]]+)\]\([^)]+\)', _dedup_link, response_text)
|
| 292 |
# Only append references when the model actually answered
|
| 293 |
no_answer_phrase = "The provided context does not contain enough information to answer this question."
|
| 294 |
-
no_answer_replacement = "The organic documents provided do not contain enough information to answer your question. For more information, try taking a look at the [Canadian Food Inspection Agency](https://inspection.canada.ca/en/food-labels/organic-products/)
|
| 295 |
if no_answer_phrase in response_text:
|
| 296 |
response_text = response_text.replace(no_answer_phrase, no_answer_replacement)
|
| 297 |
if no_answer_replacement not in response_text:
|
|
|
|
| 291 |
response_text = re.sub(r'\[([^\]]+)\]\([^)]+\)', _dedup_link, response_text)
|
| 292 |
# Only append references when the model actually answered
|
| 293 |
no_answer_phrase = "The provided context does not contain enough information to answer this question."
|
| 294 |
+
no_answer_replacement = "The organic documents provided do not contain enough information to answer your question. For more information, try taking a look at the [Canadian Food Inspection Agency](https://inspection.canada.ca/en/food-labels/organic-products/), the [Certified Organic Growers of Canada](https://cog.ca/), or the [Canada Organic Trade Association](https://canada-organic.ca/en/organic)."
|
| 295 |
if no_answer_phrase in response_text:
|
| 296 |
response_text = response_text.replace(no_answer_phrase, no_answer_replacement)
|
| 297 |
if no_answer_replacement not in response_text:
|