RecomNext

Glossary

Shared vocabulary for scenarios, logic, and events.

02 - Glossary

Shared vocabulary for analysts and PMs editing scenarios.

TermMeaning
TenantCustomer isolation key (e.g. driffle-dev). All catalog/events/scenarios are per tenant.
PlacementWhere recommendations appear (PDP rail, home, cart). Usually mapped to one scenario slug.
Logic typeWhat question we ask: user→item, item→item, multi-seed, similar, recently viewed.
AlgorithmHow we score candidates for that logic (weighted-history, co-occurrence, vector-similarity, …).
ScenarioNamed Admin config: logic + algorithm + nextQL filter/boosters + constraints + Qdrant/hybrid knobs + min/max. Identified by slug.
SeedInput item(s) for item-based logics (itemId / itemIds cart).
CandidateItem considered before final cut.
ScoreNumeric rank signal (algorithm-specific units; not always comparable across algos).
nextQLFilter / booster expression language evaluated on item attributes.
Boosterboost by F where <condition> - multiplies score when true.
FilternextQL predicate - items that fail are removed.
ConstraintPost-rank policy: diversity, freshness boost, long-tail injection, purchase-cap %.
RuleReusable Admin object (filter / booster / constraint) referenced by rulesSlugs on a scenario.
Request-time overridePer-request replacement of filter, boosters, rulesSlugs, segmentationId, and/or itemsPerSegment on recommendation APIs. Omit keeps the scenario value; present replaces. Constraints are not overridable in v1.
Impression“This recommended item was shown” → impressions table (needs scenario_slug for per-scenario analytics).
InteractionUser/item event: view, cart, purchase, ratinginteractions table.
Weight (event)Optional float on an interaction (default 1.0). Combined with type multipliers in weighted-history.
scenario_slug / scenarioSlugAttribution field linking an event to a placement/scenario.
CTR (Admin)100 × views_with_slug / impressions_with_slug where “views” means type='view'.
Purchase capLimit how many already-purchased items (90d) may appear in a result list (default 10%). Needs userId.
Cold startUser/item with little history - algos fall back (e.g. popularity, same-category).
RRFReciprocal Rank Fusion - merges ranked lists by rank position, not raw scores.
CentroidAverage of seed vectors for multi-seed hybrid when cart is category-homogeneous.
FactorsLearned vectors for users/items from ELSA or ReALM, stored in Mongo model_factors.
AvailabilityUnavailable items (available: false) are excluded from serving.
Identity mergeLink anonymous sessionId history into an authenticated userId after login.

Logic vs algorithm vs scenario

Placement "PDP Similar"
   → scenario slug: pdp-similar-products
        → logicType: similar-products
        → algorithm: vector-similarity   (or beeformer-multimodal)
        → filter / boosters / constraints / qdrantSettings

Changing algorithm changes candidate generation. Changing constraints changes post-rank shaping. Changing filter removes candidates that fail nextQL.