Skip to content
Courses/AI for small businesses and freelancers/From pilot to reliable flow: schema, sources, abstention and validation

From pilot to reliable flow: schema, sources, abstention and validation

A pilot shows that an idea can help. A reliable flow makes clear what goes in, where each piece of data comes from, what format it must return, when it should say "I don't know", and which check stops an error from moving forward.

What you will achieve now

A decision or test applied to "From pilot to reliable flow: schema, sources, abstention and validation".

  • 1 Understand the criterion
  • 2 Do a small practice
  • 3 Save evidence

A short note with what you did, what went well, what failed, and what you would review next.

  • Turn a vague request into a contract of input, output and limits.
  • Make a document-based flow cite its evidence or abstain.
  • Validate critical fields before a person approves the result.

The difference between a demo and a flow

A demo gives an apparently good answer to one example. A flow must respond in a controlled way to many examples, including incomplete and wrong ones. To achieve that, separate the stages: receive an authorized input, clean what is unnecessary, retrieve evidence if it works with documents, generate a structured draft, validate simple rules and hand it off for review. Only a later, explicit action could use that result.

Terminal
Entrada autorizada
  -> normalizar y minimizar datos
  -> recuperar fuentes permitidas si hacen falta
  -> generar borrador con esquema fijo
  -> validar formato, campos y reglas de negocio
  -> revisión humana
  -> acción posterior solo si se aprueba

Write the contract before the prompt

The prompt helps guide the model, but it is not the full contract. First define the work without mentioning brands or models. For extracting an invoice, for example, the output is not "a useful summary": it is a draft with concrete fields, an identifiable source and a list of open questions. If a field is not found or fails a basic rule, it should stay empty and marked for review.

Terminal
nombre: extracción de factura a borrador
finalidad: preparar una fila revisable; no contabilizar
entrada: PDF autorizado y su identificador interno
datos_no_permitidos: contraseñas, datos ajenos al documento
salida: emisor, fecha, número, base, IVA, total, dudas, fuente
regla_de_evidencia: cada campo crítico indica página o zona leída
abstención: si no puede leer o no encuentra un campo, usa null y explica por qué
validación: fecha válida; importes numéricos; total coherente o marcado
revisor: administración
acción_prohibida: exportar a contabilidad, pagar o modificar registros

Sources: evidence before apparent certainty

If the flow answers about a policy, a catalog or a document base, the model must not fill gaps with plausible phrases. Deliver alongside the answer the identifier, version and fragment of the source that supports it. If there is not enough evidence, the correct output is a useful abstention: "I cannot find an authorized source to claim this; review this document or escalate the query".

  • Limit the search to the corresponding set of documents and permissions.
  • Store version, date and fragment of the source, not only the final text.
  • Distinguish an extracted fact, an inference and a drafting proposal.
  • Do not turn a similarity score into a guarantee that the answer is correct.

Validate outside the model what is objective

A model can propose a date, an amount or a code, but a deterministic rule must check afterwards that the format exists and makes sense. Validate types, required fields, ranges, duplicates and simple relationships. Human review decides meaning; rules stop an incomplete output from looking ready to use.

Terminal
salida_borrador:
  emisor: ACME S.L.
  fecha: 2026-07-18
  numero: F-204
  base: 100
  iva: 21
  total: 121
  evidencia:
    total: pagina 1, bloque inferior
  dudas: []

validaciones:
  - todos los campos críticos existen o están marcados null
  - total = base + iva, con tolerancia explícita
  - fecha se puede interpretar
  - número no está duplicado en la muestra
  - si falla una regla: estado = revisar, nunca = listo

If you have saved the evidence from this lesson, continue with "Failure tests and metrics". If not, repeat the check before moving on.

Learn from a verifiable reference

Aulafy separates stable concepts from data that change —versions, prices, models and commands—. Check the course sheet for the review date, the verified scope and the primary sources.

"Editorial review" means structure, claims and sources have been reviewed. It does not mean every command has been executed: when a technical test exists, it will be labeled as such.

Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue