Register

RPGX AI Librarian

An Add-on Module for Foundry Virtual Tabletop

Author: x8xid82 Project Source Foundry Versions 11.0+ (Verified 13.350) Last Updated 3 weeks ago

This package contains art, text, or software code produced using generative AI.

RPGX AI Librarian – Turn Your Foundry World into an Actual Brain 🧠

Tired of your “AI assistant” knowing everything except the stuff that actually matters in your campaign?

RPGX AI Librarian is the missing piece: it ingests your journals, actor sheets, and world items into a searchable knowledge base so your AI can finally answer questions using your lore, your rules, your NPCs, and your hand-crafted chaos.

This module is built to work hand-in-hand with your RPGX AI Assistant working nicely in the background doing the unsexy heavy lifting: structuring your world and feeding it to the machine. It's like SkyNet, but for your TTRPG's... But, in a good way.

What RPGX AI Librarian Does

At a high level, RPGX AI Librarian:

Result:
Ask your AI, “What’s Rami Treenuts’ backstory again?”, “What conditions does this cursed ring inflict?”, or “Who hired the party in this arc?” — and it can answer using your actual campaign data, not generic SRD nonsense.

Feature Rundown

Here’s what you actually get under the hood.

🔍 World Ingestion (Journals, Actors, Items)

RPGX AI Librarian collects and converts your Foundry content into clean text docs for the RAG server:

Perfect for letting your AI answer, “What does the Wand of the Dust King actually do again?” using your actual homebrew.

🧷 Ingest Control Panel (GM-Only)

The RPGX AI Librarian Control Panel (in Game Settings) gives you a central place to manage ingestion:

📝 Per-Journal Upload Button (Coming Soon)

For when you just tweaked one journal and don’t want to reindex the entire world:

This makes it painless to keep the KB updated session to session.

⚙️ Configurable Chunking for RAG

In Game Settings → Configure Settings → RPGX AI Librarian, you get:

These are passed straight through to your RAG server so you can tune behavior for your specific model and context window.

🔒 GM-Only, Local-First Design

How to Install & Set Up RPGX AI Librarian

1. Requirements

You’ll need:

Librarian doesn’t care which LLM you’re using as long as the RAG server implements:

2. How to Get the Module (Pricing & Access)

You’ve got two ways in:

🔹 Option A — One-Time Purchase ($3)

Note: Ongoing updates are not guaranteed with the standalone one-time purchase. You keep the version you bought.

🔸 Option B — Silver Tier (or Higher) Subscription

If you want to stay on the bleeding edge and get updates automatically, the subscription route is the smart play.

3. Installing the Module in Foundry

Once you have access (either via one-time purchase or subscription), you’ll get either:

Then:

  1. In Foundry’s Setup screen, go to Add-on Modules.

  2. Click Install Module:

    • If you have a manifest URL, paste it into the “Manifest URL” field and click Install.

    • If you have a ZIP, place it in your Data/modules folder and refresh.

  3. After installation, go to your World, open it, then:

    • Go to Game Settings → Manage Modules.

    • Enable RPGX AI Librarian.

    • Click Save Module Settings.

4. Basic Configuration

Inside your world:

  1. Open Game Settings → Configure Settings.

  2. Under the Module Settings tab, find RPGX AI Librarian.

You’ll see:

Click Save Settings when done.

5. Using the Control Panel

To actually feed your world to the machine:

  1. Open Game Settings → Configure Settings again.

  2. Under Module Settings, look for RPGX AI Librarian and click the “Open Control Panel” button (thanks to the registered menu).

  3. In the panel, you’ll see:

    • RAG Server URL.

    • Journals in World.

    • Actors / NPCs in World.

    • Items in World.

Buttons:

How It Plays with RPGX AI Assistant

On its own, Librarian is the indexer — the quiet archivist.
Paired with RPGX AI Assistant, it becomes a full AI co-DM that actually knows your world:

You get the vibe of “My game has its own lore AI” instead of “I asked Clippy to run my campaign.”

 

🛠️ Installation Guide
Note: This RAG server is not compatible with AnythingLLM or other RAG APIs. It is specifically designed for the RPGX Librarian and RPGX Assistant modules.

If you already have Ollama and Node.js installed, skip to Step 3.

 

Step 1 — Install Ollama

1. Download from: [https://ollama.ai](https://ollama.ai)
2. Run the following commands in terminal/powershell:

   ollama pull qwen2.5:14b
   ollama pull nomic-embed-text

 

Step 2 — Install Node.js 18+

1. Download from: [Download RPGX RAG Distribution](https://www.patreon.com/file?h=143200618&m=570813685)

 

Step 3 — Set Up the RAG Server

1. Download RPGX RAG distribution package: [https://www.patreon.com/file?h=143200618&m=570813685]
2. Unzip the file and place the unzipped "rpgx-rag-server" folder into the place you wish to host from.
3. Open the folder, right-click inside the folder and select: "Open Terminal"
4. Run this FIRST (required): "npm install" (only run this before first time setup of the RAG)
5. In the terminal, enter following command: "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass" and hit Enter
6. Next, in the terminal, enter following command: ".\start-rag-server.ps1" and hit enter.
7. This should create and start your RPGX RAG server. (Keep terminal open)
8. To use make sure Ollama is running and that the module is configured in Foundry.
9. To start server on future sessions repeat steps 5 - 7.

----------

NOTICE:

The RPGX AI Librarian is designed to work specifically with the RPGX AI Assistant, Ollama, and a custom RPGX RAG Server using Node.js distribution. It does not currently support other structures, such as AnythingLLM or Gemini. You will need to download and follow the steps for custom RAG deployment found on our Patreon page. The RPGX AI Librarian module is a paid module.

Categories

Available Versions

  1. Version v1.50

    3 weeks ago
    Foundry Version 11.0+ (Verified 13.350) Manifest URL Read Notes