embed-benchmark

command
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package main runs a retrieval-quality benchmark for embedding models on real production data. It samples real user messages that look like retrieval queries (help/remember/what-about-X), then for each candidate embedding configuration:

  • embeds all topic summaries in the haystack
  • embeds the test queries
  • computes Recall@k where the "gold" topic is the one containing the original message (via topic_id)

Also reports wall time and token counts — useful for sizing the full production re-embedding job.

Usage:

go run ./cmd/embed-benchmark --queries=50 --db=data/prod/laplaced.db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL