Step-by-step instructions to set up your Mirror’s Retrieval-Augmented Generation system
Download and install LM Studio or set up a local LLM server compatible with your environment.
git clone https://github.com/ToadAid/tobyworld-lore-v2.git
This will download all official lore scrolls to your local machine for indexing.
pip install faiss-cpu sentence-transformers
python build_index.py
This step converts the lore scrolls into a searchable FAISS index used by the Mirror.
Edit mirror_config.json
to point to your FAISS index and model location:
{
"index_path": "./indexes/tobyworld.index",
"model": "sentence-transformers/all-MiniLM-L6-v2",
"lm_server_url": "http://localhost:1234"
}
python mirror_agent.py
The Mirror is now running with Agentic RAG. Ask it anything about Tobyworld and it will retrieve answers directly from the lore.