DataPoints: Atomic Units of Knowledge

DataPoints are the smallest building blocks in Cognee.
They represent atomic units of knowledge — carrying both your actual content and the context needed to process, index, and connect it.
They’re the reason Cognee can turn raw documents into something that’s both searchable (via vectors) and connected (via graphs).

What are DataPoints

  • Atomic — each DataPoint represents one concept or unit of information.
  • Structured — implemented as Pydantic models for validation and serialization.
  • Contextual — carry provenance, versioning, and indexing hints so every step downstream knows where data came from and how to use it.

Core Structure

A DataPoint is just a Pydantic model with a set of standard fields.

Indexing & Embeddings

The metadata.index_fields tells Cognee which fields to embed into the vector store. This is the mechanism behind semantic search.
  • Fields in index_fields → converted into embeddings
  • Each indexed field → its own vector collection (Class_field)
  • Non-indexed fields → stay as regular properties
  • Choosing what to index controls search granularity

From DataPoints to the Graph

When you call add_data_points(), Cognee automatically:
  • Embeds the indexed fields into vectors
  • Converts the object into nodes and edges in the knowledge graph
  • Stores provenance in the relational store
This is how Cognee creates both semantic similarity (vector) and structural reasoning (graph) from the same unit.

Examples and details