mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 06:15:57 +00:00
feat: remote sources have clickable links
This commit is contained in:
1 parent
967b195946
commit
91d730a7bc
2 files changed
+13
-2
No files matched your search
@@ -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
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user