A context is a named configuration that shapes what the recommendation engine retrieves for a specific surface. Create one context per placement, such as a homepage feed, product detail page, or email digest, and reference its numeric console ID in recommendation calls for that surface. This guide covers the controls that belong in the current context editor.Documentation Index
Fetch the complete documentation index at: https://docs.neuronsearchlab.com/llms.txt
Use this file to discover all available pages before exploring further.
Create a context
Open the context editor
Open Console > Contexts and click New context.
Choose the model family
Choose the recommendation type / model family, such as General, Similar Items, Watch Next, Trending, or Email Digest, depending on which model families are enabled for your tenant.
Retrieval settings
Contexts control the retrieval defaults for a surface:- Embedding model decides which representation is used to compare users and items.
- Recommendation type decides whether the request is user-driven or item-driven.
- Pre-query filters decide which candidates are even allowed into the scoring stage.
Filters
Filters restrict which items are eligible before scoring. Only items that pass the active filters are considered by the ranking pipeline. To add a filter:Select a metadata field
Select a metadata field from your catalog, such as
category, in_stock, or price.| Field | Operator | Value | Logic |
|---|---|---|---|
in_stock | = | true | |
category | = | Electronics | AND |
What now belongs in Rules Engine
Contexts are no longer the place for post-scoring merchandising controls. If you need to change how scored results are promoted, suppressed, ordered, or grouped, use Rules Engine.| Use case | Configure in |
|---|---|
| Promote or demote matching items | Rules Engine with boost or bury |
| Remove items after scoring | Rules Engine with filter |
| Limit list share or enforce variety | Rules Engine with cap, diversity, or dedupe |
| Pin, reorder, randomize, or protect top slots | Rules Engine with pin, reorder, randomize, or ensure_top |
| Return grouped results | Rules Engine with group_by |
| Reweight by user topic affinity | Rules Engine with weighted_topic |

