chunk overlap fixed
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_pdf_text(pdf_path):
|
|
19 |
return extract_text(pdf_path)
|
20 |
|
21 |
def get_pdf_text_chunks(pdf_text):
|
22 |
-
text_splitter = RecursiveCharacterTextSplitter(
|
23 |
return text_splitter.split_text(text=pdf_text)
|
24 |
|
25 |
def create_vector_store(target_source_chunks):
|
|
|
19 |
return extract_text(pdf_path)
|
20 |
|
21 |
def get_pdf_text_chunks(pdf_text):
|
22 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=150)
|
23 |
return text_splitter.split_text(text=pdf_text)
|
24 |
|
25 |
def create_vector_store(target_source_chunks):
|