mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-09 06:22:18 +02:00
Fix broken link when specified in metadata (#1200)
This commit is contained in:
@@ -98,7 +98,7 @@ def _process_file(
|
||||
Document(
|
||||
id=f"FILE_CONNECTOR__{file_name}", # add a prefix to avoid conflicts with other connectors
|
||||
sections=[
|
||||
Section(link=metadata.get("link"), text=file_content_raw.strip())
|
||||
Section(link=file_metadata.get("link"), text=file_content_raw.strip())
|
||||
],
|
||||
source=DocumentSource.FILE,
|
||||
semantic_identifier=file_display_name_override or file_name,
|
||||
|
Reference in New Issue
Block a user