Update app.py
Browse files
app.py
CHANGED
|
@@ -339,10 +339,10 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, rag_option
|
|
| 339 |
|
| 340 |
if (rag_option == "An"):
|
| 341 |
#muss nur einmal ausgeführt werden...
|
| 342 |
-
if vectorstore == None:
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
|
| 347 |
#kein Bild hochgeladen -> auf Text antworten...
|
| 348 |
status = "Antwort der KI ..."
|
|
|
|
| 339 |
|
| 340 |
if (rag_option == "An"):
|
| 341 |
#muss nur einmal ausgeführt werden...
|
| 342 |
+
#if vectorstore == None:
|
| 343 |
+
print("db neu aufbauen!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1")
|
| 344 |
+
splits = document_loading_splitting()
|
| 345 |
+
vectorstore, retriever = document_storage_chroma(splits)
|
| 346 |
|
| 347 |
#kein Bild hochgeladen -> auf Text antworten...
|
| 348 |
status = "Antwort der KI ..."
|