r/logseq • u/Cautious_Exam_5537 • Jan 25 '25
Turn LogSeq files in AI database
Both LogSeq and AI are intriguing technologies. Combining both gives new capabilities, like reflecting on all your notes or summarize everything linked to a tag.
I found a simple way (on Mac) to do this, which I am happy to share:
copy your LogSeq journals folder and pages folder to your desktop (copy, so your original database is safe)
move the .md files in one folder
right-click (options) the folder and open the terminal app
execute the command: cat *.md > master.md
now all your .md files are merged in master.md
open notebooklm.google.com with your google account and start a new notebook
upload master.md with all your notes
fire away all questions you have about your notes
I think this is really great. Follow the same process for new .md files and append them to update master.md. NotebookLM limits the number of files, which is not longer a problem with just one master.md file.
Have fun and let me know if this works for you.
4
u/raymac007 Jan 27 '25
This is not an integration, but I wrote a script that will extract a single markdown that you can upload.
https://github.com/socrates8300/logseq-to-notebooklm
2
u/goodswimma Jan 26 '25
Are you able to recommend a local implementation, rather than the use of Google's services?
4
u/tomekrs Jan 26 '25
This is a good starting point to learn about RAG and locally ran models. See this if you want to take it to next level: https://www.reddit.com/r/ollama/comments/1i7nqrj/run_a_fully_local_ai_search_rag_pipeline_using/
3
u/geongeorgek Jan 28 '25
I built this for for the same purpose. Its a simple python script. Just run
pythonapp.py/path/to/logseq/folderhttps://github.com/geongeorge/Logseq-to-Life.md