atlasbot: fix score formatting

This commit is contained in:
Brad Stein 2026-01-27 22:32:25 -03:00
parent ca7a08e791
commit fc10eed704
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ spec:
labels: labels:
app: atlasbot app: atlasbot
annotations: annotations:
checksum/atlasbot-configmap: manual-atlasbot-75 checksum/atlasbot-configmap: manual-atlasbot-76
vault.hashicorp.com/agent-inject: "true" vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/role: "comms" vault.hashicorp.com/role: "comms"
vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret" vault.hashicorp.com/agent-inject-secret-turn-secret: "kv/data/atlas/comms/turn-shared-secret"

View File

@ -2614,7 +2614,7 @@ def _candidate_note(candidate: dict[str, Any]) -> str:
def _ensure_scores(answer: str) -> str: def _ensure_scores(answer: str) -> str:
text = answer.strip() text = answer.strip()
lines = [line for line in text.splitlines() if line.strip()] lines = [line.strip() for line in text.splitlines() if line.strip()]
has_relevance = any(line.lower().startswith("relevance") for line in lines) has_relevance = any(line.lower().startswith("relevance") for line in lines)
has_satisfaction = any(line.lower().startswith("satisfaction") for line in lines) has_satisfaction = any(line.lower().startswith("satisfaction") for line in lines)
has_confidence = any(line.lower().startswith("confidence") for line in lines) has_confidence = any(line.lower().startswith("confidence") for line in lines)