Update Chunking der KBs
release-tag / release-image (push) Successful in 1m44s

This commit is contained in:
2026-07-28 15:16:15 +02:00
parent 4cfdac042d
commit 45b3d1b2df
13 changed files with 650 additions and 111 deletions
+14 -2
View File
@@ -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"`