Update app.py
Browse files
app.py
CHANGED
@@ -105,14 +105,15 @@ file_path_download = ""
|
|
105 |
def create_vectorstore():
|
106 |
global vektordatenbank, SPLIT_TO_ORIGINAL_MAPPING
|
107 |
# Splits zu allen Dokumenten in den Verzeichnissen erstellen
|
108 |
-
PREPROCESSED_SPLITS, SPLIT_TO_ORIGINAL_MAPPING = document_loading_splitting()
|
109 |
if PREPROCESSED_SPLITS:
|
110 |
# Vektordatenbank zu den Splits erstellen
|
111 |
vektordatenbank = document_storage_chroma(PREPROCESSED_SPLITS)
|
112 |
# Speichern der Splits und Metadaten
|
113 |
-
save_splits(PREPROCESSED_SPLITS)
|
114 |
save_split_to_original_mapping(SPLIT_TO_ORIGINAL_MAPPING)
|
115 |
-
|
|
|
116 |
|
117 |
###########################################
|
118 |
# Beim Start der Anwendung - Vektorstore laden!!!!
|
|
|
105 |
def create_vectorstore():
|
106 |
global vektordatenbank, SPLIT_TO_ORIGINAL_MAPPING
|
107 |
# Splits zu allen Dokumenten in den Verzeichnissen erstellen
|
108 |
+
PREPROCESSED_SPLITS, SPLIT_TO_ORIGINAL_MAPPING, ORIGINAL_SPLITS = document_loading_splitting()
|
109 |
if PREPROCESSED_SPLITS:
|
110 |
# Vektordatenbank zu den Splits erstellen
|
111 |
vektordatenbank = document_storage_chroma(PREPROCESSED_SPLITS)
|
112 |
# Speichern der Splits und Metadaten
|
113 |
+
save_splits(PREPROCESSED_SPLITS, ORIGINAL_SPLITS)
|
114 |
save_split_to_original_mapping(SPLIT_TO_ORIGINAL_MAPPING)
|
115 |
+
|
116 |
+
|
117 |
|
118 |
###########################################
|
119 |
# Beim Start der Anwendung - Vektorstore laden!!!!
|