Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def file_Upload():
|
|
104 |
print(uploads_dir)
|
105 |
global chain;
|
106 |
|
107 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
108 |
texts = text_splitter.split_documents(documents)
|
109 |
embeddings = OpenAIEmbeddings()
|
110 |
vectordb = Chroma.from_documents(texts,embeddings)
|
|
|
104 |
print(uploads_dir)
|
105 |
global chain;
|
106 |
|
107 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1500, chunk_overlap=150)
|
108 |
texts = text_splitter.split_documents(documents)
|
109 |
embeddings = OpenAIEmbeddings()
|
110 |
vectordb = Chroma.from_documents(texts,embeddings)
|