Refactor of the tasks
This commit is contained in:
parent
85160da387
commit
156c7bec68
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ from cognee.modules.data.processing.document_types.Document import Document
|
||||||
async def source_documents_to_chunks(documents: list[Document], parent_node_id: str = None, user:str=None, user_permissions:str=None):
|
async def source_documents_to_chunks(documents: list[Document], parent_node_id: str = None, user:str=None, user_permissions:str=None):
|
||||||
graph_engine = await get_graph_engine()
|
graph_engine = await get_graph_engine()
|
||||||
|
|
||||||
|
if parent_node_id is None:
|
||||||
|
documents, parent_node_id = documents
|
||||||
|
|
||||||
|
|
||||||
nodes = []
|
nodes = []
|
||||||
edges = []
|
edges = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue