feat: Add MinIO and graph database status handling with localization updates
- Introduced a new boolean field for MinIO status in the system info API response. - Updated localization files in English, Russian, and Chinese to include warnings and instructions related to MinIO and graph database configurations. - Enhanced the KBAdvancedSettings component to display alerts and disable options based on the status of MinIO and graph database. - Implemented logic to check system status on component mount and adjust settings accordingly.
This commit is contained in:
@@ -2283,6 +2283,10 @@ func (s *knowledgeService) SearchFAQEntries(ctx context.Context,
|
||||
entries = append(entries, entry)
|
||||
}
|
||||
|
||||
slices.SortFunc(entries, func(a, b *types.FAQEntry) int {
|
||||
return int(b.Score - a.Score)
|
||||
})
|
||||
|
||||
return entries, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user