Spaces:
Running
on
Zero
Running
on
Zero
Update utils.py
Browse files
utils.py
CHANGED
@@ -192,7 +192,7 @@ def read_file(data: str) -> Document:
|
|
192 |
doc = Document(page_content=content, metadata={"name": data.split('/')[-1]})
|
193 |
return doc
|
194 |
|
195 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
196 |
|
197 |
def add_doc(data,vectorstore):
|
198 |
doc = read_file(data)
|
|
|
192 |
doc = Document(page_content=content, metadata={"name": data.split('/')[-1]})
|
193 |
return doc
|
194 |
|
195 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=400)
|
196 |
|
197 |
def add_doc(data,vectorstore):
|
198 |
doc = read_file(data)
|