What is an LLM (Large Language Model)?
An LLM is a large language model that processes and generates text across many tasks; it must be evaluated for quality, cost, and risk in its intended use.
An LLM, or Large Language Model, is an artificial intelligence model trained on large amounts of text to process and generate language. It can handle many tasks, such as summarizing a document, translating, or answering a question. Many models build a response by predicting one token at a time: a token is a piece of text, not necessarily a whole word. The request and supplied material occupy the context window, the amount of text the model can use in a request. Information learned during training is encoded in the model's parameters, numerical values that shape its responses, but it is not a verified store of facts. As the NIST generative AI risk profile observes, a model can present false content confidently. An application can combine it with external sources and controls; quality depends on the complete system and the task, as well as the fluency of the resulting text.
See also: SLMAn SLM is a compact language model, general-purpose or specialized, best chosen by weighing task quality, resource requirements, and deployment constraints.
How a language model is used
Training produces a general model; the request describes the task and can include examples. In the GPT-3 study, the authors evaluated translation, question answering, and other tasks by supplying instructions and examples in the prompt, without changing the model for each task. Results varied across tests: good performance on one task does not establish reliability on all of them.
Generated text can contain hallucinations: invented or incorrect statements. RAG supplies the model with documents retrieved from external sources, but it does not guarantee that every answer or retrieved document is correct.
Model size and choice
An SLM is a relatively small language model. In a study across 15 datasets, with models from 77 million to 40 billion parameters, some small models matched or surpassed larger ones in text classification without examples in the prompt. The result applies to those tests. Compare models on real work, weighing quality, response time, infrastructure, and usage constraints.
An enterprise example
A company wants to help support staff answer questions using internal manuals and procedures. It prepares representative questions, including ambiguous ones and some the documents cannot answer, and checks answers against approved documents. The application shows sources accessible to the employee and flags cases without sufficient evidence. Before an answer goes to a customer, a person checks it and its references. This is an illustrative scenario: errors must be measured against the actual documentation.
Why it matters for decision makers
Before buying, establish which errors are acceptable, who approves answers, and what data can be sent to the service. The NIST profile suggests documenting limitations and evaluations and lists privacy and third-party components among the risks to manage. Total cost covers usage fees (often charged per input and output token), human review, integration, and operations.
Frequently asked questions
Related terms
- SLMAn SLM is a compact language model, general-purpose or specialized, best chosen by weighing task quality, resource requirements, and deployment constraints.
- RAGRAG combines search and generation: it retrieves external sources relevant to a question and passes them to a language model, which draws on them to answer.
- AI HallucinationsAI hallucinations are generated claims that are false or unsupported by their sources but presented as reliable; verify them before they inform decisions.
- AI tokenomicsAI tokenomics examines the cost of tokens used by generative models and compares it with the results, quality, and operating costs of a business service.
- Context windowThe context window is the limit, measured in tokens, on how much information an AI model can use for a request, including the response that the model generates.