atlasbot: fix score formatting
This commit is contained in:
parent
ca7a08e791
commit
fc10eed704
@ -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"
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user