Expand description
Core data models.
Modules§
- has_
datapoint - The
HasDataPointtrait used by the provenance-stamping algorithm incognee-core::provenance. - memory
- Memory entry types for typed
remember()dispatch. Discriminated-union memory entries forremember()typed dispatch. - permission
- Permission helpers.
- temporal_
event - Temporal event and timestamp types for the cognify pipeline.
Structs§
- Backend
Config - Configuration for dynamically selecting/creating a backend.
- Backend
Overrides - Per-call backend configuration overrides.
- Cognify
Interval - A time range stored as a graph node of type “Interval”. Mirrors Python: cognee.modules.engine.models.Interval Field names time_from / time_to match Python exactly.
- Cognify
Timestamp - A point in time extracted from text during temporal cognify. Mirrors Python: cognee.modules.engine.models.Timestamp time_at stores milliseconds since Unix epoch (UTC) — same unit as Python.
- Data
- Represents a piece of data in the system, such as a file or a text.
Fields match the Python cognee
datatable schema for cross-SDK compatibility. - Data
Point - Base model for all storage-layer entities.
- Dataset
- Document
- A classified document derived from a Data item.
- Document
Chunk - A chunk of text extracted from a document during the cognify pipeline.
- Edge
Metadata - Edge metadata for relationships between DataPoints.
- Edge
Type - Storage-layer edge type model.
- Embedding
- Embedding vector for a data point field.
- Entity
- Storage-layer entity model.
- Entity
Type - Storage-layer entity type model.
- Event
Attribute - An entity related to an event, extracted during temporal entity enrichment.
- Feedback
Entry - Feedback attached to an existing QA entry.
- QAEntry
- A Q&A turn stored in the session cache.
- RawExtracted
Timestamp - LLM output schema for a timestamp. Mirrors Python task model Timestamp. All fields except year default to 1/0; the extractor computes time_at.
- Temporal
Event - An event extracted from text, optionally anchored to a point or range in time. Mirrors Python: cognee.modules.engine.models.Event
- Trace
Entry - One step of an agent trace.
- Triplet
- A triplet representing a semantic relationship between two entities.
- User
- A registered user. Corresponds to Python
cognee.modules.users.models.User.
Enums§
- Data
Input - Memory
Entry - Tagged union of typed memory payloads dispatched by
remember_entry().
Traits§
- HasData
Point - Read / write access to the embedded
DataPointof a typed container, plus a hook to recurse into nestedDataPoint-bearing children.
Functions§
- classify_
documents - Classify Data items into Documents based on file extension.
- doc_
type_ for_ extension - Map a file extension to a document type string, returning
Nonefor unrecognised extensions. - to_
cognify_ timestamp - Convert a raw LLM-extracted timestamp to a CognifyTimestamp with computed time_at. Returns None if the date is invalid (e.g. month=13).