ProjectIntent Over Keywords: From Stitched Embeddings to a Production Fashion Agent · Module 17: Grounded generation · part 19 of 26
Part 19 · Module 17: Grounded generation
Module 17: Grounded generation
26 min read·
About 50 minutes · Needs: Module 9 (grounded answers in Part 2), Module 14 (the planner), Module 16 (product search) · Code: part3-styleme/backend/src/styleme/agent/generator.py, agent/grounding.py, agent/parsing.py, agent/prompts.py
Where this fits
This module (highlighted): the generator, the Gemini model it calls (amber, a model) and the grounding check (green, a safeguard) that reads every reply before the shopper does.
This is the last step of a search turn. The planner has decided to search (Module 14), the implementer has returned up to 8 products (Module 16), and the generator writes the reply the shopper reads. The highlighted parts are the generator, the Gemini model it calls, and the grounding check that reads the model's reply before anyone else does.
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.