Spaces:
Runtime error
Runtime error
Update chatbot/retrieval.py
Browse files- 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=
|
24 |
-
chunk_overlap=
|
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)
|