Update app.py
Browse files
app.py
CHANGED
|
@@ -271,10 +271,10 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
| 271 |
results = generate_text_zu_doc(neu_file, prompt, k, rag_option, chatbot, history, vektordatenbank)
|
| 272 |
|
| 273 |
#Ergebnisse für history und chatbot zusammenstellen
|
| 274 |
-
summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\
|
| 275 |
#summary += " ".join(['Dokument: ' + str(doc['titel']) + ' Seite: ' + str(doc['seite']) + '\nAuschnitt: ' + str(doc["content"]) for doc in results['relevant_docs']])
|
| 276 |
summary += " ".join([
|
| 277 |
-
'<b>\nDokument: </b> <span style="color:
|
| 278 |
'<span style="color: red;">Seite:</span> ' + str(doc['seite']) + '<br>'
|
| 279 |
'<b>Auschnitt:</b> ' + str(doc["content"])
|
| 280 |
for doc in results['relevant_docs']
|
|
|
|
| 271 |
results = generate_text_zu_doc(neu_file, prompt, k, rag_option, chatbot, history, vektordatenbank)
|
| 272 |
|
| 273 |
#Ergebnisse für history und chatbot zusammenstellen
|
| 274 |
+
summary = "<b>Zusammenfassung: </b>\n" + str(results['answer']) + "\n\n<b>Auszüge dazu: </b>"
|
| 275 |
#summary += " ".join(['Dokument: ' + str(doc['titel']) + ' Seite: ' + str(doc['seite']) + '\nAuschnitt: ' + str(doc["content"]) for doc in results['relevant_docs']])
|
| 276 |
summary += " ".join([
|
| 277 |
+
'<b>\nDokument: </b> <span style="color: #BB70FC;">' + str(doc['titel']) + '</span> '
|
| 278 |
'<span style="color: red;">Seite:</span> ' + str(doc['seite']) + '<br>'
|
| 279 |
'<b>Auschnitt:</b> ' + str(doc["content"])
|
| 280 |
for doc in results['relevant_docs']
|