Skip to content

Entity Backfill Extraction Confidence

POST
/api/writing/entities/backfill-extraction-confidence

Re-score every lore_entities row against its source entry.

Rewrites attributes.extraction_confidence / signal_trace using the current :mod:entity_signal_scorer so rows ingested under the old fixed CONFIDENCE_PATTERN = 0.8 model get real derived values. Rows that the scorer drops (unknown type below the floor, no remaining occurrences in the entry text) are deleted — their mentions cascade.

Scopes to a single entry when entryId is provided, otherwise scans every entry in the active project.

Any of:
EntityBackfillBody
object
entryId
Entryid
string

Successful Response

EntityBackfillResult
object
total
required
Total
integer
updated
required
Updated
integer
dropped
required
Dropped
integer
missing_entries
required
Missing Entries
integer

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object