Skip to content

Commit b22ac4b

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
chars
1 parent ddb5af0 commit b22ac4b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

subnet/subnet_methods.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def subnet_evaluation(quant_query: QuantQuery, quant_response: QuantResponse) ->
5858

5959
agent_answer = quant_response.response if quant_response else "No response provided"
6060

61-
# Cap the agent answer at 4000 characters
62-
agent_answer = agent_answer[:4000]
61+
# Cap the agent answer at 5000 characters
62+
agent_answer = agent_answer[:5000]
6363

6464
query_hash = str(hash(quant_query.query))
6565

@@ -90,8 +90,6 @@ def subnet_evaluation(quant_query: QuantQuery, quant_response: QuantResponse) ->
9090

9191
# Normalize the score to be between 0 and 1
9292
normalized_score = float(score) / MAX_SCORE
93-
if normalized_score == 1.0:
94-
logging.info(f"Normalized score is 1.0 for answer: {agent_answer}")
9593

9694
statsd.increment("subnet.evaluation.success")
9795
return normalized_score

0 commit comments

Comments
 (0)