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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user