fix retrieve final technical questions v4
This commit is contained in:
@@ -13,12 +13,12 @@ final class AgentRunnerConfig
|
||||
|
||||
public function getProductSearchKnowledgeChunkLimit(): int
|
||||
{
|
||||
return 2;
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function getAdvisoryProductSearchKnowledgeChunkLimit(): int
|
||||
{
|
||||
return 3;
|
||||
return 9;
|
||||
}
|
||||
|
||||
public function getOptimizedShopQueryPrefixPattern(): string
|
||||
|
||||
@@ -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.',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user