This plugin builds a lightweight knowledge graph from users' Obsidian notes using LLM-powered entity extraction with a simple yet expressive ontology model to provide knowledge extraction, exploration, and RAG search. Since Obsidian provides wonderful links between notes, implementing ontology model would meet users' (especially researchers') needs.
- Keep the open graph current. Agent submissions, analysis, imports and other graph changes appear automatically. Refreshes keep your camera, selection, inspector, trail and search, and wait while you pick or review.
- Restore every node. The first render after restart includes the rebuilt note layer. Show notes still controls its visibility.
- See your sidebar selection. A scrolling inspector leaves a usable graph strip. Covered selections pan into it at the same zoom.
See the changelog and native acceptance report.
- Read the complete supporting passage. Decimal percentages, odds ratios, confidence intervals and abbreviations keep their full sentences in Korean and English. Open note at passage selects the original text and reuses a tab already showing that note.
- Keep your graph's shape as it grows. New nodes from note analysis or agent extraction settle around existing positions. Merge and Undo preserve the map, avoiding the layout expansion that made fitted nodes look like dots.
- Clearer review and Undo. Review shows Source n of m, then All sources reviewed after completion. A conflicting edit produces one Undo refusal notice and hides the unavailable action. The sidebar inspector's last row scrolls above Obsidian's status bar.
See the changelog and native acceptance report.
Graphs built with your own AI app need no provider in SGB for correction. Choose Review in a relationship row, path step or selected edge to read a locally highlighted source passage, correct or retract it, and Undo in the inspector. Choose Merge into… on an entity, pick or search a target, compare both, confirm, and use Undo merge if needed. Names and aliases remain usable by agent search and later extraction. Graph workflow
- Connect ChatGPT Desktop with one click. In Agent access, choose Install next to ChatGPT Desktop, then Install in ChatGPT Desktop. It runs with ChatGPT's own Node.js, so there is no Node.js to install, no config file to edit and no token to copy. Use it in Work or Codex conversations; regular Chat cannot reach your vault. ChatGPT Desktop: Work and Codex only
- Convert a PDF article to Markdown in Obsidian. Save its text in a note beside the PDF and jump from each section to the original page. Convert a PDF to Markdown
- Ask a connected agent to convert a PDF. The Let agents convert PDFs to Markdown setting lets agents create these notes from vault PDFs you name. Converting a PDF with an agent
See the changelog for this and earlier releases.
- Search from a concept or path. Choose Find more literature… in the graph inspector. Keep the route, relationship directions and supporting source notes visible while developing the next search.
- Editable searches for PubMed and OpenAlex. Review each source's query, dates and result limits, then press Search to submit the queries.
- Results and abstracts inside Obsidian. Inspect source metadata, identifiers and reliable matches to articles already in your vault. Open an article landing page in your external browser for access and downloading.
- Built into Simple Graph Builder. This needs no model API key, agent session, med-lit-mcp or separate backend. Searching creates no notes and makes no graph changes.
For the full workflow, see Literature search.
Traditional knowledge graphs often require complex schemas with dozens of entity and relationship types, making them difficult to maintain and query. Simple Graph Builder uses 10 fixed entity types (PERSON, ORGANIZATION, CONCEPT, PROJECT, TOOL, EVENT, PLACE, DOCUMENT, METHOD, TOPIC), free-form relationship verbs ("develops", "uses", "causes", "cites"), and a detail on each relationship for nuance without schema explosion. See the data model.
- Entity extraction uses your configured model to extract entities and relationships at the depth you choose. The plugin validates the structured output before updating the graph.
- Hybrid entity resolution (opt-in): A multi-stage pipeline of fast lookups, embedding similarity and LLM verification merges "AI", "artificial intelligence" and "인공지능" into one entity (inspired by KGGen [3])
- Notes in the graph: Each analyzed note becomes a node linked to the entities it mentions and the notes it wikilinks
- Relationship review and correction works from inspector rows, path steps and selected edges. Locate likely source passages locally, edit or retract a claim, and Undo in the inspector without a provider. Model-assisted and background review remain optional.
- Manual entity merging lets you pick or search a target, compare both entities and their sources, choose which name survives, and Undo the merge. Evidence and aliases are preserved, including for subsequent agent extraction.
- Interactive graph view: Search the graph in place, inspect and walk its relationships, focus on a neighborhood, find paths, and adjust appearance, forces and clusters live. Fast on graphs of thousands of nodes
- Advanced search: Notes and entities ranked by text match plus graph proximity (Personalized PageRank, as in HippoRAG [6]), with an explanation for every result and no API calls
- Find more literature: Develop editable PubMed/OpenAlex searches from explored concepts and paths, inspect citations and abstracts in Obsidian, and open articles externally
- PDF to Markdown turns a vault PDF's embedded text into a note with links to the original pages.
- Agent access (MCP): Let Claude Code, Claude Desktop, ChatGPT Desktop or Codex search your vault and knowledge graph through a local MCP server, and optionally build the graph with their own model instead of an API key. Claude Desktop and ChatGPT Desktop install with one click and need no Node.js
- med-lit import: Bring a med-lit-mcp literature review (articles, wiki pages and its knowledge graph) into your vault, merged into your graph and kept up to date by re-importing
- Vault write-back (opt-in): Mirror the graph into your vault as real Obsidian links, so it also appears in Obsidian's graph view, backlinks and properties
- Multiple LLM providers: Claude, OpenAI, Gemini, DeepSeek, and local servers (Ollama, or anything OpenAI-compatible such as llama.cpp, LM Studio and vLLM), with reasoning-effort control
- Analysis exclusions: Skip files and folders by path or glob, optionally honoring Obsidian's own exclusion list
- Korean language support: Syllable-pair matching in both entity resolution and search, so particles ("머신러닝은") and spacing variations still match, with names normalized to Unicode NFC so composed and decomposed Hangul resolve to one entity
- Note neighborhood panel: The current note's entities and their connections, in a sidebar
- Open Settings → Community plugins
- Search for "Simple Graph Builder"
- Click Install, then Enable
- Install BRAT from Community Plugins
- Open command palette → "BRAT: Add a beta plugin"
- Enter:
junhewk/simple-graph-builder - Enable the plugin in Settings → Community plugins
- Download
main.js,styles.css, andmanifest.jsonfrom the latest release - Create folder:
VaultFolder/.obsidian/plugins/simple-graph-builder/ - Copy the downloaded files into the folder
- Reload Obsidian and enable the plugin
- Choose a provider and enter its API key in Settings → Simple Graph Builder (or point it at a local server, or let a connected agent do the analysis)
- Open a note and run Analyze current note, or Analyze entire vault from settings
- Run Open graph view, and type in its search box to find your way in
With an already prepared graph, start at step 3. For example, open
Find more literature… from Uncertainty sampling, enter Abstract screening
in Required concept, and press Enter. Review both query previews and press
Search.
Right-click a PDF in the file explorer and choose Convert PDF to Markdown,
or run the command from the palette while viewing the PDF. Converting
Papers/Study.pdf opens Papers/Study - PDF.md. If that note already exists,
SGB reports the collision and preserves both files.
Conversion runs locally using Obsidian's PDF engine. It reads columns in order, rejoins wrapped lines, and keeps the first copy of matching running headers and footers. It can rejoin recognizable split Korean words, read an existing OCR text layer, and mark pages without extractable text. Image-only PDFs need OCR before conversion.
Each section links to its source page for checking tables, figures, equations, and footnotes. The converter preserves printed line-end hyphens. To add the converted note to the knowledge graph, open it and run Analyze current note.
| Command | Description |
|---|---|
Analyze current note |
Extract entities from the active note |
Review relationships of selected entity |
Choose a relationship of the graph selection for manual review |
Merge selected entity into… |
Pick or search an entity to compare and merge |
Undo last merge |
Restore the selected survivor's last merge, including entity notes |
Review graph relationships |
Check a batch of up to six existing relationships against short excerpts from their source notes |
Undo last relationship correction |
Restore the last correction while its source note revision is still current |
Search graph and notes |
Advanced search over notes and entities (no API calls) |
Convert PDF to Markdown |
Save a vault PDF's text as a note with page links. Also available from the PDF's file menu |
Open graph view |
Show the knowledge graph |
Find more literature… |
Search PubMed/OpenAlex from the active graph selection; also available in the inspector and path view |
Open note neighborhood panel |
Show the current note's connections in the sidebar |
Remove current note from graph |
Remove the active note from the graph and clear its analysis record, so it can be analyzed again |
Rebuild note layer |
Recreate note nodes and their links from existing data (no API calls) |
Write graph links into notes |
Apply the graph to your vault as Obsidian links (no API calls) |
Remove graph links from notes |
Take the link property back out of every note |
Import or update med-lit project |
Import a med-lit-mcp review into the vault, or update one imported before (no API calls) |
Clear all graph data |
Reset the entire graph |
The ribbon icon offers Analyze current note and Open graph view. The status bar shows node counts by type.
To correct a single relationship, select an entity in the graph and choose Review in the inspector, on a path step, or on a selected edge. You can edit the verb, reverse the direction, or retract the selected note as a source. These edits work locally. Use Check excerpt with model in the same dialog for suggestions. Enable Automatically correct relationships to let Obsidian check a small batch in the background and apply supported corrections while the vault is open. Use Undo last relationship correction to reverse a change.
| Guide | Covers |
|---|---|
| Graph View | Searching, inspecting and arranging the graph; display, forces, clusters and layout |
| Search | The search command, and how results are ranked |
| Literature Search | Graph origins, editable PubMed/OpenAlex queries, results, abstracts and external article links |
| Relationship Review | Manual corrections, automatic review, model budget, and undo |
| Settings | Providers, analysis, exclusions, entity resolution, vault write-back |
| Agent Access (MCP) | Connecting Claude Code, Claude Desktop, ChatGPT Desktop or Codex, the tools they get, and what they can see |
| Importing med-lit Projects | Importing, updating and removing literature reviews |
| Data Model | Entity types, relationships, entity resolution, and where data is stored |
| Changelog | What changed in each release, and what upgrading does |
| Development | Building, testing and releasing |
Note analysis requires a model that can return structured output. Models that cannot are refused with a message rather than silently producing a lower-quality graph, and the settings panel flags them as you select them.
| Provider | Models |
|---|---|
| Claude | claude-sonnet-5-5, claude-haiku-5-5 |
| OpenAI | gpt-6-luna, gpt-5.4-mini |
| Gemini | gemini-3.8-flash, gemini-4-hydrogen |
| DeepSeek | deepseek-flash |
| Local | any model your server exposes — Ollama, or an OpenAI-compatible server such as llama.cpp's llama-server, LM Studio or vLLM |
Any other model can be typed into the Custom… field, for example deepseek-v4-pro.
DeepSeek offers JSON mode rather than schema-enforced output, so the plugin puts the schema in the prompt and still validates every reply against it. At the default Minimal reasoning effort, DeepSeek's thinking is switched off. At higher levels it stays on, and the output budget is raised to 32k tokens, because DeepSeek counts thinking against it.
Local graph/note search, graph exploration and agent access make no provider API calls. Find more literature makes explicit PubMed/OpenAlex retrieval requests, under their current usage allowances; optional literature keys are configured separately. Note analysis calls the configured model API. When an agent analyzes notes for you, it uses its own model, billed however that agent is. Optional background relationship review adds at most one model request per 24 hours, with up to six short excerpts in the batch. Manual edits in the inspector run locally.
- Claude, OpenAI, Gemini, DeepSeek: Each note analysis costs your provider's pricing
- Local servers: Free (runs on your machine)
If entity resolution is on, embeddings add a little:
- OpenAI: ~$0.02 per 1M tokens for
text-embedding-3-small - Gemini: Free tier available for
gemini-embedding-001 - Local: Free (models like
nomic-embed-text)
- The configured LLM provider receives note text for extraction and short excerpts for optional relationship review. Use a local server for fully local processing.
- Analyze entire vault enumerates markdown file paths only when you start it. It reads eligible notes on your computer to count the new and changed ones, and sends nothing until you confirm those numbers
- Analyzing the current note and auto-analysis read only the individual note being processed
- Literature search sends only submitted queries, filters and configured contact/authentication details to the selected sources. Routes, source passages, vault paths and the local research question stay in Obsidian. Citation results are cached temporarily in memory
- The plugin stores the graph, correction records and settings in your vault. Where the data lives
- Importing a med-lit project reads its folder on your computer and copies its pages into the vault. It makes no API calls, unless you choose embedding-based matching
- PDF to Markdown reads the selected PDF locally and saves the extracted text beside it in the vault.
- Agent Access (off by default) shares eligible notes with connected agents. It keeps your API keys, settings, and excluded notes private. Each agent controls whether it sends the text it reads to its model provider. Separate settings allow agents to add to the graph or create a Markdown note from a vault PDF. Agent Access
The plugin stores its settings and the graph in
.obsidian/plugins/simple-graph-builder/data.json. On Obsidian 1.11.4 or later,
extraction and embedding API keys are not in that file: they are kept in
Obsidian secret storage on each device. On older versions they are in it. If
your vault is a git repository, add this to your .gitignore:
.obsidian/plugins/simple-graph-builder/data.jsonOn older Obsidian, pushing that file to a public repository publishes your keys in plaintext, and deleting it later does not help — git keeps the history. If it has already been pushed, revoke the key at your provider's console and issue a new one.
Literature keys use Obsidian secret storage where available and session memory
on older versions. They are not written to data.json or included in a copied
prepared vault.
This plugin's entity resolution approach is inspired by recent advances in knowledge graph construction:
- LightRAG [1] demonstrated lightweight graph-based RAG but lacks entity resolution
- Microsoft GraphRAG [2] provides comprehensive extraction but at high cost ($50-100+ per corpus)
- KGGen [3] introduced the insight that entity resolution is critical for quality knowledge graphs
Simple Graph Builder combines the simplicity of LightRAG with KGGen's hybrid resolution approach, adapted for Obsidian's local-first architecture. Search follows HippoRAG [6] in ranking by Personalized PageRank over the graph.
[1] Guo, Z., et al. (2024). "LightRAG: Simple and Fast Retrieval-Augmented Generation." https://github.com/HKUDS/LightRAG
[2] Edge, D., et al. (2024). "From Local to Global: A Graph RAG Approach to Query-Focused Summarization." arXiv:2404.16130. https://github.com/microsoft/graphrag
[3] Shu, Y., et al. (2025). "KGGen: Extracting Knowledge Graphs from Plain Text with Language Models." NeurIPS 2025. arXiv:2502.09956. https://github.com/stair-lab/kggen
[4] Neo4j, Inc. (2024). "Neo4j GraphRAG Package for Python." https://neo4j.com/docs/neo4j-graphrag-python/current/
[5] Veen, A. (2024). "pgvector: Open-source vector similarity search for Postgres." https://github.com/pgvector/pgvector
[6] Gutiérrez, B. J., et al. (2024). "HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models." NeurIPS 2024. arXiv:2405.14831. https://github.com/OSU-NLP-Group/HippoRAG
MIT License - see LICENSE for details.
