Quoted announcement
Model input
Article investigates security failures and quotes a vendor product announcement.
Label content by its purpose and main subject using your team’s definitions.
Choose an example
Classify documents by their substantive purpose and topic.
Step 01
Choose an example, review the proposed output, and annotate the fields that need to change. Your guidance defines the learned rules.
The document’s substantive purpose.
Whether the content primarily informs or promotes.
The substantive subjects covered in the document.
Classify documents by their substantive purpose and topic.
Article investigates security failures and quotes a vendor product announcement.
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 = {
"text": "Article investigates security failures and quotes a vendor product announcement."
}
result = so.run_function(
"content-classification",
input_data,
)curl --fail-with-body -X POST "${SUTRO_API_URL%/}/v1/functions/content-classification/run" \
-H "Authorization: Key $SUTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "Article investigates security failures and quotes a vendor product announcement."
}
}'import sutro as so
job_id = so.batch_run_function(
name="content-classification",
data="content_classification.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": "content-classification",
"inputs": [
{
"text": "Article investigates security failures and quotes a vendor product announcement."
}
]
}'Use your own classification taxonomy and accepted label values. Annotate borderline examples to teach the distinctions your team cares about, then apply the same policy to the rest of your content.
Step 01
Upload sample data, define your output schema, and provide feedback on the hardest cases.
The article’s main subject, rather than a passing mention.
The editorial format of the article.
Additional substantive topics; leave empty for incidental mentions.
Classify collected articles by their main subject.
Article covers hospital staffing shortages and briefly mentions an AI scheduling pilot.
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 = {
"text": "Article covers hospital staffing shortages and briefly mentions an AI scheduling pilot."
}
result = so.run_function(
"article-topic-classification",
input_data,
)curl --fail-with-body -X POST "${SUTRO_API_URL%/}/v1/functions/article-topic-classification/run" \
-H "Authorization: Key $SUTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "Article covers hospital staffing shortages and briefly mentions an AI scheduling pilot."
}
}'import sutro as so
job_id = so.batch_run_function(
name="article-topic-classification",
data="article_topic_classification.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": "article-topic-classification",
"inputs": [
{
"text": "Article covers hospital staffing shortages and briefly mentions an AI scheduling pilot."
}
]
}'