Add Turkish document retrieval evaluation - #3144
Draft
Cemilcanoz wants to merge 2 commits into
Draft
Cemilcanoz wants to merge 2 commits into
Cemilcanoz wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a runnable Turkish retrieval evaluation that extends the existing semantic text search example with labeled queries and per-category metrics. It compares Unicode lowercasing, Turkish casing, ASCII folding, and an optional OpenAI embeddings path using Recall@3 and MRR@3.
The fictional fixture contains 40 documents, 88 answerable queries, and 20 separately stored unanswerable queries. Intent groups keep nearby query variants in the same split. Evaluation defaults to 56 development queries; the 32 held-out queries have not been benchmarked.
An offline Markdown failure report lists development queries with missing relevant documents, including partial misses. It consumes saved rankings and bundled fixtures without API calls and rejects held-out input.
Motivation
Turkish
I/ıandİ/icasing, ASCII spelling, paraphrases, and inflection can affect retrieval. This example makes those effects measurable instead of demonstrating only a single semantic-search query. These synthetic development results are illustrative, not general Turkish retrieval-quality claims.Validation
git diff --checkpassed.docs-editorskill; no notebooks changed.Remaining before ready for review
This PR is a draft. The live embedding path has not been executed because a local API key was unavailable; it has mocked coverage only. Labels were authored and reviewed by agents, not independently adjudicated by humans. Unanswerable queries are included for future evaluation, but the current evaluator does not score abstention or false positives.
For new content
registry.yamlentry. Author attribution uses the GitHub profile; no customauthors.yamlentry is needed.