Python API Reference
Complete reference for thecognee Python package. All functions are accessible
directly from the top-level cognee module.
Core Functions
add()
Ingest text, files, or structured data into the knowledge base.
cognify()
Transform raw data into a structured knowledge graph.
search()
Query the knowledge graph with multiple search modes.
memify()
Enrich an existing knowledge graph with custom extraction and enrichment tasks.
Data Management
datasets
List, create, and delete datasets.
update()
Update existing data items.
prune
Clean up data and system resources.
delete()
Delete data items (deprecated — use datasets).