File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
backend/danswer/connectors/file Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,13 @@ def _process_file(
123
123
"filename" ,
124
124
"file_display_name" ,
125
125
"title" ,
126
+ "connector_type" ,
126
127
]
127
128
}
128
129
130
+ source_type_str = all_metadata .get ("connector_type" )
131
+ source_type = DocumentSource (source_type_str ) if source_type_str else None
132
+
129
133
p_owner_names = all_metadata .get ("primary_owners" )
130
134
s_owner_names = all_metadata .get ("secondary_owners" )
131
135
p_owners = (
@@ -145,7 +149,7 @@ def _process_file(
145
149
sections = [
146
150
Section (link = all_metadata .get ("link" ), text = file_content_raw .strip ())
147
151
],
148
- source = DocumentSource .FILE ,
152
+ source = source_type or DocumentSource .FILE ,
149
153
semantic_identifier = file_display_name ,
150
154
title = title ,
151
155
doc_updated_at = final_time_updated ,
You can’t perform that action at this time.
0 commit comments