Spaces:
Running
Running
changed chunk size
Browse files
app.py
CHANGED
@@ -341,7 +341,7 @@ async def on_chat_start():
|
|
341 |
metadata[field] = value
|
342 |
doc.metadata = metadata # Update the metadata to only include specified fields
|
343 |
|
344 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
345 |
split_drug_docs = text_splitter.split_documents(drug_docs)
|
346 |
|
347 |
# Asynchronously create a Qdrant vector store with the document chunks
|
|
|
341 |
metadata[field] = value
|
342 |
doc.metadata = metadata # Update the metadata to only include specified fields
|
343 |
|
344 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
345 |
split_drug_docs = text_splitter.split_documents(drug_docs)
|
346 |
|
347 |
# Asynchronously create a Qdrant vector store with the document chunks
|