Skip to main content

Module knowledge_base_builder

Module knowledge_base_builder 

Source
Expand description

§Knowledge Base Builder

Incrementally builds and maintains a semantic knowledge base from documents, supporting semantic triples, entity relationships, and concept graphs.

§Features

  • Entity CRUD with alias indexing and optional embedding vectors
  • Relation triples with FNV-1a-based IDs and confidence scores
  • Concept co-occurrence graphs derived from document ingestion
  • BFS path-finding between entities over the relation graph
  • Rich statistics for monitoring and inspection

Structs§

KbBuilderEntity
A named entity in the knowledge base.
KbConceptNode
A node in the concept co-occurrence graph.
KbDocument
A document ingested into the knowledge base.
KbRelation
A directed semantic relation between two entities.
KbStats
Aggregate statistics for the knowledge base.
KbTriple
Convenience input type for a semantic triple.
KnowledgeBaseBuilder
Incrementally builds and maintains a semantic knowledge base.

Enums§

KbError
Error types for KnowledgeBaseBuilder operations.