Completion
The output text generated by a language model in response to a prompt. Also refers to the API endpoint type for generating text continuations.
In-Depth Explanation
In the context of language models, a completion is the text generated by the model in response to an input prompt. The model "completes" the prompt by predicting and generating the most likely continuation based on its training.
The completion process works by repeatedly predicting the next most likely token, then appending it to the sequence and predicting again. This autoregressive process continues until a stopping condition is met (max tokens, stop sequence, or end token).
Key aspects of completions:
- Token-based: Completions are generated and measured in tokens, not words
- Probabilistic: Each generation involves sampling from a probability distribution
- Controllable: Parameters like temperature and top_p affect completion randomness
- Stop conditions: You can specify sequences that end generation
Understanding completions is essential for:
- Estimating and controlling API costs
- Designing prompts that elicit desired responses
- Implementing streaming for real-time applications
- Debugging unexpected model behaviour
Business Context
Understanding completions helps you design effective prompts and predict API costs based on output length, essential for budgeting AI projects.
How Clever Ops Uses This
We help Australian businesses optimise their completion settings - balancing quality, cost, and speed. Proper completion configuration can reduce AI costs by 30-50% while maintaining quality.
Example Use Case
"A prompt asking to summarise an article generates a completion containing the summary. The completion length can be controlled via max_tokens parameter."
Frequently Asked Questions
Related Terms
Related Resources
Prompt
The input text or instructions given to an AI model to elicit a response. Qualit...
Tokens
The basic units of text that LLMs process. Roughly 1 token = 4 characters or 0.7...
Inference
Using a trained model to make predictions or generate outputs on new data. This ...
Learning Centre
Guides, articles, and resources on AI and automation.
AI & Automation Services
Explore our full AI automation service offering.
AI Readiness Assessment
Check if your business is ready for AI automation.
