PromptisePromptise
Docs
GitHub
Promptise - AI Framework LogoPromptise

The foundation layer for agentic intelligence. Build, secure and operate autonomous AI systems with Promptise Foundry.

pip install promptise

[01] Foundry

  • MCPcast
  • The Promptise Agent
  • Reasoning Engine
  • MCP
  • Agent Runtime
  • Prompt Engineering
  • Execution Engine
  • Agent Identity

[02] Resources

  • Documentation
  • GitHub
  • Guides
  • Learning Paths
  • Questions

[03] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

Open source · Python

← Guides> Library> Topic

How LLMs work: tokens, probabilities and training data

A large language model turns text into tokens, then repeatedly predicts a probability for every possible next token and picks one. Settings such as temperature and top-p decide how adventurous that pick is. Everything the model knows comes from patterns in its training data, compressed into its weights, and later training such as RLHF shapes which answers it prefers.

Many puzzling behaviours follow directly from these mechanics: models struggle to count letters because they see tokens, not characters; they get niche facts wrong because rare facts appear rarely in training; they give similar answers to open questions; and they cannot reliably quote a source word for word. These guides explain each behaviour from the mechanism up and show the prompting or system design that works around it.

[n.01/02]> 8 guides
  1. 01Why Can't LLMs Count Letters? Tokens and ProbabilityWhy LLMs miscount letters, reverse strings wrong and miss word limits: tokenization, sampling, real failures, and why exact work belongs in your code.Beginner · 4 minOct 18, 2026
  2. 02Are LLMs Stochastic Parrots? What the Term Gets RightAre LLMs stochastic parrots? What Bender et al. meant, what next-token prediction implies, where the term falls short, and the habit it should give you.Beginner · 5 minOct 18, 2026
  3. 03How LLMs Generate Text: Next-Token Probabilities ExplainedHow LLMs generate text one token at a time: probabilities, temperature, top-p, and why early words commit the rest. Real example of a verdict-first error.Intermediate · 5 minOct 18, 2026
  4. 04Why LLMs Mirror You: Sycophancy, Bias and Leading PromptsWhy LLMs agree with you: sycophancy from human-feedback training and bias from human text. Prompts that get honest feedback, with a real rating example.Intermediate · 5 minOct 18, 2026
  5. 05Why LLMs Fail Modified Puzzles: Pattern-Matching BiasWhy LLMs answer the famous version of a changed puzzle: training-data priors, research on counterfactual tasks, a real failure and how to prompt around it.Intermediate · 5 minOct 18, 2026
  6. 06Why LLMs Get Niche Facts Wrong: Popularity and Training DataWhy LLMs know popular facts but invent niche ones: accuracy tracks how often a fact appears in training data. When to retrieve instead. Real example.Intermediate · 5 minOct 18, 2026
  7. 07LLMs as Lossy Compression: Why They Can't Quote ExactlyWhy an LLM is a lossy compression of its training data: it keeps gist and loses exact wording, quotes and URLs. What to ask it for, with a real example.Intermediate · 4 minOct 18, 2026
  8. 08Why LLMs Give Similar Answers (and How to Get Variety)Why LLMs repeat the same kind of answer: mode collapse after RLHF. Get real variety with sets, named axes and verbalized sampling. Real naming example.Intermediate · 5 minOct 18, 2026
[n.02/02]> go further

Related topics

  • LLM Mental Models19
  • Hallucinations11
  • Grounding and Citations6
  • RAG (Retrieval-Augmented Generation)9
  • Tool Calling16

By category and level

  • Prompt Engineering guides54
  • Beginner guides36
  • Intermediate guides80

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths