Quickly organize your markdown notes in Obsidian.md using OpenAIโs large language models.
Any random, untagged, empty, or unlinked notes? No more. This little script will fill the gaps, connect what belongs together, and even create high level organizing nodes if a specific topic has a lot of notes.
The script works through your entire vault, letting ChatGPT read and understand every note, remembering potential tags and topics, and linking and tagging up what belongs together so there are no more empty and lonely notes.
Print out statistics of your vault like how many notes you have, how many words, how many tags, which tags, and so on. The script also creates a GitHub-like activity timeline and a bar-chart of your most popular tags:
a. Activity map. | b. Tag frequency. |
- First Analysis. Go through every note and save in a
.csv
-file:- unique ID
- name
- date of creation
- number of words
- tags
- number of tags
- link names to other notes in the vault
- number of links
- Meta-Stats.
- Count how often each tag is used. Create a tag frequency bar chart.
- Count how many words are written over time. Create a vault activity chart.
- Install
Python3
andpip install matplotlib openai
. - Copy-paste the link to your vault's directory and optionally your OpenAI key into the script.
- Run the script!
It is that easy.
Give this repo a โญ and let me know right here if you have any ideas or reach out to me on X @QuentinWach.