Skip to main content

agrag.ingestion.resolve.resolver.FuzzyMatch

FuzzyMatch(*, match_above:float = 0.97) -> None

Bases: Comparator

Fast-path accepter for near-identical names. Never returns NO_MATCH.

Rejection belongs to later tiers, which see embedding and LLM evidence this comparator lacks.

Attributes:

  • match_above – A similarity score at or above this is a match.

Functions:

  • compare – Return a verdict from token-sort-ratio similarity.
  • compare_with_evidence – Compare two entities and include their token-sort similarity.

compare​

compare(a:ExtractedEntity, b:ExtractedEntity) -> ComparisonVerdict

Return a verdict from token-sort-ratio similarity.

compare_with_evidence​

compare_with_evidence(a:ExtractedEntity, b:ExtractedEntity) -> ComparisonResult

Compare two entities and include their token-sort similarity.

match_above​

match_above = match_above