SheetИ-05
Submit a request
Article · И-05AI rollout2 min read

How to write a technical specification for an AI system

A technical specification for an AI system differs from a regular one: besides features, it must describe the data, acceptable errors and how quality is checked. Here is what to include.

§ 1Why a regular spec isn't enough

In a regular system a button either works or it doesn't. An AI system answers differently each time and sometimes makes mistakes. If the spec doesn't describe which errors are acceptable and how to measure them, the work can't be accepted.

§ 2What to include

Task and users

Who uses the system, what decisions they make based on its answers, what happens if an answer is wrong.

Data sources

Which documents, databases and systems are used, how often they are updated, who is responsible for them, whether they contain personal data.

Data and security requirements

Whether data can be sent to the model provider, where the system must run, who has access to what.

System behaviour

What the system does if it doesn't know the answer; when it hands a question to a person; which languages it answers in.

Quality criteria

What share of questions the system must answer correctly, which errors are never acceptable, how fast an answer must come.

Test set

A list of real questions or documents with reference answers. Quality is checked against it at acceptance and after every change.

Integrations

Where the system lives: Telegram, CRM, portal, 1C.

Stages and acceptance

A pilot on a limited data set, then expansion. Each stage has an acceptance metric.

§ 3The most common mistake

Starting with the choice of model. The model is chosen last: once there are data requirements and a test set, models can be compared on your examples rather than by leaderboards.

We write such specs as a separate service. The document stays with the client, and any contractor can work from it.