Add Trust subcomponent to evaluate the cosine similarity between
entities (#1676)