Skip to content

๐Ÿ“– Creates a directory of obsidian daily notes, complete with a short, AI-generated description.

License

Notifications You must be signed in to change notification settings

joachimbbp/NoteDirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Daily Note Organizer

directory note The Daily Note Organizer is a Python script designed to organize, aggregate, and summarize Obsidian daily notes in a single directory note (see screenshot above). This script currently works reasonably well, but does require some source code modifications (see Usage below). See the Roadmap section for planned functionality and interface improvements.

Usage

Disclaimer

I recommend pausing obsidian sync before running this script and possibly keeping a local backup of all your obsidian files. I have not run into any catastrophic errors using this tool, but it is still in development and safety is not guaranteed.

Instructions

Optional Setup

  • Install and enter the poetry environment for easy dependency management
    • poetry install
    • If in VSCode, select venv:Poetry as the Python interpreter in the command pallette
  • For personalized notation, set the paths on line 95 to your specific machine. This info footer is a bit of a hack to hold us over until the CLI and Obsidian plugin.

Required

  • Navigate to daily_note_org.py and set the following:
    • If you need to regenerate your entire cache, set regenerate_entire_cache to True. Otherwise, keeping it as False should have the program only generate summaries for not-yet-summarized notes.
    • Set max_note_length to the maximum length of note you want summarized. I have set this to 5000 as I had some very large, somewhat nonsensical notes, that took very long to summarize. Feel free to tune to your liking.
    • daily_notes_aggregated should be a daily_notes.md file in your obsidian vault
    • cache_folder should be a directory where you would like to store your cache (I am keeping mine in my local repo)
  • Run daily_note_org.py to generate your notes. This may take a while, but the debug print statements should give you a decent idea of where you are at.

Roadmap

Functionality

  • Add license
  • Split large notes into sections based on their headers first, then along the lines if still necessary
  • Use a separate model to summarize code blocks, integrate this sub-summary into the note summary in human language
  • Cap maximum summary output length
  • Fine-tune model

Interface

  • Set paths, regenerate_entire_cache, max_note_length, and any other tuneable variables as user-settable command line args
  • Integrate into an Obsidian plugin

About

๐Ÿ“– Creates a directory of obsidian daily notes, complete with a short, AI-generated description.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages