Blog...
A blog posts...
The content for a blog post is loading...
A blog posts...
The content for a blog post is loading...
A personal knowledge base that leverages AI, automation, and real-world insights to transform static information into actionable insights.
Jan 1, 2025
When I started working on "The Brain," it was to tackle a recurring issue: every new AI project required me to manually recreate prompts and reintroduce context about myself—my history, preferences, and style. This repetitive process was not only inefficient but also incredibly frustrating, like reinventing the wheel each time.
I thought The Brain could act as a central hub—a single place where all my personal knowledge, insights, and context could live-- would not only be helpful for that cause but would also be a good forcing function for reflection as I take a small break between startups/projects/etc.
It’s designed to make sure every AI project I work on has access to the same consistent foundation. By streamlining this process, I’ve saved myself from the hassle of repeating the same setup work while also delivering on a deeper integration for these agents to understand "me" better.
In building "The Brain," I wanted to create a system that allows LLMs to access and utilize my personal knowledge. These projects can leverage my insights and experiences, making information from my mind readily available and actionable. The Brain acts as an extension of my own knowledge, ensuring that LLMs can respond as if it were me, bringing a more personalized and authentic touch to user interactions.
The Brain is more than just a personal knowledge base. It’s a dynamic system combining OpenAI embeddings, vector databases, and automation to transform static information into something searchable, contextual, and impactful. By linking my outputs with real-time applications, "The Brain" ensures my knowledge is both preserved and easily accessible, enabling AI projects to efficiently use and adapt my personal insights without repetitive setup.
The Brain was built to address this challenge, providing a system that:
All content resides in a GitHub repository, organized into directories like career/, publications/, and research/. Files are stored in Markdown or MDX format, ensuring:
To keep the system current, I set up a GitHub Action that triggers on every commit to the main branch. The process includes:
text-embedding-large model.pgvector extension, enabling vector similarity search natively.This workflow ensures updates are processed automatically, reducing manual effort and enabling real-time availability for querying.
Another critical component of the system is automated ingestion, which expands its capabilities beyond manual updates. Using RSS feeds, new content is fetched and converted into Markdown files for integration. For example:
https://brennanmceachran.com/rss), converts them using a predefined template, and saves them to the knowledge base.This ensures a steady stream of updated content—like blog posts, newsletters, or external contributions—is continuously added and ready for use.
The Brain’s API is at the heart of its functionality, enabling advanced, AI-driven search capabilities. A key feature is query rewriting, which refines user inputs for greater accuracy and relevance.
Workflow:
Why It Matters:
A standout feature of The Brain is its 3D visualization, powered by Three.js. This tool offers an interactive way to explore the knowledge base.
Features:
Leveraging Next.js 15’s "use cache" enhances performance by optimizing server-side rendering and reducing redundant computations. This optimization significantly improves the user experience, enabling faster load times and smoother interactions when exploring the 3D visualization or querying the knowledge base. The visualization isn’t just visually appealing; it’s a practical tool for uncovering hidden relationships in the data.
Unlike traditional knowledge management systems, which emphasize external inputs, The Brain focuses on leveraging personal outputs. This approach prioritizes the unique value of the knowledge I’ve created—such as talks, specs, and pitch decks—ensuring that these outputs are not only preserved but also readily accessible and actionable, setting it apart from systems designed for general content aggregation. Acting as an agent, it autonomously accesses and utilizes knowledge I’ve created—from talks and specs to pitch decks and research insights.
The Brain helps me streamline my work and make better use of what I’ve already created. It’s not a grand reinvention—just a practical tool to reduce repetition, keep my projects consistent, and give me a clearer view of how my knowledge connects. At its core, it’s about making things easier and more efficient for the work I actually care about.