Entity Metrics System

Sistema de cálculo de métricas para entidades detectadas en respuestas de LLM. Mide visibilidad, sentimiento e impacto de negocio.

Mostrando: v2 Current
01

Métricas Calculadas

Sentiment Score Cambió
-1 → 1

Promedio de sentimientos normalizados de todas las menciones. Usa escala 1-5 convertida a -1 a 1. Ratio de menciones positivas vs negativas, excluyendo neutros. Fórmula: (positive - negative) / (positive + negative).

normalized = (sentiment - 3) / 2
score = Σ(normalized) / mentionCount
score = (positive - negative) / (positive + negative)
// neutral mentions excluded
SentimientoValor OriginalNormalizado
Muy negativo1-1.0
Negativo2-0.5
Neutral30.0
Positivo40.5
Muy positivo51.0
InputResultado
Solo positivos1.0
Solo negativos-1.0
Solo neutros0.0
Mix igual0.0
Position Score
0 → 1

Share de importancia posicional usando decay logarítmico. Menciones al inicio tienen más peso.

weight(pos) = 1 / log(pos + 2)
score = Σ entityWeights / Σ allWeights
PosiciónPeso
0 (primera)1.443
10.910
20.721
50.512
100.417
Mention Score
0 → 1

Share de menciones de la entidad sobre el total de menciones en la respuesta.

score = entityMentions / totalMentions
Avg Mention Position
0 → N

Posición promedio donde aparece la entidad. Valores más bajos = mejor posicionamiento.

avgPosition = Σ positions / mentionCount
Visibility Score
0 → 1

Score compuesto que combina sentiment, position y mention scores con pesos configurables.

normSentiment = (sentiment + 1) / 2

visibility = (
normSentiment × w.sentiment +
positionScore × w.position +
mentionScore × w.mention
) / (w.sentiment + w.position + w.mention)
Competitive Score
0 → 1

Score basado en ranking relativo de visibilidad entre todas las entidades de la respuesta.

score = (totalEntities - ranking + 1) / totalEntities
RankingTotalScore
#151.00
#250.80
#350.60
#550.20
Business Impact Score BIS
0 → 100

Score final de impacto de negocio que combina todas las métricas ponderadas. Overall Score: combinación ponderada de todas las métricas, escalado 0-100.

normSentiment = (sentiment + 1) / 2

overall =
normSentiment × 0.30 +
positionScore × 0.25 +
mentionScore × 0.25 +
competitiveScore × 0.20

BIS = round(overall × 100)
02

Pesos por Defecto

Sentiment
0.30
Position
0.25
Mention
0.25
Competitive
0.20
03

Flujo de Cálculo

Input
Mentions
Group by
Entity
Calculate
Sentiment
Calculate
Position
Calculate
Mention
Combine
Visibility
Calculate
Avg Position
Rank by
Visibility
Calculate
Competitive
Output
BIS (0-100)
04

Calculadora Interactiva

Sentiment Score
0.50
Position Score
0.68
Mention Score
0.40
Visibility
0.72
Competitive
1.00
BIS
78
05

Comparativa v1 vs v2

Aspecto v1 Legacy v2 Current
Sentiment Input positive | negative | neutral 1-5 (escala numérica)
Sentiment Calculation (pos - neg) / (pos + neg)
Excluye neutros
Σ((s-3)/2) / count
Incluye todos
Position Index 1-based (1 = primera) 0-based (0 = primera)
Score Final overallScore businessImpactScore (BIS)
Weights Storage En código (Domain.Weights) Almacenado con cada métrica
Entity Fields brandId, brandName, brandIdentifier entityId, entityName, entityIdentifier, entityType