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 eval.SemanticMatchScorer #32

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Add eval.SemanticMatchScorer #32

merged 1 commit into from
Jan 17, 2025

Conversation

markuswustenberg
Copy link
Member

eval.SemanticMatchScorer can be used for semantic similarity scoring using embedding vectors and (currently only) a cosine similarity metric.

See #31

`eval.SemanticMatchScorer` can be used for semantic similarity scoring using embedding vectors
and (currently only) a cosine similarity metric.

See #31
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? LevenshteinDistance 1.00 ➡️ 436.0982ms
TestEvalLLMs/gemini-1.5-flash Hi! Hi there! How can I help you today? Hi there! How can I help you today? LevenshteinDistance 1.00 ➡️ 345.625558ms
TestEvalLLMs/claude-3.5-haiku Hi! Hello! How are you doing today? Is there anything … Hello! How are you doing today? Is there anything … LevenshteinDistance 1.00 ➡️ 506.550391ms
TestEvalPrompt/answers_with_a_pong ping pong plong LevenshteinDistance 0.80 ➡️ 982ns
Total 0.95 1.288275131s

Download evals.db

@markuswustenberg markuswustenberg merged commit 90978ca into main Jan 17, 2025
3 checks passed
@markuswustenberg markuswustenberg deleted the semantic-similarity branch January 17, 2025 11:14
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