Wrong accessory
Model input
- Query
- laptop charger
- Result
- Protective laptop sleeve. No charger or power adapter included.
Judge whether a result satisfies the query’s stated product constraints.
Step 01
Upload sample data, define your output schema, and provide feedback on the hardest cases.
Whether the result satisfies the query’s required constraints.
How closely the result matches the requested product.
Requested attributes or compatibility requirements the result fails.
Judge whether a result satisfies the query’s stated product constraints.
Sutro can now generalize the rules based on your feedback.
Step 02
Compare quality and cost on your examples, then choose a model or use Sutro’s default.
Compare models on expert agreement and cost. The interactive chart uses illustrative measurements.
Illustrative sweep · select Value or Best to use that model in your function.
Step 03
Call Sutro Functions like any other software. Swap the model as soon as something more performant is released.
import sutro as so
input_data = {
"query": "laptop charger",
"result": "Protective laptop sleeve. No charger or power adapter included."
}
result = so.run_function(
"search-relevance-judgments",
input_data,
)curl --fail-with-body -X POST "${SUTRO_API_URL%/}/v1/functions/search-relevance-judgments/run" \
-H "Authorization: Key $SUTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "laptop charger",
"result": "Protective laptop sleeve. No charger or power adapter included."
}
}'import sutro as so
job_id = so.batch_run_function(
name="search-relevance-judgments",
data="search_relevance_judgments.csv",
)
results = so.await_job_completion(job_id)curl --fail-with-body -X POST "${SUTRO_API_URL%/}/v1/batch-inference" \
-H "Authorization: Key $SUTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "search-relevance-judgments",
"inputs": [
{
"query": "laptop charger",
"result": "Protective laptop sleeve. No charger or power adapter included."
}
]
}'