Documentation Index
Fetch the complete documentation index at: https://docs.uselayers.com/llms.txt
Use this file to discover all available pages before exploring further.
Search instructions are currently in beta. You’ll see a Beta badge on the settings page.
Overview
The Search Instructions settings page lets you write a single block of merchandising guidance in plain English. Layers attaches your instructions to every AI step in the search pipeline. The affected steps are query expansion, intent detection, facet value ordering, redirect approval, and result evaluation. Changes take effect on the next search. You don’t need to re-index your catalog or run anything manually.Before you start
- Search instructions affect AI steps in the search pipeline. They don’t change deterministic ranking weights, request-time search rules, or autocomplete curation.
- The field accepts free-form text up to 5,000 characters.
- Leaving the field empty disables the instructions block in every pipeline step.
Steps
- Go to Settings → Search & Discovery → Search Instructions in the Layers dashboard.
- In the Merchandising Instructions card, write your guidance in plain English. Treat it like a short brief: one rule per line works well.
- Click Save. Cached prompts for your store are invalidated, so the next search uses the new text.
- Run a test search to confirm the guidance is having the effect you want. Adjust and re-save as needed.
Example instructions
Lifecycle and engagement
Seasonal direction
Catalog rules
Tips
- Be specific. Tell Layers the rule, not the goal. “Demote items in their first 30 days” works better than “Don’t show new products too much.”
- Keep it broad. Search instructions apply to every AI step in the pipeline. For one-off, query-specific behavior, use a search rule or merchandising rule instead.
- One rule per line. Short, scannable rules give the model the clearest signal.
- Iterate. Save, run a few representative searches, refine, save again.
Troubleshooting
My instructions don’t seem to be having any effect. Search instructions guide AI judgement; they don’t override deterministic ranking. If your store is heavily weighted toward keyword signals, AI guidance has less room to move results. Check your ranking relevancy signal weights, then re-test. A specific query isn’t behaving the way my instructions describe. Search instructions are store-wide guidance, not per-query overrides. For query-specific behavior — pinning, hiding, or rewriting a particular query — use a search rule, merchandising rule, or semantic redirect instead. I cleared the field but old behavior is still showing up. Save the empty field to invalidate the cached prompts. The next search request will run without an instructions block in any pipeline step.Next steps
- Search instructions — How the feature works end to end
- Search rules — Request-time query and filter modifications
- Ranking relevancy — Signal weights and ranking rules