- Python 3.9+
- BookStack API token (token id + token secret)
- BookStack URL
- Create a virtual environment
python -m venv .venv
source .venv/bin/activate- Install dependencies
pip install -r requirements.txt- Create a
.envfile (or update it) at the project root:
BOOKSTACK_URL=your_bookstack_url
BOOKSTACK_TOKEN_ID=your_token_id
BOOKSTACK_TOKEN_SECRET=your_token_secretpip install jupyter ipykernel
python -m ipykernel install --user --name chatbot-venv --display-name "Python (chatbot-venv)"
jupyter notebookpython export_pages.pyPDFs will be saved to exports/
Pour un rechargement de base on utilise en moyenne 67 000 tokens soit 1/7 centimes. Une question côut 1/40 centimes (une toute simple).