Ryan commited on
Commit ·
ea3a655
1
Parent(s): ec2d962
Clarify citation link takes user to highlighted quote
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def chat_interface(question: str, show_context: bool = False):
|
|
| 21 |
display_text = citation.get('matched_text', citation['quote'])
|
| 22 |
citations_text += f"**[{i}]** {citation['title']}\n\n"
|
| 23 |
citations_text += f"> \"{display_text}\"\n\n"
|
| 24 |
-
citations_text += f"🔗 [
|
| 25 |
|
| 26 |
# Add validation warnings if any
|
| 27 |
if result.get("validation_errors"):
|
|
|
|
| 21 |
display_text = citation.get('matched_text', citation['quote'])
|
| 22 |
citations_text += f"**[{i}]** {citation['title']}\n\n"
|
| 23 |
citations_text += f"> \"{display_text}\"\n\n"
|
| 24 |
+
citations_text += f"🔗 [View highlighted quote on 80,000 Hours →]({citation['url']})\n\n"
|
| 25 |
|
| 26 |
# Add validation warnings if any
|
| 27 |
if result.get("validation_errors"):
|