This commit is contained in:
+14
-2
@@ -82,8 +82,13 @@ type GLPIKnowledgeItem struct {
|
||||
}
|
||||
|
||||
type KnowledgeHit struct {
|
||||
Doc KnowledgeDoc `json:"doc"`
|
||||
Score float64 `json:"score"`
|
||||
Doc KnowledgeDoc `json:"doc"`
|
||||
Score float64 `json:"score"`
|
||||
SemanticScore float64 `json:"semantic_score,omitempty"`
|
||||
TitleScore float64 `json:"title_score,omitempty"`
|
||||
KeywordScore float64 `json:"keyword_score,omitempty"`
|
||||
CategoryScore float64 `json:"category_score,omitempty"`
|
||||
BestChunkExcerpt string `json:"best_chunk_excerpt,omitempty"`
|
||||
}
|
||||
|
||||
// ChangeContext is a normalized, read-only view of a GLPI Change. Only fields
|
||||
@@ -196,6 +201,7 @@ type PolicyResult struct {
|
||||
ReplyThreshold float64 `json:"reply_threshold"`
|
||||
ReplyKnowledgeID string `json:"reply_knowledge_id,omitempty"`
|
||||
ReplyDecision string `json:"reply_decision"`
|
||||
KnowledgeThreshold float64 `json:"knowledge_threshold,omitempty"`
|
||||
AIReason string `json:"ai_reason,omitempty"`
|
||||
}
|
||||
|
||||
@@ -231,6 +237,12 @@ type RunRecord struct {
|
||||
KnowledgeTopID string `json:"knowledge_top_id,omitempty"`
|
||||
KnowledgeTopTitle string `json:"knowledge_top_title,omitempty"`
|
||||
KnowledgeScore float64 `json:"knowledge_score,omitempty"`
|
||||
KnowledgeSemanticScore float64 `json:"knowledge_semantic_score,omitempty"`
|
||||
KnowledgeTitleScore float64 `json:"knowledge_title_score,omitempty"`
|
||||
KnowledgeKeywordScore float64 `json:"knowledge_keyword_score,omitempty"`
|
||||
KnowledgeCategoryScore float64 `json:"knowledge_category_score,omitempty"`
|
||||
KnowledgeThreshold float64 `json:"knowledge_threshold,omitempty"`
|
||||
KnowledgeBestChunk string `json:"knowledge_best_chunk,omitempty"`
|
||||
ContextChanges int `json:"context_changes,omitempty"`
|
||||
ContextIncidents int `json:"context_incidents,omitempty"`
|
||||
ContextIssues int `json:"context_issues,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user