ChunkEntityResult

data class ChunkEntityResult(val chunkId: String, val suggestedEntities: SuggestedEntities, val entityResolutions: Resolutions<SuggestedEntityResolution>) : EntityExtractionResult

Result of processing a single chunk through the entity pipeline.

Implements EntityExtractionResult for access to entities that need persistence. Unlike ChunkPropositionResult, this contains only entity data without propositions.

Parameters

chunkId

The ID of the processed chunk

suggestedEntities

The entities suggested by the extractor

entityResolutions

The resolution results (new, existing, reference-only, vetoed)

Constructors

Link copied to clipboard
constructor(chunkId: String, suggestedEntities: SuggestedEntities, entityResolutions: Resolutions<SuggestedEntityResolution>)

Properties

Link copied to clipboard
Link copied to clipboard

Statistics about entity extraction outcomes

Link copied to clipboard

Functions

Link copied to clipboard
open fun entitiesToPersist(): List<<Error class: unknown class>>

All entities that need to be persisted (new + updated). Does not include reference-only entities.

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open override fun newEntities(): List<<Error class: unknown class>>

Entities that are new (not matched to any existing entity). These should be saved to the entity repository.

Link copied to clipboard
fun persist(entityRepository: <Error class: unknown class>)

Persist entities to the repository and create structural relationships.

Link copied to clipboard
open override fun referenceOnlyEntities(): List<<Error class: unknown class>>

Entities that were matched to known entities that should not be updated. These are typically entities managed by external services (e.g., the current user). They are referenced in propositions but not persisted during extraction.

Link copied to clipboard
fun resolvedEntities(): List<<Error class: unknown class>>

All resolved entities (new + existing + reference-only). Excludes vetoed entities.

Link copied to clipboard
open override fun updatedEntities(): List<<Error class: unknown class>>

Entities that were matched to existing entities and may have updated information. These should be updated in the entity repository.