Skip to main content

entity_embedding_text

Function entity_embedding_text 

Source
pub fn entity_embedding_text(entity: &Entity) -> String
Expand description

Build the canonical text embedded for an entity on create, update, merge, and repair paths.

The text is the name, then each alias in the record’s order, then the description when it is non-empty, joined by single spaces. An entity with no aliases gets exactly the text it got before aliases existed.