Skip to main content

Personal knowledge graph system for Obsidian vaults with hybrid search

Project description

Mnemo — Personal Knowledge Graph for Obsidian

PyPI version License: MIT Python 3.10+

Turn your Obsidian vault into a queryable knowledge graph with hybrid search (vector + graph traversal).

Features

  • Automatic Graph Building — Parses [[wikilinks]], YAML frontmatter, and tags from your Obsidian vault into a NetworkX knowledge graph
  • Hybrid Search — Combines vector similarity search with graph-based multi-hop traversal
  • Ontology Classification — Auto-classifies entities (Person, Concept, Project, Tool, Insight, etc.)
  • Knowledge Collectors — Web clipping, trust evaluation, and automated knowledge pipeline
  • REST API — FastAPI server for programmatic access
  • Obsidian Plugin — Companion plugin for in-vault queries (see obsidian-plugin/)
  • CLI Interface — Full-featured command-line tool for graph operations

Quick Start

Option 1 — uvx (recommended, no install needed)

uvx --from mnemo-secondbrain mnemo start /path/to/your/vault

That's it. One command builds your knowledge graph and starts the API server.

Option 2 — pip

pip install mnemo-secondbrain
mnemo start /path/to/your/vault

Option 3 — Docker

docker run -p 7890:7890 -v /path/to/your/vault:/vault jini92/mnemo /vault

Connect Obsidian Plugin

  1. Open Obsidian → SettingsCommunity plugins → search Mnemo SecondBrain → Install & Enable
  2. In the Mnemo plugin settings, set Server URL to http://localhost:7890
  3. Press Ctrl+Shift+M to search your knowledge graph

Advanced Usage

# Build graph only (no server)
mnemo build /path/to/your/vault

# Start server only (after building)
mnemo serve --port 7890

# Query from CLI
mnemo query "machine learning fundamentals"

# Show graph statistics
mnemo stats

API Endpoints

Method Path Description
GET /api/search Hybrid search
GET /api/graph/stats Graph statistics
GET /api/graph/node/{id} Get node details
GET /api/graph/neighbors/{id} Get node neighbors

Architecture

Obsidian Vault (Markdown + YAML + [[links]])
        ↓  parse
   NetworkX Graph (in-memory)
        ↓  embed
   Vector Index + Graph Index
        ↓  query
   Hybrid Search (vector + graph traversal)
        ↓  rerank
   Results with context

Development

git clone https://github.com/jini92/MAISECONDBRAIN.git
cd MAISECONDBRAIN
pip install -e ".[dev,all]"
pytest

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mnemo_secondbrain-0.2.1.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnemo_secondbrain-0.2.1-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

Details for the file mnemo_secondbrain-0.2.1.tar.gz.

File metadata

  • Download URL: mnemo_secondbrain-0.2.1.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mnemo_secondbrain-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3e1a11ff59306f9efc6d6c6818cee4894aaed1236d12d2de54f6baf4a972c12d
MD5 caceef8f4763edb31c98658a8e0b066b
BLAKE2b-256 220c39e7d9bdbebd8a428a9db65665ec74ed7abd4603f5b691d1a586ef16d249

See more details on using hashes here.

File details

Details for the file mnemo_secondbrain-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mnemo_secondbrain-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb391d820b05d28ef8d9401db0889a7834f4de846d5f3e61454a5efe94e7ef6
MD5 d1b472c661371d1c87c7dc515d49a701
BLAKE2b-256 9fa360212a4114a11e996f739a423f71c2b2a54861bac958dc51692d7f546cde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page