Update utils.py
Browse files
utils.py
CHANGED
|
@@ -105,7 +105,6 @@ def create_directory_loader(file_type, directory_path):
|
|
| 105 |
################################################
|
| 106 |
#die Inhalte splitten, um in Vektordatenbank entsprechend zu laden als Splits
|
| 107 |
def document_loading_splitting():
|
| 108 |
-
global splittet
|
| 109 |
##############################
|
| 110 |
# Document loading
|
| 111 |
docs = []
|
|
@@ -138,8 +137,6 @@ def document_loading_splitting():
|
|
| 138 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150, chunk_size = 1500)
|
| 139 |
splits = text_splitter.split_documents(docs)
|
| 140 |
|
| 141 |
-
#nur bei erster Anfrage mit "choma" wird gesplittet...
|
| 142 |
-
splittet = True
|
| 143 |
return splits
|
| 144 |
|
| 145 |
###########################################
|
|
|
|
| 105 |
################################################
|
| 106 |
#die Inhalte splitten, um in Vektordatenbank entsprechend zu laden als Splits
|
| 107 |
def document_loading_splitting():
|
|
|
|
| 108 |
##############################
|
| 109 |
# Document loading
|
| 110 |
docs = []
|
|
|
|
| 137 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150, chunk_size = 1500)
|
| 138 |
splits = text_splitter.split_documents(docs)
|
| 139 |
|
|
|
|
|
|
|
| 140 |
return splits
|
| 141 |
|
| 142 |
###########################################
|