Reranker: improve recipe suggestions by pantry and dietary fit #117

Closed
opened 2026-04-21 11:37:22 -07:00 by pyr0ball · 0 comments
Owner

Context: Recipe suggestions are currently ranked by ingredient overlap count. A cross-encoder reranker can score "how well does this recipe fit my current pantry state + dietary profile" holistically, catching nuances that overlap counting misses (a recipe with 8/10 ingredients but one critical allergen should rank low; a recipe with 6/10 ingredients but perfect dietary fit should rank high).

Scope:

  • After initial recipe retrieval, rerank top-N candidates using (user_context, recipe_text) pairs
  • User context: pantry state, dietary restrictions, allergies, cuisine preferences
  • Wire to cf-core reranker service once available (see circuitforge-core ticket)
  • Especially valuable as community recipe library grows beyond a few hundred entries

Out of scope: Training a Kiwi-specific reranker (use general Qwen3-Reranker).

Acceptance criteria: Recipe feed order respects dietary constraints and pantry fit more accurately than overlap count alone.

Related: circuitforge-core reranker service (shared infrastructure).

**Context:** Recipe suggestions are currently ranked by ingredient overlap count. A cross-encoder reranker can score "how well does this recipe fit my current pantry state + dietary profile" holistically, catching nuances that overlap counting misses (a recipe with 8/10 ingredients but one critical allergen should rank low; a recipe with 6/10 ingredients but perfect dietary fit should rank high). **Scope:** - [ ] After initial recipe retrieval, rerank top-N candidates using (user_context, recipe_text) pairs - [ ] User context: pantry state, dietary restrictions, allergies, cuisine preferences - [ ] Wire to cf-core reranker service once available (see circuitforge-core ticket) - [ ] Especially valuable as community recipe library grows beyond a few hundred entries **Out of scope:** Training a Kiwi-specific reranker (use general Qwen3-Reranker). **Acceptance criteria:** Recipe feed order respects dietary constraints and pantry fit more accurately than overlap count alone. **Related:** circuitforge-core reranker service (shared infrastructure).
pyr0ball added this to the Beta — Recipe Suggestions milestone 2026-04-24 16:09:31 -07:00
pyr0ball added the
enhancement
label 2026-04-24 16:12:30 -07:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/kiwi#117
No description provided.