Navigation text · little learning value
Model input
“Python tutorials | Java tutorials | Sign in | Subscribe | Accept cookies | Privacy policy | Next page”
Teach a quality filter which documents belong in a coding training corpus.
Step 01
Review borderline documents and explain what makes them useful training material.
Whether the text teaches a concrete programming concept.
The kind of content in the record.
Why the content meets or fails the learning-value policy.
Decide whether a document should be kept in a coding training corpus. Prefer substantive explanations and working code over boilerplate or keyword spam.
“Python tutorials | Java tutorials | Sign in | Subscribe | Accept cookies | Privacy policy | Next page”
Sutro can now generalize the rules based on your feedback.
Step 02
Compare models against the same quality labels and choose a tradeoff.
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": "Use enumerate to get both the index and value: for i, item in enumerate(items): print(i, item)."
}
result = so.run_function(
"training-data-filtering",
input_data,
)curl --fail-with-body -X POST "${SUTRO_API_URL%/}/v1/functions/training-data-filtering/run" \
-H "Authorization: Key $SUTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "Use enumerate to get both the index and value: for i, item in enumerate(items): print(i, item)."
}
}'import sutro as so
job_id = so.batch_run_function(
name="training-data-filtering",
data="coding_documents.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": "training-data-filtering",
"inputs": [
{
"text": "Use enumerate to get both the index and value: for i, item in enumerate(items): print(i, item)."
}
]
}'Use schema-based annotation to turn your quality policy into consistent training-data labels. Review representative records, explain the edge cases, and apply the learned policy when labeling or filtering the full corpus.