Skip to content

Entity Detection & Mentions

As you write in the content editor, MythTapestry can detect references to entities in your text and suggest linking them to your knowledge graph. This feature is entirely optional — you can always link entities manually using the @ mention system instead.

  1. You write content that mentions an entity (e.g. “Aldric rode to the Crimson Tower”)
  2. The system detects “Aldric” and “Crimson Tower” as potential entity references
  3. Suggestions appear as highlighted text with a subtle indicator
  4. You can confirm or dismiss each suggestion

Two methods are available (configured in World Settings):

GLiNER is a named-entity recognition model — it is not a large language model (LLM). It runs entirely on the MythTapestry server using pattern-matching and lightweight neural inference, with no external API calls.

  • Fast — typically processes text in under a second
  • No quota usage and no data sent to external services
  • Good for common entity types (names, places, organisations)
  • Uses fuzzy matching (via rapidfuzz) against your world’s entity names, aliases, and subtypes
  • May miss domain-specific or context-dependent entities

Uses your configured AI model via OpenRouter for more nuanced detection. This is better for unusual references and context-dependent names (e.g. recognising “The Crown” as a faction rather than a literal crown).

  • More accurate for unusual or context-dependent references
  • Uses your feature quota
  • Better at understanding when common words are entity names
ModeTriggerDescription
ManualClick the “Detect Entities” buttonYou control when detection runs
AutoOn content saveDetection runs automatically when you save

The mode is configured per world in World Settings. You can disable detection entirely if you prefer to manage mentions manually.

When one entity is detected in a text selection, you see an inline confirm/dismiss action right at the mention location.

When several entities are detected, they appear in a collapsible panel with:

  • Bulk confirm — accept all suggestions at once
  • Bulk dismiss — reject all suggestions
  • Individual confirm/dismiss per mention
StateAppearanceBehaviour
ConfirmedSolid highlight, clickable linkPersists across saves, visible in knowledge graph
SuggestedSubtle highlight, action buttonsSurvives saves but doesn’t create graph links
DismissedRemovedWon’t be suggested again for this text

When enabled (suggest_new_entities in World Settings), the detection system can flag text that looks like it refers to an entity that doesn’t exist yet in your world. These appear with a special indicator so you can decide whether to create the entity.

The confidence threshold (default 0.7) controls how certain the detection must be before suggesting a mention. Lower values produce more suggestions but may include false positives. Higher values are more conservative.