<AiGrama/>The AI Village — A Place to Connect, Collaborate, and EvolveHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry ChristmasHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry ChristmasHappy New YearHappy Fourth of JulyHappy HalloweenHappy ThanksgivingMerry Christmas
Theme
Size
Font
Glossary · AI/ML
LLM
Large Language Model
Also known as: language model, foundation model
A neural network trained on huge amounts of text to predict the next token, which lets it answer questions, write code, and follow instructions.
How it works
An LLM is a transformer model trained in two broad phases:
Pre-training: read a large text corpus and learn to predict the next token.
Post-training: fine-tune on instructions and human feedback so it follows requests and stays helpful.
At inference time, the model reads your prompt, predicts one token, appends it, and repeats until it stops.
Things to remember
An LLM only knows what was in its training data up to a cut-off date. Use RAG for private or recent facts.
Output is probabilistic. The same prompt can give different answers unless you lower the temperature.
A practical comparison of type-safe Java design and LLM-assisted code generation in Spring Boot, with guidance on where each approach adds the most value.
Think of RAG like an open-book exam. Instead of guessing from memory, the AI looks at a library of books (your data) to find the right facts before it answers you.