rajkstats commited on
Commit
b3ffc82
1 Parent(s): acf1d9c

changed chunk size

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=500, chunk_overlap=0)
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