Skip to content

Commit 04a5c23

Browse files
lisadunlapclaude
andcommitted
Fix cluster card conversation count mismatch
Backend: - Add total_unique_conversations calculation in _compute_cluster_scores() - Include total_unique_conversations in flatten_cluster_scores() output - Correctly count distinct conversations per cluster using conversation_id.nunique() Frontend (submodule): - Add clusterScores prop to ClustersTab - Update enrichment logic to read from cluster_scores - Change labels: 'conversations' -> 'unique conversations', 'responses' in tooltips - Pass cluster_scores from App.tsx to ClustersTab This fixes the mismatch where cluster card totals didn't match the sum of per-model bar counts. The root cause was that unique conversations (distinct prompts) differs from model responses (one conversation can have multiple model responses in multi-model datasets). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 927cc37 commit 04a5c23

25 files changed

+126
-389
lines changed

Caddyfile

Lines changed: 0 additions & 62 deletions
This file was deleted.

airline_data_demo.jsonl

Lines changed: 0 additions & 100 deletions
This file was deleted.

assets/stringsight_teaser.png

-222 KB
Binary file not shown.

data/airline_data_demo.jsonl

100644100755
Lines changed: 100 additions & 3 deletions
Large diffs are not rendered by default.

deploy-caddy-config.sh

Lines changed: 0 additions & 194 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)