Cognee uses pipelines and tasks to analyze and enrich data, enhancing the quality of answers produced by Large Language Models (LLMs).
Task
objects executed asynchronously by run_tasks
.
def my_task(input): return processed_input
async def my_task(input): return await process(input)
def my_task(input): yield from process_stream(input)
async def my_task(input): async for item in stream: yield item