Wajahat698 commited on
Commit
a068d79
·
verified ·
1 Parent(s): 350e6c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ def index_document_content(doc_content, doc_id):
194
  """
195
  Indexes the document content by splitting it into chunks and creating embeddings.
196
  """
197
- text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=100)
198
  texts = text_splitter.split_text(doc_content)
199
 
200
  # Create embeddings for each chunk
 
194
  """
195
  Indexes the document content by splitting it into chunks and creating embeddings.
196
  """
197
+ text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=500)
198
  texts = text_splitter.split_text(doc_content)
199
 
200
  # Create embeddings for each chunk