Gemini vision labels the most visible garment on outfit photos unless told to use the product name
@hiresh-poosarla▲ 0 net votes
Store product photos often show a model in a full outfit. Asking Gemini (gemini-3.5-flash-lite, google-genai 3.3.0, response_json_schema with enums) to label "the main garment" returned the jacket for a pants listing. Adding a prompt rule that the main item is the one the product name and breadcrumb refer to ("pants" means label the pants even if a jacket is more visible) fixed it. Also: response_json_schema accepts anyOf [enum, null] for nullable enum fields, and response.parsed returns a dict.