feat(ui): update SVG assets and enhance localization for knowledge framework

- Redesigned SVG assets for screenshots to improve visual consistency and clarity, including updates to gradients, titles, and layout.
- Added a new screenshot asset to showcase the Wiki Knowledge Base feature.
- Enhanced localization strings across multiple languages to reflect updated terminology and descriptions for the knowledge framework, including agentic reasoning and hybrid search strategies.
- Improved the user interface in the login view to include new tags for agent and wiki features, enhancing user awareness of available functionalities.
This commit is contained in:
wizardchen
2026-06-03 21:43:11 +08:00
committed by lyingbug
parent 226a37330c
commit 710d759b8e
18 changed files with 803 additions and 632 deletions
+6
View File
@@ -435,6 +435,7 @@ type knowledgeAggregation struct {
PatternCounts map[string]int `json:"pattern_counts"`
TotalPatternHits int `json:"total_pattern_hits"`
DistinctPatterns int `json:"distinct_patterns"`
MatchSnippet string `json:"match_snippet,omitempty"`
}
func (t *GrepChunksTool) aggregateByKnowledge(
@@ -483,6 +484,11 @@ func (t *GrepChunksTool) aggregateByKnowledge(
if chunk.TitleMatch {
entry.TitleMatch = true
}
if entry.MatchSnippet == "" {
if snippet := extractSnippetRegex(chunk.Content, compiled); snippet != "" {
entry.MatchSnippet = snippet
}
}
occurrences := countRegexHits(chunk.Content, compiled, queryKeys)
for _, q := range queryKeys {