Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LexicalSimilarityScorer #33

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Add LexicalSimilarityScorer #33

merged 1 commit into from
Jan 17, 2025

Conversation

markuswustenberg
Copy link
Member

Use this as a top-level scorer instead of eval.LevenshteinDistanceScorer and eval.ExactMatchScorer, and take the two similarity metric functions as parameters instead.

Use this as a top-level scorer instead of `eval.LevenshteinDistanceScorer` and `eval.ExactMatchScorer`,
and take the two similarity metric functions as parameters instead.
Copy link

Evals

Name Input Expected Output Type Score Duration
TestEvalLLMs/gpt-4o-mini Hi! Hello! How can I assist you today? Hello! How can I assist you today? LexicalSimilarity 1.00 ➡️ 429.646345ms
TestEvalLLMs/gemini-1.5-flash Hi! Hi there! How can I help you today? Hi there! How can I help you today? LexicalSimilarity 1.00 ➡️ 473.480393ms
TestEvalLLMs/claude-3.5-haiku Hi! Hello! How are you doing today? Is there anything … Hello! How are you doing today? Is there anything … LexicalSimilarity 1.00 ➡️ 622.405629ms
TestEvalPrompt/answers_with_a_pong ping pong plong LexicalSimilarity 0.80 ➡️ 1.012µs
Total 0.95 1.525533379s

Download evals.db

@markuswustenberg markuswustenberg merged commit d475202 into main Jan 17, 2025
3 checks passed
@markuswustenberg markuswustenberg deleted the lexical branch January 17, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant