feat(faq): enhance FAQ handling and localization support

- Updated the agent system prompt to clarify mandatory deep read requirements for FAQ entries, ensuring accurate retrieval and response generation.
- Added new localization strings for FAQ-related labels in English and Chinese, improving user experience and consistency across the application.
- Refactored the document and grep results components to support distinct FAQ identification, enhancing clarity in the output.
- Introduced new tests for FAQ metadata handling, ensuring robust functionality and correctness in the FAQ processing logic.
This commit is contained in:
wizardchen
2026-06-04 20:17:43 +08:00
committed by lyingbug
parent ba8c96d83a
commit 4bb8906520
14 changed files with 1075 additions and 225 deletions
+5
View File
@@ -2701,6 +2701,9 @@ export default {
referenceIconAlt: 'Reference materials icon',
chunkIdLabel: 'Chunk ID:',
documentIdLabel: 'Document ID:',
faqIdLabel: 'FAQ ID:',
faqContainerIdLabel: 'Container ID:',
faqAnswersLabel: 'Answers:',
chunkOrdinal: 'Chunk {index}',
previewContent: 'Preview content',
noPlanSteps: 'No detailed steps provided',
@@ -4570,6 +4573,7 @@ export default {
getDocument: 'Get document: {title}',
document: 'Document',
listChunks: 'View {title}',
listFaqEntry: 'View FAQ: {question}',
deepThinking: 'Deep Thinking',
},
plan: {
@@ -4588,6 +4592,7 @@ export default {
chunkHits: '{count} chunks',
keywordHits: '{count} hits',
titleMatch: 'title',
faqEntry: 'FAQ entry',
},
toolStatus: {
calling: 'Calling {name}...',