PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

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

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← 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.

8
guides
2
Beginner
6
Intermediate
38 min
of reading
01

Start here

Why Can't LLMs Count Letters? Tokens and Probability

Why LLMs miscount letters, reverse strings wrong and miss word limits: tokenization, sampling, real failures, and why exact work belongs in your code.

Beginner · 4 minRead the guide →

7 guides

  1. 01Are 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 minPrompt EngineeringBeginner · 5 minPrompt Engineering→
  2. 02How 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 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→
  3. 03Why 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 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→
  4. 04Why 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 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→
  5. 05Why 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 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→
  6. 06LLMs 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 minPrompt EngineeringIntermediate · 4 minPrompt Engineering→
  7. 07Why 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 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→

Related topics

  • LLM Mental Models19
  • Hallucinations18
  • Grounding and Citations9
  • RAG (Retrieval-Augmented Generation)12
  • Tool Calling34

By category and level

  • Prompt Engineering guides54
  • Beginner guides75
  • Intermediate guides140

Search every guide.

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

All guidesLearning paths