Revelin7Revelin7
All work
Lab note

Your Agent Is Asking the Wrong Questions

Raw conversational queries score 0.49 relevance against a retrieval model. Rewritten cues score 0.87. The gap is query rewriting, strategy selection and weight tuning.

0.49 → 0.87query relevance

0.87 vs 0.49
relevance: keyword cue vs conversational question
0.23 vs 0.18
gap between top two results: relevance-only vs default weights
8
structured tests on a 13-section vault

Dense retrieval models are trained on query-document pairs. When an agent forwards a user's conversational question unchanged, the embedding of "what was discussed" lands far from the embedding of the notes that answer it. We measured the gap on a real vault of 13 indexed sections with BGE-small-en-v1.5 (results were directionally similar on the current default, EmbeddingGemma-300M).

QueryTop relevance
Rust ownership borrowing memory safety0.87
HNSW vector index embedding search0.73
Rust design patterns builder typestate0.71
what was discussed in the meeting?0.49
what are the pending tasks?0.46

Three transformations the agent applies

  • Rewrite the question into a cue made of words that appear in the documents. "What was discussed in the last meeting?" becomes "meeting discussion agenda decisions action items".
  • Pick the strategy from the intent: similarity for "what do we know about X", temporal for "what happened recently", causal for "what led to this", analogical for "have we seen this before".
  • Shift the weights. Defaults are 0.5:0.2:0.2:0.1 for relevance, recency, importance, reinforcement. A factual lookup uses 1.0:0:0:0; a "what changed" query uses 0.2 relevance and 0.7 recency. Weights are normalized, so 4 and 1 mean 0.8 and 0.2.

Entity-scoped questions such as "what tasks are assigned to Jasen" work better as two recalls, one for the person and one for task lists, with the agent cross-referencing the result sets. The embedding carries meaning and does not filter by named entity, so the agent is the join. Meeting prep is three recalls with three weight profiles: facts, recent changes, open risks.

Findings

  • Cues with vocabulary matching the content scored 0.71 to 0.87 without further work.
  • Unrewritten meeting and task questions scored 0.46 to 0.49. Rewriting was the largest single improvement.
  • Relevance-only weights on a factual lookup left a 0.23 gap between the correct result and the next one. Default weights left 0.18.
  • Notes are split by heading, so an answer is often spread over 3 to 5 results. Reading only the top hit loses context.

Caveat on score thresholds

This vault is small. Below about 50 sections the embedding space is sparse and even irrelevant results score 0.40 or more, so 0.40 does not mean "somewhat relevant" there. Separation improves past 100 sections. Calibrate any confidence cutoff against the size of the corpus it runs on.

Date

14 March 2026

Part of

HEBBS

Source

HEBBS blog

Topics

Open the original

Related