Skip to content

test(core): run search benchmarks with the real embedding model - #2055

Merged
phernandez merged 1 commit into
mainfrom
test/benchmark-real-embedder
Nov 5, 2026
Merged

phernandez merged 1 commit into
mainfrom
test/benchmark-real-embedder

Conversation

@phernandez

Copy link
Copy Markdown
Member

Summary

test_benchmark_search_query_latency_by_mode fails on main. CI never runs it (benchmarks are deselected), but just fast-test does.

#1696 made the test suite replace FastEmbed's embed methods with a hash embedder unless a test is marked semantic or real_embedder (tests/fake_embeddings.py). Hash vectors carry no meaning, so the benchmark's vector-mode queries returned no results.

This marks the benchmark module real_embedder. The benchmarks exist to time and score the real model, so the fake embedder was wrong for all four of them.

Verification

  • uv run pytest test-int/test_search_performance_benchmark.py: 4 passed (previously 1 failed)
  • just fast-check: clean

🤖 Generated with Claude Code

https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo

#1696 made the suite swap FastEmbed for a hash embedder unless a test is
marked semantic or real_embedder. Hash vectors carry no meaning, so the
vector and hybrid benchmark queries returned nothing and
test_benchmark_search_query_latency_by_mode failed. Mark the module
real_embedder so the benchmarks time and score the real model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo
Signed-off-by: phernandez <paul@basicmachines.co>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T23:40:33.462722Z 98f8214 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit 58dbe7d into main Nov 5, 2026
42 checks passed
@phernandez
phernandez deleted the test/benchmark-real-embedder branch November 5, 2026 00:16
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