Add data to a dataset for processing and knowledge graph construction.
This endpoint accepts various types of data (files, URLs, GitHub repositories) and adds them to a specified dataset for processing. The data is ingested, analyzed, and integrated into the knowledge graph.
Either datasetName or datasetId must be provided.
CSV files uploaded through this endpoint are automatically detected and processed via the dlt (data load tool) integration. Structured data is ingested deterministically — foreign key relationships become graph edges, and no LLM extraction is needed. For full programmatic control over dlt resources, database connections, write dispositions, and primary keys, use the Python SDK (cognee.add()).
Returns information about the add operation containing: