Building with AI

Structured output

Getting a model to return data in a fixed format, usually JSON matching a schema you define, so your code can use it directly. Many APIs can enforce the format; the values inside it still need validating.


Guides that cover it

Related terms

Semantic search

Search by meaning rather than exact words, using embeddings, so 'staff holiday policy' can find a document titled 'ann…

Spaces

Hugging Face's hosting for small AI demo apps, often built with Python frameworks such as Gradio or Streamlit. A quick…

Streaming

Sending a model's output to the user piece by piece as it is generated, rather than all at once at the end. It is why …

Throughput

How much work a system can handle over time, such as tokens per second or requests per minute. Latency is about one us…

Time to first token

How long before the first piece of a response appears. With streaming, a short time to first token makes a slow respon…

Tool calling (function calling)

Letting a model request that your software run a defined function, such as look up an order, search a database or send…

Beyond the definition

Knowing the word is the easy part

A short assessment scores you across five skill areas and builds a path through 18 modules, skipping whatever you already know. Free, no card.

Find your level