Update utils.py
Browse files
utils.py
CHANGED
@@ -308,7 +308,7 @@ def split_documents_with_id(docs, text_splitter):
|
|
308 |
for doc in docs:
|
309 |
doc_splits = text_splitter.split_text(doc.page_content)
|
310 |
for split_content in doc_splits:
|
311 |
-
split_doc = Document(content=split_content, title=doc.metadata["title"], page=doc.metadata["page"], path=doc.metadata["path"], doc_id=doc.doc_id)
|
312 |
splits.append(split_doc)
|
313 |
return splits
|
314 |
|
|
|
308 |
for doc in docs:
|
309 |
doc_splits = text_splitter.split_text(doc.page_content)
|
310 |
for split_content in doc_splits:
|
311 |
+
split_doc = Document(content=split_content, title=doc.metadata["title"], page=doc.metadata["page"], path=doc.metadata["path"], doc_id=doc.metadata["doc_id"])
|
312 |
splits.append(split_doc)
|
313 |
return splits
|
314 |
|