Expand description
Core data types shared across the cognee-rust crates (Data, Dataset, Document, DocumentChunk, Entity, KnowledgeGraph, and more).
Re-exports§
pub use has_datapoint::HasDataPoint;pub use memory::FeedbackEntry;pub use memory::MemoryEntry;pub use memory::QAEntry;pub use memory::TraceEntry;pub use permission::permissions;pub use temporal_event::*;
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.
- 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.
- Triplet
- A triplet representing a semantic relationship between two entities.
- User
- A registered user. Corresponds to Python
cognee.modules.users.models.User.
Enums§
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.