What is the cognify operation

The .cognify operation takes the data you ingested with Add and turns plain text into structured knowledge: chunks, embeddings, summaries, nodes, and edges that live in Cognee’s vector and graph stores. It prepares your data for downstream operations like Search.
  • Transforms ingested data: builds chunks, embeddings, and summaries; always comes after Add
  • Graph creation: extracts entities and relationships to form a knowledge graph
  • Vector indexing: makes everything searchable via embeddings
  • Dataset-scoped: runs per dataset, respecting ownership and permissions
  • Incremental loading: you can run .cognify multiple times as your dataset grows, and Cognee will skip what’s already processed

What happens under the hood

The .cognify pipeline is made of six ordered Tasks. Each task takes the output of the previous one and moves your data closer to becoming a searchable knowledge graph.
  1. Classify documents — wrap each ingested file as a Document object with metadata and optional node sets
  2. Check permissions — enforce that you have the right to modify the target dataset
  3. Extract chunks — split documents into smaller pieces (paragraphs, sections)
  4. Extract graph — use LLMs to identify entities and relationships, inserting them into the graph DB
  5. Summarize text — generate summaries for each chunk, stored as TextSummary DataPoints
  6. Add data points — embed nodes and summaries, write them into the vector store, and update graph edges
The result is a fully searchable, structured knowledge graph connected to your data.

After cognify finishes

When .cognify completes for a dataset:
  • DocumentChunks exist in memory as the granular breakdown of your files
  • Summaries are stored and indexed in the vector database for semantic search
  • Knowledge graph nodes and edges are committed to the graph database
  • Dataset metadata is updated with token counts and pipeline status
  • Your dataset is now query-ready: you can run Search or graph queries immediately

Examples and details