feat(summary): enhance document summarization capabilities and UI
- Added max_input_chars configuration to limit input size for summary generation. - Updated generate_summary.yaml to clarify summary generation steps and requirements. - Introduced a new summary section in the document content view to display generated summaries or loading states. - Refactored doc-content.vue to utilize computed properties for improved performance and readability. - Enhanced knowledge base hooks to include description and summary status fields for better data handling. - Updated internationalization files to include new summary-related labels in multiple languages.
This commit is contained in:
@@ -111,6 +111,7 @@ type ConversationConfig struct {
|
||||
|
||||
// SummaryConfig 摘要配置
|
||||
type SummaryConfig struct {
|
||||
MaxInputChars int `yaml:"max_input_chars" json:"max_input_chars"` // Max input characters for summary generation (default: 16384)
|
||||
MaxTokens int `yaml:"max_tokens" json:"max_tokens"`
|
||||
RepeatPenalty float64 `yaml:"repeat_penalty" json:"repeat_penalty"`
|
||||
TopK int `yaml:"top_k" json:"top_k"`
|
||||
|
||||
Reference in New Issue
Block a user