# NPC Engine +

## Overview

\
NPC Engine+ builds upon the NPC Engine by adding a persistent, player-specific memory layer. This creates individually tailored character arcs, making each player’s experience unique and reactive to their personal journey.

## Model Type & Architecture

* Enhanced Memory and Context Layer: Alongside the general memory store, NPC Engine+ maintains a dedicated memory embedding store keyed per player. This allows NPCs to remember specific player actions, choices, and dialogue history, enabling personalized storylines and unique character relationships.
* Long-Term Adaptation: Reinforcement learning techniques are extended to track and adapt to each player’s evolving playstyle. NPC Engine+ continuously refines character responses over multiple sessions, incorporating the player’s past decisions to drive narrative branches.

## Underlying Tech

* Personalized Vector Databases: Each player’s interactions are stored as embeddings, enabling highly personalized retrieval-augmented generation.
* RL with User Modeling: RL agents learn policies that maximize player satisfaction metrics, narrative depth, and player retention over long story arcs.
* Multi-Session Continuity: Persistent storage mechanisms ensure that even if a player returns after weeks, the NPC remembers their last interaction and can build upon it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.altura.com/altura-documentation/altura-intelligence/npc-engine/npc-engine-+.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
