https://github.com/ujj/obsidian-notes-meets-openai
Using OpenAI embeddings to connect book notes in an Obsidian vault
https://github.com/ujj/obsidian-notes-meets-openai
Last synced: 5 months ago
JSON representation
Using OpenAI embeddings to connect book notes in an Obsidian vault
- Host: GitHub
- URL: https://github.com/ujj/obsidian-notes-meets-openai
- Owner: ujj
- Created: 2022-05-30T04:38:53.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T04:41:09.000Z (almost 3 years ago)
- Last Synced: 2024-08-13T07:08:19.833Z (8 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - ujj/obsidian-notes-meets-openai - Using OpenAI embeddings to connect book notes in an Obsidian vault (Python)
README
### Installation
pip install openai
pip install transformers
pip install pandas
### Run
Run the notes_prep.py first with your OpenAI API key and path to your notes folder (or subfolder).
Depending on your note files this will take a bit. Since the OpenAI API have rate limits, I've severely slowed down the execution with sleeps.
Feel free to change it as per your choice.
Make sure you update the output filename.
Once your *embeddings.csv file is ready, you need to run the notes_search.py file with a text value and see what other notes your text connects to.
### Apologies in advance
I was clearly too lazy to make this more useful via command line inputs.
I take it you will do some cool things starting with this.
Good luck!
Detailed blog post at https://infermuse.com/obsidian-notes-meet-openai/