Class: Assistant::TechnicalSupport::ResponseGroundingDecision

Inherits:
Object
  • Object
show all
Includes:
Service
Defined in:
app/services/assistant/technical_support/response_grounding_decision.rb

Overview

Makes the deterministic policy decision after the model extracts claims.

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callResult

Evaluates validation, citation, safety, and truncation policy.

Returns:

  • (Result)

    immutable deterministic decision



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'app/services/assistant/technical_support/response_grounding_decision.rb', line 67

def call
  Result.new(
    status:,
    input_truncated: input_truncated?,
    citation_urls:,
    unsupported_citation_urls:,
    uncited_claim_indexes:,
    missing_canonical_evidence_claim_indexes:,
    invalid_evidence_ids:,
    unassessed_answer_segment_ids:,
    invalid_answer_segment_ids:,
    conflicting_answer_segment_ids:,
    duplicate_answer_segment_ids:,
    misclassified_non_material_segment_ids:,
    validation_errors:,
    review_reasons:
  )
end