Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ YOUTUBE_URL_3 = "https://www.youtube.com/watch?v=vw-KWfKwvTQ"
|
|
64 |
MODEL_NAME ="gpt-4"
|
65 |
|
66 |
def document_loading_splitting():
|
67 |
-
global splittet
|
68 |
# Document loading
|
69 |
docs = []
|
70 |
# Load PDF
|
@@ -83,6 +83,8 @@ def document_loading_splitting():
|
|
83 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|
84 |
chunk_size = 1500)
|
85 |
splits = text_splitter.split_documents(docs)
|
|
|
|
|
86 |
return splits
|
87 |
|
88 |
def document_storage_chroma(splits):
|
|
|
64 |
MODEL_NAME ="gpt-4"
|
65 |
|
66 |
def document_loading_splitting():
|
67 |
+
global splittet
|
68 |
# Document loading
|
69 |
docs = []
|
70 |
# Load PDF
|
|
|
83 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|
84 |
chunk_size = 1500)
|
85 |
splits = text_splitter.split_documents(docs)
|
86 |
+
#nur bei erster Anfrage mit "choma" wird gesplittet...
|
87 |
+
splittet = True
|
88 |
return splits
|
89 |
|
90 |
def document_storage_chroma(splits):
|