Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example task extraction #127

Merged
merged 17 commits into from
Aug 8, 2024
11 changes: 11 additions & 0 deletions cognee/api/v1/tasks/graph_ontology/graph_ontology.py
Original file line number Diff line number Diff line change
@@ -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