Synthetic instruction & Q&A generation

Generate grounded question-and-answer examples from supplied source material.

Step 01

Define and Align

Upload sample data, define your output schema, and provide feedback on the hardest cases.

Output schema
QuestionText

A question answerable from the supplied source material.

AnswerText

A direct answer grounded entirely in that source.

Source evidenceText

The source passage that supports the answer.

Answer typeChoose one

The kind of information the example teaches.

  • fact
  • limit
  • plan_feature
  • procedure
app.sutro.sh/functions/synthetic-instruction-q-a-generation
Collecting feedback · 1/3
Generate grounded question-and-answer examples from supplied source material.
Example 1 of 3

Unsupported answer

Model input

Standard plan allows 5 projects.

Model output
Question
Answer
Source evidence
Answer type

Step 02

Model Sweep

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

Deployment

Call Sutro Functions like any other software. Swap the model as soon as something more performant is released.

Selected modelWaiting for sweep results.

Real-time

import sutro as so

input_data = {
    "text": "Standard plan allows 5 projects."
}

result = so.run_function(
    "synthetic-instruction-q-a-generation",
    input_data,
)

Batch

import sutro as so

job_id = so.batch_run_function(
    name="synthetic-instruction-q-a-generation",
    data="synthetic_instruction_q_a_generation.csv",
)
results = so.await_job_completion(job_id)

Ready to get started?

Book time with the team

Join the self-serve waitlist

What are your bottlenecks? (Select any that apply)