This evaluation template compares two texts for similarity using fuzzy matching techniques. It’s useful for detecting approximate matches between text strings when exact matching might be too strict, accounting for minor differences in wording, spelling, or formatting.
result = evaluator.evaluate( eval_templates="fuzzy_match", inputs={ "input": "The Eiffel Tower is a famous landmark in Paris, built in 1889 for the World's Fair. It stands 324 meters tall.", "output": "The Eiffel Tower, located in Paris, was built in 1889 and is 324 meters high." }, model_name="turing_flash")print(result.eval_results[0].output)print(result.eval_results[0].reason)