Add instruction fields to knowledge base configuration

This commit is contained in:
wizardchen
2026-07-13 11:57:30 +08:00
committed by lyingbug
parent def92bb74f
commit c1cddb4d4d
28 changed files with 634 additions and 81 deletions
+23
View File
@@ -1637,6 +1637,9 @@ export default {
sampleTextLabel: 'Sample Text',
sampleTextDescription: 'Sample text for testing entity-relationship extraction',
sampleTextPlaceholder: 'Enter text containing entities and relationships...',
customInstructionsLabel: 'Additional Extraction Instructions',
customInstructionsDescription: 'Add domain scope, entity filtering, or attribute guidance while the system retains the structured output contract',
customInstructionsPlaceholder: 'For example: focus on contract parties, amounts, performance dates, and liabilities…',
generateRandomText: 'Generate Random Text',
entityListLabel: 'Entity List',
entityListDescription: 'Entities and their attributes extracted from text',
@@ -2560,6 +2563,12 @@ export default {
maxPagesLabel: 'Max Pages Per Ingest',
maxPagesTip: 'Maximum number of pages to create/update per ingest (0 = no limit)',
extractionGranularityLabel: 'Extraction Granularity',
contentInstructionsLabel: 'Wiki Content Instructions',
contentInstructionsTip: 'Control emphasis and tone for summaries, pages, and the index. Citation, merge, and factuality rules remain system-owned. Reprocess existing content to apply changes.',
contentInstructionsPlaceholder: 'For example: use a legal-review tone and emphasize owners, timelines, and risks…',
extractionInstructionsLabel: 'Wiki Extraction Focus',
extractionInstructionsTip: 'Describe domain entities and concepts to prioritize without replacing the system JSON and citation protocol.',
extractionInstructionsPlaceholder: 'For example: prioritize products, versions, organizations, owners, and core technical concepts…',
extractionGranularityTip: 'Controls how many Wiki entities/concepts are extracted per document. Finer = tighter index, coarser = more comprehensive',
granularityFocused: 'Focused',
granularityStandard: 'Standard',
@@ -2986,6 +2995,14 @@ export default {
description: 'Generate related questions for each chunk using LLM during document parsing to improve retrieval recall. Enabling this will increase document parsing time.',
countLabel: 'Question Count',
countDescription: 'Number of questions to generate per document chunk (1-10)',
instructionsLabel: 'Question Generation Instructions',
instructionsDescription: 'Specify audience, scenario, and wording while the system retains the stable output format',
instructionsPlaceholder: 'For example: generate natural customer-support questions and avoid exam-style wording…',
},
tableMetadataInstructions: {
label: 'Table Metadata Instructions',
description: 'Add business context and field semantics to CSV/Excel summaries for better retrieval',
placeholder: 'For example: this is a sales-order table, amounts are in CNY, and status uses internal codes…',
},
multimodal: {
label: 'Multimodal Feature',
@@ -2993,6 +3010,12 @@ export default {
vllmLabel: 'VLLM Vision Model',
vllmDescription: 'Vision-language model required for multimodal understanding',
vllmPlaceholder: 'Select a VLLM model (required)',
descriptionLanguageLabel: 'Image Description Language',
descriptionLanguageDescription: 'Leave empty to follow the document language instead of forcing Chinese',
descriptionLanguageAuto: 'Follow document language',
customInstructionsLabel: 'Image Processing Instructions',
customInstructionsDescription: 'Add visual priorities while OCR and Markdown output contracts remain fixed',
customInstructionsPlaceholder: 'For example: prioritize nameplates, model numbers, alarm codes, and table units…',
storageTitle: 'Storage Configuration',
storageTypeLabel: 'Storage Type',
storageTypeDescription: 'Choose the storage solution for multimodal files (MinIO or Tencent Cloud COS)',