feat(GODT-3121): adds KB suggestion scoring.

This commit is contained in:
Xavier Michelon
2023-12-06 16:17:53 +01:00
parent 3309137b80
commit b93c10ad47
4 changed files with 72 additions and 23 deletions

View File

@ -69,7 +69,7 @@ func NewShowMainWindowEvent() *StreamEvent {
func NewRequestKnowledgeBaseSuggestionsEvent(suggestions kb.ArticleList) *StreamEvent {
s := xslices.Map(
suggestions,
func(article kb.Article) *KnowledgeBaseSuggestion {
func(article *kb.Article) *KnowledgeBaseSuggestion {
return &KnowledgeBaseSuggestion{Url: article.URL, Title: article.Title}
},
)