Query refinement
Tighten a query so retrieval stays on target: constrain domain and filetype, force exact phrases, and eject noise terms.
When to use
- Results are too broad or polluted by unrelated terms.
- You know the target domain or format and want to express it.
- A phrase must match exactly (quotes) rather than loosely.
Tools used
refine_query— from aquery, optionally setdomain,filetype,exact(wrap in quotes), andremove_terms.
Workflow
- State the goal and the noise you saw.
refine_querywith the constraints.validate_search_querythe result, then run it.- Compare hit quality against the unrefined version; keep what improved it.
Input schema
{ "query": "str", "domain": "str", "filetype": "str", "exact": "bool", "remove_terms": "list[str]" }
Output schema
{ "refined": "str", "log": "list[str]" }
Security
Constraints shrink the haystack but do not certify needles; weigh hits by source quality, not by how cleanly the query matched.
Related skills
query-builder, query-expansion, search-operators, web-search