ProjectIntent Over Keywords: From Stitched Embeddings to a Production Fashion Agent · Module 15: Clarification policy and the cap · part 17 of 26
Part 17 · Module 15: Clarification policy and the cap
Module 15: Clarification policy and the cap
24 min read·
About 45 minutes · Needs: Module 13 (sessions), Module 14 (the planner) · Code: part3-styleme/backend/src/styleme/agent/planner.py, agent/prompts.py, agent/parsing.py, sessions.py, api.py, part3-styleme/frontend/src/lib/clarify.ts
Where this fits
This module (highlighted): the planner's rule for asking, the session that counts the questions, the API that updates the count and the web page that shows it. Blue is our own code.
Module 14 showed how the planner picks an intent before any retrieval runs. This module zooms in on one intent: the clarification question. When should StyleMe ask instead of search, how many times may it ask, who counts, and what happens when the model wants one question more than allowed? The answers live in the planner, the session that holds the count, the API that updates it and the page that shows "Question 2 of 3".
The rest of this project is yours to keep
This project is bought on its own, once, and stays readable afterwards, including the parts added to it later.