Example task extraction
This commit is contained in:
parent
80e4f298fc
commit
64f54a32c6
1 changed files with 11 additions and 0 deletions
11
cognee/api/v1/tasks/graph_ontology/graph_ontology.py
Normal file
11
cognee/api/v1/tasks/graph_ontology/graph_ontology.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
|
||||
from cognee.modules.pipelines.tasks.Task import Task
|
||||
|
||||
from cognee.modules.data.extraction.knowledge_graph.establish_graph_topology import establish_graph_topology
|
||||
from cognee.shared.data_models import KnowledgeGraph
|
||||
|
||||
|
||||
|
||||
async def ontology_task():
|
||||
return Task(establish_graph_topology, topology_model = KnowledgeGraph, task_config = { "batch_size": 10 })
|
||||
Loading…
Add table
Reference in a new issue