Functions

A Nyckel function is the core unit of the platform. It is more than a prediction endpoint — it is a complete, self-contained classification pipeline that combines a model, a labeled dataset, a review queue, and a continuous improvement loop, all exposed through a single stable API.

What a function does

When you invoke a function, it receives an input — an image, a text string, or a row of structured data — and returns:

Your application uses these two values to make decisions: act on high-confidence predictions automatically, route low-confidence ones for human review, or set thresholds for escalation.

The model

Every function has a model attached to it. Nyckel manages the full model lifecycle:

You do not choose a model architecture or tune hyperparameters. Nyckel handles this so accuracy improves as your dataset grows.

The data pipeline

A function maintains an active pipeline of all data flowing through it:

This means your function accumulates real-world data over time, not just the examples you uploaded at setup.

Review and annotation

The Nyckel console provides a review queue for every function. From it you can:

Each correction or annotation is immediately available to the next training run.

Monitoring

You can monitor function health over time:

If accuracy drops or confidence shifts, it is usually a signal that new samples are needed, or that the real-world data has changed since the function was trained.

Self-improvement

A Nyckel function is designed to get better as it is used:

  1. Your application invokes the function with real inputs.
  2. Predictions are captured automatically.
  3. You (or your users) review and correct predictions.
  4. Corrections become new labeled samples.
  5. The model retrains on the expanded dataset.
  6. Accuracy improves — and the cycle continues.

This feedback loop means a function trained on a small initial dataset can become significantly more accurate over weeks of production use, without any manual retraining or re-deployment.

Function types

Nyckel supports three input types. Each produces the same prediction + confidence output:

Input type Use for
Image Photos, documents, frames from video
Text Messages, reviews, support tickets, any string
Tabular Rows of structured data with named fields

The function type is set at creation and cannot be changed. All three types support the same labeled dataset, review, annotation, and self-improvement features described above.