Interface KnowledgeEntity

Represents an entity (node) in the knowledge graph

interface KnowledgeEntity {
    id: string;
    type: EntityType;
    label: string;
    properties: Record<string, unknown>;
    embedding?: number[];
    confidence: number;
    source: KnowledgeSource;
    createdAt: string;
    updatedAt: string;
    ownerId?: string;
    tags?: string[];
    metadata?: Record<string, unknown>;
}

Properties

id: string

Unique entity ID

Entity type (person, concept, event, location, etc.)

label: string

Human-readable label

properties: Record<string, unknown>

Entity properties/attributes

embedding?: number[]

Vector embedding for similarity search

confidence: number

Confidence score (0-1)

Source of this knowledge

createdAt: string

Creation timestamp

updatedAt: string

Last updated timestamp

ownerId?: string

Associated GMI or user ID

tags?: string[]

Tags for categorization

metadata?: Record<string, unknown>

Additional metadata