You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: generate product FAQs from Nemotron in parallel with enrichment
Add FAQ generation as a third parallel task alongside enrichment and
policy retrieval, adding zero latency to the pipeline. The new
_call_nemotron_generate_faqs() function produces 3-5 locale-aware Q&A
pairs grounded in the VLM observation.
Frontend uses Kaizen Tabs (Details / FAQs) and Accordion components
for a collapsible FAQ display within the Fields card.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
prompt=f"""/no_think You are a retail product FAQ specialist. Generate 3 to 5 frequently asked questions and answers for the product described below.
334
+
335
+
PRODUCT VISUAL ANALYSIS:
336
+
{observation_json}
337
+
338
+
TARGET LANGUAGE / REGION: {info['language']} ({info['region']})
339
+
{info['context']}
340
+
341
+
RULES:
342
+
- Generate between 3 and 5 FAQs.
343
+
- Each FAQ must have a "question" and an "answer" field.
344
+
- Questions should cover practical topics a shopper would ask: materials, care instructions, sizing, use cases, compatibility, durability.
345
+
- Answers must be helpful, concise (1-3 sentences), and factual.
346
+
- ONLY reference attributes visible in the product analysis above. Do NOT fabricate specifications (weight, wattage, capacity, dimensions) unless they appear in the analysis.
347
+
- Write questions and answers in {info['language']} appropriate for {info['region']}.
348
+
349
+
OUTPUT FORMAT:
350
+
Return ONLY a valid JSON array. No markdown, no commentary.
0 commit comments