Repository navigation
feat(atlas): record the full effective parameter vector in query traces (#5774) - #17237
Merged
Merged
Conversation
…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.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 2026
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.
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 theatlas-query-trace/v1record — the record a benchmark run is reproduced from — carried only pool / top_k / vector_backend / weights / filters in itsparametersblock. 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 completeSearchParametersV1, 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.Test: new
traced_search_records_the_full_effective_parameter_vectorin 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-botwith what you need.