go-second-brain — Knowledge Graph RAG Platform
Markdown KB → Neo4j + Qdrant → Matrix RAG bot and voice assistant.
go-second-brain — Knowledge Graph RAG Platform
Self-hosted second brain platform: a Markdown knowledge base flows into a Neo4j knowledge graph and Qdrant vector store, then serves answers through a Matrix RAG bot and optional voice assistant.
Repository: github.com/eSlider/go-second-brain
Architecture
- Ingest:
docsparseparses Markdown corpus → graph nodes/edges in Neo4j and embedded chunks in Qdrant - RAG: hybrid retrieval (vector search + graph-linked context) → Ollama generation
- Serving: Matrix bot (
!brainprefix), optional low-latency voice CLI (STT/TTS) - SDK: public Go packages (
services/pkg/*) shipped Jun 2026
Docker Compose stack
| Service | Role |
|---|---|
docs | MkDocs knowledge base |
neo4j | Knowledge graph |
qdrant | Vector store |
kg-ingestor | Markdown → graph + embeddings |
matrix-bot | Matrix RAG + voice bot |
Outcomes
- Hybrid GraphRAG retrieval combining vector similarity and graph traversal
- Self-hosted AI stack — no external LLM API required when using Ollama
- Production-oriented Go SDK for embedding the pipeline in other services
Tech stack
Go · Neo4j (Cypher) · Qdrant · Ollama · Matrix · Docker Compose
This post is licensed under CC BY 4.0 by the author.