Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Tpayne101
/
Aventra
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Aventra
/
response_scoring.py
Tpayne101
Create response_scoring.py
1d9e4ac
verified
3 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
197 Bytes
def
score_response
(
ai_response, scenario
):
return
{
'accuracy'
:
1.0
if
ai_response == scenario.expected
else
0.5
,
'tone'
:
1.0
,
'quality'
:
1.0
,
'cost'
:
0.01
}