← Back to Blog

How Lore Feeds the Story: Keeping Every Detail Canon

Lorenzo Lorenzo · · 2 min read
How Lore Feeds the Story: Keeping Every Detail Canon

One of the biggest risks of AI-generated storytelling is hallucination — the AI making things up. In a game built on established universes, that's a deal-breaker. Here's how Embertold ensures every detail is grounded in real lore.

The Knowledge Base

Every universe in Embertold is backed by a comprehensive, indexed knowledge base. We take canonical source material and break it down into thousands of searchable chunks — characters, locations, events, factions, items, spells, and more.

This isn't a simple text dump. Each chunk is processed and stored in a way that allows the AI to find relevant information based on meaning, not just keywords. Ask about "the spider goddess" and the system finds information about Lolth even if those exact words don't appear in the source.

How the AI Uses Lore

When the AI Game Master needs to describe a location, introduce an NPC, or respond to a player's action, it can query the knowledge base in real-time:

  1. Player enters a new location → AI queries lore about that location
  2. Player asks an NPC about history → AI retrieves relevant historical events
  3. Player encounters a faction → AI pulls faction details, motives, and relationships

The result is narration that's consistent with the universe's established canon. The Yawning Portal has the right owner. Waterdeep has the right political structure. The Underdark has the right ecology.

What About Creative Freedom?

Lore consistency doesn't mean rigidity. The AI uses lore as a foundation, not a straitjacket. Your unique adventure can introduce original characters, create new situations, and tell stories that have never been told — as long as they're plausible within the established world.

Think of it like a human dungeon master who's read every sourcebook. They know the rules and the lore, but they also know when to improvise.

The Loremaster Connection

The same knowledge base that powers the Game Master also powers the Loremaster (our dedicated Q&A tool). This means the information you get from asking the Loremaster matches what the Game Master uses in your adventure. There's a single source of truth.

Continuous Enrichment

As we add more source material to a universe's knowledge base, every adventure in that universe gets richer. More indexed lore means more detailed descriptions, more accurate NPC behavior, and more nuanced world-building.

The lore isn't just background. It's the engine that drives every story.

Related Posts