Contexts describe the placement, audience, and intent behind a recommendation request. Properly configuring them keeps results relevant across your product surfaces.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.
When to create a new context
Create a dedicated context whenever:- The UI surface has unique layout or business goals (homepage vs. detail page).
- You need a different blend of retrieval settings, filters, or pipeline behaviour.
- You want to measure performance separately from other experiences.
Configure contexts in the console
Open Contexts
Navigate to Console -> Contexts.
Create a context
Click New context and note the numeric Context ID shown in the table, for example
101.Define the context behavior
Fill in the modal to define how the context should behave:
- Context Name and Description document the placement.
- Select the Recommendation Type / model family that should serve this surface.
- Configure Filters and optional combinations (AND/OR) to enforce inventory and eligibility rules.
- Use the context to decide what gets retrieved before scoring.
- Use the Rules Engine for post-scoring controls such as boost, bury, pin, dedupe, reorder, or grouping.
Reference contexts in API calls
Attach the context ID to every recommendation request so NeuronSearchLab can apply the proper logic.ctx_101 is also accepted and is normalized in recommendation explanations and served-recommendation telemetry.

