anhkhoiphan commited on
Commit
9011670
verified
1 Parent(s): 7ac345a

Update chatbot/retrieval.py

Browse files
Files changed (1) hide show
  1. chatbot/retrieval.py +2 -2
chatbot/retrieval.py CHANGED
@@ -20,8 +20,8 @@ def load_pdf_data(pdf_path):
20
  text = extract_text_from_pdf(pdf_path)
21
 
22
  splitter = RecursiveCharacterTextSplitter(
23
- chunk_size=1000,
24
- chunk_overlap=50,
25
  )
26
 
27
  chunks = splitter.split_text(text)
 
20
  text = extract_text_from_pdf(pdf_path)
21
 
22
  splitter = RecursiveCharacterTextSplitter(
23
+ chunk_size=2000,
24
+ chunk_overlap=100,
25
  )
26
 
27
  chunks = splitter.split_text(text)