Update app.py
Browse files
app.py
CHANGED
@@ -332,8 +332,12 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
332 |
for result in results['relevant_docs']:
|
333 |
split_id = result.get("metadata", {}).get("split_id")
|
334 |
if split_id:
|
335 |
-
|
336 |
-
|
|
|
|
|
|
|
|
|
337 |
else:
|
338 |
# Keine relevanten Dokumente gefunden
|
339 |
status = "Keine relevanten Dokumente gefunden."
|
|
|
332 |
for result in results['relevant_docs']:
|
333 |
split_id = result.get("metadata", {}).get("split_id")
|
334 |
if split_id:
|
335 |
+
try:
|
336 |
+
original_split = SPLIT_TO_ORIGINAL_MAPPING[split_id]
|
337 |
+
relevant_docs_org.append(original_split)
|
338 |
+
except Exception as e:
|
339 |
+
print(f"Fehler beim Laden des Mappings...................: {str(e)}")
|
340 |
+
|
341 |
else:
|
342 |
# Keine relevanten Dokumente gefunden
|
343 |
status = "Keine relevanten Dokumente gefunden."
|