* feat: add falkordb adapter --------- Co-authored-by: hajdul88 <52442977+hajdul88@users.noreply.github.com>
7 lines
304 B
Python
7 lines
304 B
Python
from cognee.modules.data.processing.document_types.Document import Document
|
|
|
|
|
|
async def extract_chunks_from_documents(documents: list[Document], chunk_size: int = 1024):
|
|
for document in documents:
|
|
for document_chunk in document.read(chunk_size = chunk_size):
|
|
yield document_chunk
|