Spaces:
Sleeping
Sleeping
Upload main.py
Browse files
main.py
CHANGED
|
@@ -130,13 +130,16 @@ def llm_response(query):
|
|
| 130 |
)
|
| 131 |
markdown_list = f"{answer_with_citations}{citations_section}"
|
| 132 |
|
| 133 |
-
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
|
|
|
|
|
|
| 140 |
|
| 141 |
|
| 142 |
except OutputParserException:
|
|
|
|
| 130 |
)
|
| 131 |
markdown_list = f"{answer_with_citations}{citations_section}"
|
| 132 |
|
| 133 |
+
markdown_list += f"\n\n\nHere is a list of articles that can provide more information about your inquiry:\n"
|
| 134 |
+
markdown_list += "\n".join([f"- [{res_title}]({res_link})" for res_title, res_link in zip(res_titles, res_links)])
|
| 135 |
|
| 136 |
+
# Combine answer and citations for final markdown output
|
| 137 |
+
|
| 138 |
+
# if not res_links:
|
| 139 |
+
# return markdown_list
|
| 140 |
+
# else:
|
| 141 |
+
# markdown_list += f"\n\n\nHere is a list of articles that can provide more information about your inquiry:\n"
|
| 142 |
+
# markdown_list += "\n".join([f"- [{res_title}]({res_link})" for res_title, res_link in zip(res_titles, res_links)])
|
| 143 |
|
| 144 |
|
| 145 |
except OutputParserException:
|