Update
This commit is contained in:
+22
-22
@@ -77,8 +77,8 @@ type KnowledgeDoc struct {
|
||||
// AutoReplyDecision explains why a synchronized source document is or is
|
||||
// not eligible for automatic replies. Local JSON documents may leave this
|
||||
// empty because their explicit auto_reply flag is already authoritative.
|
||||
AutoReplyDecision string `json:"auto_reply_decision,omitempty"`
|
||||
AutoReplyDetail string `json:"auto_reply_detail,omitempty"`
|
||||
AutoReplyDecision string `json:"auto_reply_decision,omitempty"`
|
||||
AutoReplyDetail string `json:"auto_reply_detail,omitempty"`
|
||||
MinScore float64 `json:"min_score"`
|
||||
Categories []int64 `json:"categories"`
|
||||
ExternalCategories []string `json:"external_categories,omitempty"`
|
||||
@@ -299,26 +299,26 @@ type PolicyResult struct {
|
||||
// KnowledgeCandidateAudit captures the top retrieval candidates used for a run.
|
||||
// It intentionally stores only normalized, non-secret diagnostic information.
|
||||
type KnowledgeCandidateAudit struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Source string `json:"source"`
|
||||
Score float64 `json:"score"`
|
||||
SemanticScore float64 `json:"semantic_score,omitempty"`
|
||||
TitleScore float64 `json:"title_score,omitempty"`
|
||||
LexicalScore float64 `json:"lexical_score,omitempty"`
|
||||
KeywordScore float64 `json:"keyword_score,omitempty"`
|
||||
CategoryScore float64 `json:"category_score,omitempty"`
|
||||
RequiredScore float64 `json:"required_score,omitempty"`
|
||||
AutoReply bool `json:"auto_reply"`
|
||||
AutoReplyDecision string `json:"auto_reply_decision,omitempty"`
|
||||
AutoReplyDetail string `json:"auto_reply_detail,omitempty"`
|
||||
BestChunkExcerpt string `json:"best_chunk_excerpt,omitempty"`
|
||||
BestQueryExcerpt string `json:"best_query_excerpt,omitempty"`
|
||||
QueryChunkCount int `json:"query_chunk_count,omitempty"`
|
||||
DocumentChunkCount int `json:"document_chunk_count,omitempty"`
|
||||
SentToAI bool `json:"sent_to_ai,omitempty"`
|
||||
RetrievalRank int `json:"retrieval_rank,omitempty"`
|
||||
SelectionReason string `json:"selection_reason,omitempty"`
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Source string `json:"source"`
|
||||
Score float64 `json:"score"`
|
||||
SemanticScore float64 `json:"semantic_score,omitempty"`
|
||||
TitleScore float64 `json:"title_score,omitempty"`
|
||||
LexicalScore float64 `json:"lexical_score,omitempty"`
|
||||
KeywordScore float64 `json:"keyword_score,omitempty"`
|
||||
CategoryScore float64 `json:"category_score,omitempty"`
|
||||
RequiredScore float64 `json:"required_score,omitempty"`
|
||||
AutoReply bool `json:"auto_reply"`
|
||||
AutoReplyDecision string `json:"auto_reply_decision,omitempty"`
|
||||
AutoReplyDetail string `json:"auto_reply_detail,omitempty"`
|
||||
BestChunkExcerpt string `json:"best_chunk_excerpt,omitempty"`
|
||||
BestQueryExcerpt string `json:"best_query_excerpt,omitempty"`
|
||||
QueryChunkCount int `json:"query_chunk_count,omitempty"`
|
||||
DocumentChunkCount int `json:"document_chunk_count,omitempty"`
|
||||
SentToAI bool `json:"sent_to_ai,omitempty"`
|
||||
RetrievalRank int `json:"retrieval_rank,omitempty"`
|
||||
SelectionReason string `json:"selection_reason,omitempty"`
|
||||
}
|
||||
|
||||
// ContextAuditItem is a compact snapshot of context that influenced a run.
|
||||
|
||||
Reference in New Issue
Block a user