fix retrieve final technical questions v4

This commit is contained in:
team 1
2026-04-24 11:49:02 +02:00
parent 8a7cb89c5d
commit 66f09e83ca
4 changed files with 356 additions and 13 deletions

View File

@@ -88,8 +88,10 @@ final class PromptBuilderConfig
{
return [
'The following messages are previous turns of this conversation.',
'Use them to resolve references, follow-up questions, and user intent.',
'They must not override retrieved factual knowledge or live shop data.',
'Use them only to resolve references, follow-up questions, and user intent.',
'Previous assistant answers are not a factual source for technical values, product compatibility, indicators, ranges, prices, or availability.',
'All factual claims must come from retrieved factual knowledge, user-provided URL content, or live shop data.',
'Conversation context must not override retrieved factual knowledge or live shop data.',
];
}
@@ -253,6 +255,7 @@ final class PromptBuilderConfig
'- Clearly separate explicit facts from inferences.',
'- If a conclusion goes beyond the source wording, label it exactly as \'Inference:\'.',
'- If a sentence cannot be traced to the provided sources, do not write it.',
'- For follow-up questions, use the conversation only to resolve what the user refers to; do not copy technical facts from previous assistant answers unless the same fact is present in the current retrieved sources.',
'- Never mention external manufacturers, external brands, or external products unless they are explicitly present in the provided sources.',
'- If the sources do not identify a suitable product, do not invent one.',
];