alexkueck commited on
Commit
23109f2
·
verified ·
1 Parent(s): d761bb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -295,23 +295,11 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
295
 
296
  #File hochladen in Chroma und dann Antwort generieren
297
  results = generate_text_zu_doc(neu_file, prompt, k, rag_option, chatbot, history, vektordatenbank)
298
- #########################################
299
- #result verarbeiten
300
- #aus result die Ergebnisse aufteilen und der History anhängen
301
- #passages = [doc['text'] for doc in docs]
302
- #links = [doc.get('url', 'No URL available') for doc in docs]
303
-
304
-
305
- # Zusammenstellen der Ausgabe
306
- #response = {
307
- #"answer": result,
308
- #"documents": [{"link": link, "passage": passage} for link, passage in zip(links, passages)]
309
- #}
310
 
311
  print("hier...........................")
312
  for text in results:
313
  entry = create_history_entry(text['page_content'], text['metadata'])
314
- #history.append(entry)
315
  history = history + [[prompt, entry]]
316
 
317
  return chatbot, history, None, file_history, ""
 
295
 
296
  #File hochladen in Chroma und dann Antwort generieren
297
  results = generate_text_zu_doc(neu_file, prompt, k, rag_option, chatbot, history, vektordatenbank)
298
+
 
 
 
 
 
 
 
 
 
 
 
299
 
300
  print("hier...........................")
301
  for text in results:
302
  entry = create_history_entry(text['page_content'], text['metadata'])
 
303
  history = history + [[prompt, entry]]
304
 
305
  return chatbot, history, None, file_history, ""