Spaces:
Runtime error
Runtime error
Update generate_embeddings.py
Browse files- generate_embeddings.py +2 -2
generate_embeddings.py
CHANGED
|
@@ -26,8 +26,8 @@ def load_pdfs(folder_path):
|
|
| 26 |
|
| 27 |
def split_documents(docs):
|
| 28 |
text_splitter = RecursiveCharacterTextSplitter(
|
| 29 |
-
chunk_size=
|
| 30 |
-
chunk_overlap=
|
| 31 |
)
|
| 32 |
chunks = text_splitter.split_documents(docs)
|
| 33 |
print(f"Total chunks: {len(chunks)}")
|
|
|
|
| 26 |
|
| 27 |
def split_documents(docs):
|
| 28 |
text_splitter = RecursiveCharacterTextSplitter(
|
| 29 |
+
chunk_size=700,
|
| 30 |
+
chunk_overlap=100
|
| 31 |
)
|
| 32 |
chunks = text_splitter.split_documents(docs)
|
| 33 |
print(f"Total chunks: {len(chunks)}")
|