Similarity#
- tensor_theorem_prover.cosine_similarity(item1, item2)[source]#
use cosine similarity to calculate a similarity score between the items. falls back to symbol comparison if either item is missing a embedding
use cosine similarity to calculate a similarity score between the items. falls back to symbol comparison if either item is missing a embedding