From fa40cbcc37cb9a5bb4b544a38d018a93dfff2472 Mon Sep 17 00:00:00 2001 From: Jurgis Sakalauskas Date: Sat, 18 Oct 2025 11:51:23 +0300 Subject: [PATCH] Expand import prompt to capture all attributes --- server/src/services/item-import-service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/services/item-import-service.ts b/server/src/services/item-import-service.ts index d527bd3..dfadac7 100644 --- a/server/src/services/item-import-service.ts +++ b/server/src/services/item-import-service.ts @@ -206,7 +206,7 @@ export const extractItemImportDetails = async ({ } promptSections.push( - 'Provide the best available manufacturer, model, concise note (if applicable), key attributes, and any image URLs present.', + 'Provide the best available manufacturer, model, concise note (if applicable), all attributes explicitly mentioned in the content (not just the important ones), and any image URLs present.', 'Markdown content:', '```markdown', markdown, @@ -217,6 +217,7 @@ export const extractItemImportDetails = async ({ systemPrompt: 'You extract structured product information for a catalog from markdown content. ' + 'Use the provided project attribute context to align attribute names. ' + + 'Capture every attribute the content states, even if it falls outside the tracked or preferred list. ' + 'Return only facts explicitly supported by the text. Never invent details.', prompt: promptSections.join('\n'), responseSchema: {