
Use BookStack Wiki with NotebookLM
BookStack is a wiki software / web app for knowledge storage. It works well, it is well searchable and supports advanced features like social login and exports.
Using BookStack with LLM (AI chatbots)
Currently however it does not have support for using LLM with its stored wiki knowledge content.
But it is easy to export wiki content from BookStack and use that e.g. with NotebookLM.
It requires multiple steps right now:
Exporting Markdown files from BookStack
Programmers should be lazy, right? So, instead of dveeloping my own solution I have just used this ready-made exporter in Python:
https://github.com/homeylab/bookstack-file-exporter
Once you configure it, it goes over all books and chapters and other text content and saves it to a local drive.
It took around 6 minutes for over 450 pages (books, chapters etc.).
Now, NotebookLM allows for use of 50 sources maximum for free Google accounts and more for Workspace accounts. However, the limit is its clumsy UI where you can only select 50 sources at once.
That’s why I had to use workaround – merge all exported MD files into one.
Merging exported files into one Markdown file
Run this command in Bash on Linux (this should also work on Mac):
for f in *.md; do printf "\n------------------------------------\n# $f\n------------------------------------\n"; cat "$f"; printf "\n"; done > "_brain.md"
This also specifically adds MD heading for each merged file, so it could work better with LLM agents / chatbots.
Use your exported wiki MD file as a source in NotebookLM
Now upload this file or put into your Google Drive and include it as a source from there.
Now you will be able to your wiki knowledge from BookStack in NotebookLM and ask questions about the full content.
I can confirm NotebookLM works fine with one large MD file from BookStack as a source.