You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(evals): run evals on vector search with gold dataset / RAGAS approach #552
From first presentation (2026-03-30) — Andrea's suggestion.
Problem
The vector search (hybrid: cosine similarity + BM25 + RRF fusion) has tunable weights but no systematic evaluation of retrieval quality. Query fanout exploration is also untested.
Proposal
Create a gold dataset of known-good query → expected entries mappings
Include noise entries that should NOT be retrieved
Test different cosine similarity thresholds, weight ratios, and top-k values
Hi, I'd like to work on the retrieval evaluation in this issue. I'm an AI301 student using AI-assisted tools, and I'll review and test the work myself.
I can spend about 10 hours a week over the next three weeks, aiming for a draft PR within that window. I'd start by checking the existing diary-service fixtures, then build a reproducible baseline with labeled queries, noise cases, precision/recall@k, and comparisons across top-k values and search weights.
Would that baseline be useful as a first PR, with query fanout and threshold changes as follow-ups? I'll report back after the fixture and setup check, and flag any blocker early.
I’ve run a local retrieval baseline using 12 existing fixture entries and six labeled queries, comparing precision/recall across top-k values and search weights.
With default weights, all expected entries appeared within the top three results for the five answerable queries. Unrelated entries also appeared, and the no-match query still returned results. Two runs produced identical rankings and scores, though this small dataset limits the findings.
Next, I’d keep the labels fixed and compare similarity thresholds and single-query versus multi-query retrieval. Is there a larger dataset or representative query set you’d recommend? Otherwise, I can propose more labeled queries using existing entries.
Would this baseline be useful as a first PR, with those experiments as follow-ups?
For sure, we'd need larger dataset(s) to verify the quality of the results. But that means labelling the expected results and I doubt I'd have the time to do this control. I could eventually provide some entries from the work done for moltnet itself (7000 entries), but I would have to sanitize them first.
Maybe you can find some datasets (huggingface) that could be ingested straight into the DB using the same embedding creation.
Hi @antunishdPursuit, following up with a more concrete dataset plan.
We’ve prepared a candidate sample of 300 entries from MoltNet’s own development diary, covering different entry types, topics and time periods. These include decisions, incidents and implementation notes, so they should give us more realistic retrieval cases than the small fixtures alone.
We also built a local review UI for preparing the corpus and labelling queries. The process is:
Create sanitized copies. Our existing Secretlint-based artifact scanner checks titles, content and tags and redacts detected secrets. Original diary entries remain unchanged.
Run local screening. A local Nimble model checks for personal information and potentially sensitive context. We’ve run this across all 300 candidates. These scores help organize review; they don’t establish that an entry is safe to share.
Review each copy. The UI supports inspecting, editing, approving or excluding entries. Human review is still needed before release.
Export approved entries. The shared corpus will use dataset IDs and omit the private source mapping and screening records. Embeddings should be generated from the final sanitized text.
For retrieval labelling, the proposed next step is to draft 30–40 realistic queries against the approved corpus: paraphrases, questions requiring related entries, confusing near-matches, and genuine no-match cases. Each query would have relevance judgments—relevant, partially relevant or irrelevant—with a short reason. Unjudged entries remain unknown.
We’d review those labels together, keep related queries in the same development/test split, and freeze the test set before tuning retrieval weights or thresholds. We’re also recording the sampling seed, corpus version, screening configuration and review changes so later comparisons are reproducible.
Your existing fixture baseline would still be useful as a first draft PR, including the queries, labels, commands and results you already described. That can progress while we finish reviewing the larger corpus.
If you’re still available, does that fit the scope you had in mind?
Hi, I’m still available. I’ll open the baseline draft PR first with the existing fixture queries, labels, commands, and results while the larger corpus is being reviewed.
When do you expect the reviewed, sanitized dataset to be ready to share? For the proposed 30–40 queries, who would draft the queries and assign the relevance labels, and how would we split the label review?
@antunishdPursuit The dataset can be ready this week, if I see your PR :)
It's surely better if I create a starting point for the queries and label the results.
From that, you could surely extend the queries' range and label them too. Having a simple UI to run the queries on the dataset and assign labels could be a wise first step. WDYT?
Thanks for offering to put together the initial queries and relevance labels! I've opened the baseline draft PR: #2821. It's focused on the existing fixture corpus and reproducible evaluation. The fresh 144-search run matches the saved baseline.
The PR discloses two existing test failures: a Windows-specific cache-path assertion, and a real-embedding search case that returns an unrelated weather entry alongside the relevant result. Neither was introduced by the baseline. I'll keep the portability fix and search tuning separate from this first PR, while preserving the search finding for the broader evaluation work.
For the UI suggestion, the earlier update mentioned a local corpus-review and query-labeling tool, which I haven’t seen or run. Do you mean extending that tool or building a separate interface for running queries and labeling results? If you’d like me to reuse it, could you share its repository or branch and setup instructions? I’d like to agree on that scope separately after the baseline review.
@antunishdPursuit sorry for being a bit slow on this one. I'm taking a detour on the annotation tools (I've been delaying this for a while now). I'm leaving the idea of a self-maintained tool and instead, I'm getting more and more convinced that potato is a great candidate. It supports other cases that RAG pipeline evals, and also AI assistance. Ever heard of this?
Thanks for the update! I hadn’t heard of Potato before your suggestion, so this is my first time using it. Thanks also for adapting the baseline and crediting my contribution.
I tested the annotation import workflows, rescoring, and new evaluation options locally with synthetic data, and those checks passed. I also reproduced the baseline results you documented.
One Windows test failure remains: the permission assertion expects 0600, while Node reports 0666. It also prevents the concurrent-update check later in that test from running. The full evaluation unit suite passed 43 of 44 tests, and I left the code unchanged.
Should I keep my original baseline PR open until your refactor merges, then close it as superseded?
When do you expect the new dataset and initial queries and labels to be ready?
Yes keep your PR open for now.
Let’s see how we continue this work while we explore, maybe you can work on top of my branches later, once we have the dataset ready.
The setup for Potato is ready, the initial dataset is reviewed with it, I started the queries collection too. The rest will be ready tomorrow. I also need to find how to package that dataset and make it available for the tests.
Activity
antunishdPursuit commentedon Oct 19, 2026
Hi, I'd like to work on the retrieval evaluation in this issue. I'm an AI301 student using AI-assisted tools, and I'll review and test the work myself.
I can spend about 10 hours a week over the next three weeks, aiming for a draft PR within that window. I'd start by checking the existing diary-service fixtures, then build a reproducible baseline with labeled queries, noise cases, precision/recall@k, and comparisons across top-k values and search weights.
Would that baseline be useful as a first PR, with query fanout and threshold changes as follow-ups? I'll report back after the fixture and setup check, and flag any blocker early.
antunishdPursuit commentedon Oct 19, 2026
I’ve run a local retrieval baseline using 12 existing fixture entries and six labeled queries, comparing precision/recall across top-k values and search weights.
With default weights, all expected entries appeared within the top three results for the five answerable queries. Unrelated entries also appeared, and the no-match query still returned results. Two runs produced identical rankings and scores, though this small dataset limits the findings.
Next, I’d keep the labels fixed and compare similarity thresholds and single-query versus multi-query retrieval. Is there a larger dataset or representative query set you’d recommend? Otherwise, I can propose more labeled queries using existing entries.
Would this baseline be useful as a first PR, with those experiments as follow-ups?
getlarge commentedon Oct 19, 2026
Hi, yes your contribution would be useful.
For sure, we'd need larger dataset(s) to verify the quality of the results. But that means labelling the expected results and I doubt I'd have the time to do this control. I could eventually provide some entries from the work done for moltnet itself (7000 entries), but I would have to sanitize them first.
Maybe you can find some datasets (huggingface) that could be ingested straight into the DB using the same embedding creation.
legreffier commentedon Oct 23, 2026
Hi @antunishdPursuit, following up with a more concrete dataset plan.
We’ve prepared a candidate sample of 300 entries from MoltNet’s own development diary, covering different entry types, topics and time periods. These include decisions, incidents and implementation notes, so they should give us more realistic retrieval cases than the small fixtures alone.
We also built a local review UI for preparing the corpus and labelling queries. The process is:
For retrieval labelling, the proposed next step is to draft 30–40 realistic queries against the approved corpus: paraphrases, questions requiring related entries, confusing near-matches, and genuine no-match cases. Each query would have relevance judgments—relevant, partially relevant or irrelevant—with a short reason. Unjudged entries remain unknown.
We’d review those labels together, keep related queries in the same development/test split, and freeze the test set before tuning retrieval weights or thresholds. We’re also recording the sampling seed, corpus version, screening configuration and review changes so later comparisons are reproducible.
Your existing fixture baseline would still be useful as a first draft PR, including the queries, labels, commands and results you already described. That can progress while we finish reviewing the larger corpus.
If you’re still available, does that fit the scope you had in mind?
antunishdPursuit commentedon Oct 24, 2026
Hi, I’m still available. I’ll open the baseline draft PR first with the existing fixture queries, labels, commands, and results while the larger corpus is being reviewed.
When do you expect the reviewed, sanitized dataset to be ready to share? For the proposed 30–40 queries, who would draft the queries and assign the relevance labels, and how would we split the label review?
Thanks for putting this together.
getlarge commentedon Oct 26, 2026
@antunishdPursuit The dataset can be ready this week, if I see your PR :)
It's surely better if I create a starting point for the queries and label the results.
From that, you could surely extend the queries' range and label them too. Having a simple UI to run the queries on the dataset and assign labels could be a wise first step. WDYT?
antunishdPursuit commentedon Oct 27, 2026
Thanks for offering to put together the initial queries and relevance labels! I've opened the baseline draft PR: #2821. It's focused on the existing fixture corpus and reproducible evaluation. The fresh 144-search run matches the saved baseline.
The PR discloses two existing test failures: a Windows-specific cache-path assertion, and a real-embedding search case that returns an unrelated weather entry alongside the relevant result. Neither was introduced by the baseline. I'll keep the portability fix and search tuning separate from this first PR, while preserving the search finding for the broader evaluation work.
For the UI suggestion, the earlier update mentioned a local corpus-review and query-labeling tool, which I haven’t seen or run. Do you mean extending that tool or building a separate interface for running queries and labeling results? If you’d like me to reuse it, could you share its repository or branch and setup instructions? I’d like to agree on that scope separately after the baseline review.
getlarge commentedon Oct 29, 2026
@antunishdPursuit sorry for being a bit slow on this one. I'm taking a detour on the annotation tools (I've been delaying this for a while now). I'm leaving the idea of a self-maintained tool and instead, I'm getting more and more convinced that potato is a great candidate. It supports other cases that RAG pipeline evals, and also AI assistance. Ever heard of this?
I started to document the setup in #2848.
antunishdPursuit commentedon Oct 29, 2026
Thanks for the update! I hadn’t heard of Potato before your suggestion, so this is my first time using it. Thanks also for adapting the baseline and crediting my contribution.
I tested the annotation import workflows, rescoring, and new evaluation options locally with synthetic data, and those checks passed. I also reproduced the baseline results you documented.
One Windows test failure remains: the permission assertion expects
0600, while Node reports0666. It also prevents the concurrent-update check later in that test from running. The full evaluation unit suite passed 43 of 44 tests, and I left the code unchanged.Should I keep my original baseline PR open until your refactor merges, then close it as superseded?
When do you expect the new dataset and initial queries and labels to be ready?
Thanks again!
getlarge commentedon Oct 29, 2026
Yes keep your PR open for now.
Let’s see how we continue this work while we explore, maybe you can work on top of my branches later, once we have the dataset ready.
The setup for Potato is ready, the initial dataset is reviewed with it, I started the queries collection too. The rest will be ready tomorrow. I also need to find how to package that dataset and make it available for the tests.