Glossary

Large language model (LLM)

A large language model (LLM) is an AI model trained on very large amounts of text to predict what comes next, which lets it answer questions, draft, summarise, classify, translate and write code. It produces likely text, not checked facts, and that shapes how it should be used.

Book a workflow review

How it produces an answer

Text is split into tokens, short pieces of words that the model handles as numbers. In pre-training, the model learns to predict the next token across a huge body of text, and in doing so picks up grammar, facts and patterns of reasoning. Further training on instructions and human feedback teaches it to follow requests and refuse harmful ones. When you send a prompt, it writes the answer one token at a time, each chosen from a range of likely options.

What its limits mean in practice

  • It can be wrong with confidence. Fluent output is not proof, a problem known as AI hallucination.
  • Its knowledge stops at a training cutoff and never includes your private data unless you supply it, usually through retrieval-augmented generation.
  • The context window is finite. The model can only consider so much text at once, and a detail buried in a very long prompt can be missed.
  • Output varies. The same prompt can produce different answers, so test with many cases, not one.
  • Everything it reads can act as an instruction. The model cannot reliably separate your instructions from text hidden in data, which is the root of prompt injection.

Choosing a model for a task

Test candidates on your own cases rather than relying on public leaderboards. Weigh quality on the task, speed, cost per token, context length, the provider's data terms and where data is processed. Test Arabic directly: quality differs between models, and Arabic text can take more tokens than English, which affects cost and how much fits in the window. Hosted APIs are the quickest start; open-weight models can run on infrastructure you control when data must stay there.

Where teams misuse LLMs

  • Asking the model for facts it was never given, instead of passing it the source.
  • Sending its output to a database, a web page or a command without validation.
  • Choosing a model once and never re-testing when the provider updates it.
  • Using the largest model for every step when a smaller, faster one passes the same tests.

Related terms

Teams adapt a model with fine-tuning and check it with LLM evaluation. An AI agent is an LLM given tools and a goal. See how we add models to existing software in AI integration.

A small first step

A 30-minute workflow review

Pick one process that costs your team time. We look at it with you and tell you honestly whether automation or an AI agent pays, what it would take, and what to measure first.

Message us on WhatsApp

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy