Skip to content

feat(atlas): record the full effective parameter vector in query traces (#5774) - #17237

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/5774-query-params
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/5774-query-params

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Slice of #5774 (query-time parameter surface), from lane 0900-AA.

Gap: the v1 parameter contract landed in PR #8259 (knobs settable from CLI flags and the raw query format under identical names; defaults as data in query-parameters-v1.json). But the atlas-query-trace/v1 record — the record a benchmark run is reproduced from — carried only pool / top_k / vector_backend / weights / filters in its parameters block. The rest of the effective vector (shard_top_k, global_top_k, rrf_k, jaccard depth/threshold, parameters_version, variant, raw_mode, …) was not on the record, so a measured number was not attributable to its knobs, against the issue's Benchmarking requirement ("the full parameter vector logged alongside the results of every run").

Change (pkgs/atlas-search/crates/atlas-core/src/trace.rs):

  • parameters.query_parameters — the complete SearchParametersV1, serialized from the same struct both surfaces populate, so the recorded names are the CLI-flag / raw-format names.
  • parameters.mode, parameters.expand, parameters.group_by_session — the request-level controls that live outside the versioned struct.
  • Existing fields unchanged; additive only (trace_stats reads specific keys).

Test: new traced_search_records_the_full_effective_parameter_vector in atlas-core's search trace tests, asserting the recorded vector against non-default knob values. Remote verification: fleet dispatch run 46449574720 (cargo test -p atlas-core --lib) — result in the landing comment.

Refs #5774 (does not close it: per-signal multipliers distinct from weights and the #5773-gated planner/spell/hint/variant stages remain open there).


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…es (#5774)

The atlas-query-trace/v1 parameters block recorded only pool,
top_k, vector_backend, weights and filters, so a benchmark run
was not reproducible from its trace: shard_top_k, global_top_k,
rrf_k, the jaccard knobs and the rest of the versioned
query-parameter vector were missing. Record them verbatim under
query_parameters (serialized from SearchParametersV1, so the
names are the CLI-flag / raw-format names), plus the
request-level mode, expand and group_by_session controls.

Slice of #5774; the #5773-gated stages and per-signal
multipliers remain open there.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4620ba09-9a4b-4d48-bffd-4944aa709e83

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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