Beyond the Blank Page: The Three-Brain AI Architecture Behind PureTome
Writing a memoir is one of the most personal and challenging creative journeys one can undertake. It’s more than just recounting events…
Writing a memoir is one of the most personal and challenging creative journeys one can undertake. It’s more than just recounting events; it’s about finding the meaning within them, shaping a narrative, and discovering your own voice. But too often, the process is lonely, and traditional writing tools offer little more than a spellchecker and a blinking cursor on a blank page.
What if you had a partner in this journey? Not just a tool, but an intelligent, empathetic companion that understands your story, remembers your goals, and knows exactly what kind of help you need at any given moment?
That is the vision behind PureTome. We believe the future of writing isn’t just about correcting mistakes, but about creating a true partnership between author and AI. To achieve this, we had to build something new from the ground up. This post pulls back the curtain on the AI architecture that makes PureTome tick — an architecture we believe will change the way people tell their stories.
The Problem with “Smart” Assistants
Most AI writing tools feel like a hammer looking for a nail. They can summarize text or fix your grammar, but they lack true context. They don’t know that the chapter you’re polishing is your proudest work, while the next chapter is just a collection of brainstormed ideas. They don’t understand that your goal isn’t just to write, but to understand your past.
To solve this, we designed our AI around a core principle: it must have different kinds of memory and understanding, just like a human collaborator. We call this our “Three-Brain” architecture.
Brain #1: The Librarian (The RAG Knowledge Library)
The first brain is The Librarian. Its job is to know your story inside and out.
Technically, this is our Retrieval-Augmented Generation (RAG) system, powered by a specialized Weaviate Vector Database. When you add your manuscript to PureTome, we don’t just store the text. We break it down into meaningful chunks and convert each one into a “vector” — a numerical representation of its semantic meaning.
Crucially, we enrich each chunk with layers of metadata:
- Chronological Order: Is this Chapter 1 or Chapter 5? Event 1 or Event 3?
- Content Type: Is this text part of the main story (
narrative), or is it a private author’s note (description)? - Writing Phase: Is this section a rough
Draftingpiece or a refinedPolishingpiece?
Why it matters: When you ask, “How does this connect to what happened after the move?” The Librarian doesn’t just search for keywords. It searches for meaning and chronological context, instantly retrieving the exact passages you’re thinking of, perfectly ordered. It has read your book and can open it to any page in an instant.
Brain #2: The Journal Keeper (Episodic Memory)
The second brain is The Journal Keeper. While The Librarian knows what you’ve written, The Journal Keeper remembers why you’re writing it and what our conversations have been about.
This is our Episodic Memory store, powered by a Neo4j Graph Database. We chose a graph database because it excels at understanding relationships. It doesn’t just store a list of your goals; it can map how an interview session about “childhood resilience” directly connects to your stated goal of “understanding my family history.”
It stores:
- Your overarching goals for the memoir.
- The status of each section (e.g., locked, approved).
- Summaries of our past conversations and interview sessions.
Why it matters: This is the part of the AI that remembers you. When it offers advice, it’s not just based on the text, but on your personal, stated intentions. It ensures the AI’s guidance is always aligned with your vision for the project.
Brain #3: The Conductor (The Orchestration Engine)
This is the most magical part of the system — the one that makes the AI feel truly intelligent. The Conductor’s job is to look at your immediate need and choose the perfect “musician” for the task.
Technically, this is our **LangChainService**, which features a pre-processing step we call the “Master Conductor.”
When you type a message like, “This paragraph feels clumsy,” here’s what happens:
- Intent Analysis: Before the main AI responds, The Conductor — a lightweight, fast AI model — analyzes your request. It determines your intent (“improve prose”) and the target of your request (the specific chapter you’re looking at).
- Persona Selection: Based on that intent, it automatically selects the right AI Persona for the job. It won’t bring in the “Narrative Weaver” (for drafting) to fix a clumsy sentence. Instead, it instantly summons the “Detail Refiner,” an expert copy editor persona whose sole purpose is to polish prose.
- Contextual Setup: The Conductor then sets the Writing Phase for that single interaction to “Polishing.”
The main AI then activates with the perfect persona and the perfect context, giving you a precise, relevant suggestion about sentence structure. For the user, the experience is seamless — it just understands. You don’t have to fiddle with dropdowns or settings; you just talk to it, and it adapts.
The Story That Propels Us
We didn’t build this architecture just for the technical challenge. We built it because we believe that telling your story is one of the most important things you can do. Our goal is to create a tool that honors that journey. By giving our AI a librarian’s knowledge, a journal keeper’s memory, and a conductor’s intuition, we aim to build more than just software. We aim to build a true creative partner.
This architecture is the story behind our product, and we believe it’s the key to helping you tell yours.
To follow our journey, follow us on Medium.
Get new essays by email
Memoir craft, AI architecture, and system design. No spam, unsubscribe anytime.