feat: remote sources have clickable links

This commit is contained in:
Siddhant Rai
2024-05-29 19:07:08 +05:30
parent 967b195946
commit 91d730a7bc
2 changed files with 13 additions and 2 deletions

View File

@@ -69,6 +69,11 @@ class ClassicRAG(BaseRetriever):
else i.page_content
),
"text": i.page_content,
"source": (
i.metadata.get("source")
if i.metadata.get("source")
else "local"
),
}
for i in docs_temp
]