mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Fix broken link when specified in metadata (#1200)
This commit is contained in:
parent
e752e6d671
commit
fd5294ed82
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user