fix monitoring manual mark attribution
This commit is contained in:
@@ -3213,11 +3213,11 @@ func (s *MonitoringCallbackService) loadExistingRunSummary(ctx context.Context,
|
||||
if err := s.monitoringPool.QueryRow(ctx, `
|
||||
SELECT
|
||||
COUNT(*)::int AS citation_source_count,
|
||||
COUNT(*) FILTER (WHERE content_source_type IS NOT NULL AND content_source_id IS NOT NULL AND $3::text <> 'qwen')::int AS content_citation_count
|
||||
COUNT(*) FILTER (WHERE content_source_type IS NOT NULL AND content_source_id IS NOT NULL)::int AS content_citation_count
|
||||
FROM monitoring_citation_facts
|
||||
WHERE tenant_id = $1
|
||||
AND run_id = $2
|
||||
`, task.TenantID, runID.Int64, normalizeMonitoringPlatformID(task.AIPlatformID)).Scan(&citationSourceCount, &contentCitationCount); err != nil {
|
||||
WHERE tenant_id = $1
|
||||
AND run_id = $2
|
||||
`, task.TenantID, runID.Int64).Scan(&citationSourceCount, &contentCitationCount); err != nil {
|
||||
return nil, 0, 0, response.ErrInternal(50041, "citation_lookup_failed", "failed to inspect existing citation facts")
|
||||
}
|
||||
|
||||
@@ -3340,12 +3340,7 @@ func monitoringPlatformUsesDedicatedCitationPanel(platformID string) bool {
|
||||
}
|
||||
|
||||
func monitoringPlatformResolvesContentCitations(platformID string) bool {
|
||||
switch normalizeMonitoringPlatformID(platformID) {
|
||||
case "qwen":
|
||||
return false
|
||||
default:
|
||||
return true
|
||||
}
|
||||
return normalizeMonitoringPlatformID(platformID) != ""
|
||||
}
|
||||
|
||||
func newMonitoringTaskResultEnvelope(task *monitoringCollectTask, installationID string, receivedAt time.Time, req MonitoringTaskResultRequest) monitoringTaskResultEnvelope {
|
||||
|
||||
Reference in New Issue
Block a user