What is an LLM?
A large language model writes by predicting the next piece of text, over and over. That one trick powers chat, code and summaries, and explains its strange mistakes.

Key takeaways
- An LLM is a neural network trained on vast text to predict the next token, which lets it generate fluent language and code.
- It is strong at drafting, summarizing, transforming and reasoning over text you give it, and weak at exact facts it was never shown.
- Apps use LLMs by sending a prompt plus context and checking the reply; the model does not learn from each conversation.
An LLM, or large language model, is a type of AI model trained on enormous amounts of text so it can predict which word, or piece of a word, should come next, and by repeating that prediction, write answers, code, summaries and conversations. "Large" refers to both the training data and the number of internal parameters, often counted in the billions.
Your phone keyboard's next-word suggestion is the everyday ancestor. Type "see you" and it offers "tomorrow". An LLM does the same thing at a vastly larger scale, with enough learned patterns that its next-word guesses add up to a coherent paragraph, a working function, or a polite reply to a customer.
How it works, without the math
- 01Pretraining. The model reads a huge collection of text and repeatedly guesses the next token, adjusting itself when it is wrong. Patterns of grammar, facts, styles and reasoning get stored in its parameters.
- 02Tuning. It is then trained on examples of helpful answers and on human feedback, so it follows instructions instead of just continuing text.
- 03Generation. When you send a prompt, it is split into tokens (tokens and context windows), and the model produces a reply one token at a time, each choice based on everything before it.
Two consequences follow. The model has no built-in database it looks things up in; its knowledge is a compressed impression of its training text up to a cutoff date. And it is designed to produce plausible text, which is usually but not always true text (what AI hallucination is).
What LLMs are good and bad at
- Good: drafting and rewriting text, summarizing long documents, extracting structured data from messy input, classifying messages, translating, explaining, and writing and fixing code.
- Good when given the facts: answering questions about your documents when those documents are included in the prompt (what RAG is).
- Weak: exact arithmetic on large numbers, recent events after the training cutoff, niche facts, and anything where a confident wrong answer is costly and unchecked.
Where LLMs show up when you build with Startbase
In two places. First, the agent that builds your app runs on language models, combined with tools to read files, run the app and check its own work (inside an AI app builder). Startbase never trains models on your prompts, code or data.
Second, the app you build can use an LLM itself. With Startbase Cloud, the App AI gateway lets your app call AI without API keys of its own: the helper library's `invokeLLM` returns text, or structured JSON when you pass a schema, and the Backend tab shows calls, tokens and cost (AI features docs).
Add a "Summarize this thread" button to each support ticket. Send the ticket's messages to invokeLLM and ask for JSON with three fields: a two-sentence summary, the customer's main request, and a sentiment of positive, neutral or negative. Show the result above the thread, store it on the ticket, and show a friendly error if the call fails.
More patterns and their costs are in adding AI features to your app.
Common confusions
- "It remembers our past chats." The model itself does not change between conversations. Apps create memory by sending earlier messages or saved notes again with each request.
- "It searches the web." Only if the app gives it a search tool. Otherwise it answers from training alone.
- LLM vs chatbot. A chatbot is an app; the LLM is the engine inside it. The same model can power a chatbot, a code editor or a silent background classifier.
Frequently asked questions
Is an LLM the same as AI?
It is one kind of AI. Image generators, speech recognizers and recommendation systems are other kinds, though many modern systems combine several.
Do I need to understand LLMs to add AI to my app?
No, but knowing that replies are generated rather than looked up helps you design well: give the model the facts it needs, ask for structured output, and validate the result.

