The data one record's template renders: the record's own fields at the top level for a
Record param, the record's own related rows for an Entity param, and the field's value for
a Scalar param.
the record's row, as RunView returns it with ResultType: 'simple'
the batch's related rows, from LoadRelatedData
Load the rows every Entity param of the template needs, for a batch of records: one RunView
per param, filtered to the batch's keys and the param's own ExtraFilter.
A record with no primary-key value (an unsaved record) has no related rows. When no record in the batch has one, the param gets an empty list without a query.
A param whose rows fail to load is logged and left out of the result; see MissingRelatedParams.
The names of the template's Entity params that have no entry in the related data.
Builds the data an entity document's template renders for each record.
Vector sync renders this data to produce the text it embeds and stores; duplicate detection renders it to produce the text it embeds and queries with. Both build it here so the two texts match: a template param of type
Entity(a related entity, such as a person's Phones or Emails) is loaded for detection exactly as it is for sync. When detection rendered from the record's own fields alone, those params rendered empty, its query vector described a shorter document than the one stored, and duplicates that shared contact data fell below the match threshold.