Docs / Obsidian vault
An Obsidian vault is a folder of Markdown files, and ModelBrain reads folders of Markdown files. Add the vault folder once and any assistant you have connected can answer from your notes and tell you which note it used. No plugin is needed, and Obsidian does not even need to be running. If you want to search and save from inside Obsidian as well, there is an optional ModelBrain plugin.
If ModelBrain is not set up yet, start with the quickstart. Then, on macOS or Windows, open the ModelBrain menu, choose Add Vault… and pick the folder your Obsidian vault lives in. In ModelBrain, a vault is just a folder you have added, so the word means the same thing in both apps.
From a terminal, the same thing is:
The first word after sync is a short name you choose for the folder. Use it later to pause, resume or remove it. The full command set is in Add, remove and rescan folders.
The first pass reads every note and runs in the background, so a large vault can take a while before everything is searchable. After that, only notes that changed are read again. Sync is not instant: a saved note takes a little while to show up in answers. The table further down says what has been measured and what has not.
In a connected assistant, ask the way you would ask a person who had read your vault. Here is an illustration of the kind of exchange to expect. The notes and the answer are made up for the example.
"What did I decide about the pricing page, and where did I write it down?" …the assistant calls ModelBrain… "You decided to keep the monthly price visible and drop the comparison table. That is in Projects/Website/Pricing decisions.md."
Answers point back to the note they came from, so you can open it in Obsidian and check. If the answer is not in your notes, reasoning mode says so instead of guessing. See reasoning mode, explained for how that works.
Your Markdown notes and any plain text, Word, PowerPoint and Excel files, PDFs with real text, HTML, and code or config files kept in the vault.
Images, video and scanned PDFs. Obsidian's own .obsidian settings folder is skipped along with every other folder or file whose name starts with a dot.
Folders such as node_modules and files that look like secrets (.env, keys, anything named credentials) are excluded automatically too. The full list is on the folders page.
Each line below is backed by an automated test that runs against a sample vault. A behavior is listed only when its whole test passes.
Checked by searching for the tag text. How high the real model ranks them is measured separately.
Template folders can be excluded.
Verified on macOS and Linux.
Checked with a rewrite-while-syncing stress test.
Engine alone: 5,000 notes in 29 seconds and 20,000 notes in 119 seconds, about 170 notes per second at both sizes, using up to 170 MB of memory. With the real model the first pass is slower, see first pass speed.
Verified for iCloud placeholders.
Checked by hand on macOS: the menu-bar Add Vault window asks for a partition and about template folders, and the vault synced into its own partition.
Flagging is tested in every place a note can hold text.
Measured with the real model: 40 of 40 note titles returned their own note first.
Clicked from a real search result on macOS and Obsidian opened the note. Not checked on Windows, so it is not claimed there.
Measured with the real model on a 300-note vault: a saved note was searchable in about 2.1 seconds.
On a Mac, the engine alone indexes about 170 notes per second (5,000 notes in 29 seconds). With the real model the first pass runs at about 11 notes per second (500 notes in 46 seconds), limited to two threads so your computer stays responsive. Re-syncing unchanged notes is near instant. Speed depends on your computer.
For local use, nothing leaves your computer. ModelBrain reads the files where they sit, and the index lives on your machine. ChatGPT connects through a relay and needs a free account, covered in ModelBrain and ChatGPT. Sync between computers is a separate, optional paid feature.
ModelBrain is an independent product from NexSpark and is not affiliated with or endorsed by Obsidian. Obsidian is a trademark of its owners.