Highly recommended See https://youtu.be/GTidrAiojbg for an explainer video!
Transform any PDF book into an interactive AI tutor that can answer questions, explain concepts, and help you understand the material better. BookTutor uses advanced language models and RAG (Retrieval-Augmented Generation).
- Python 3.x
- LM Studio running a local LLM locally (default endpoint: http://localhost:1234)
- Install the required dependencies:
pip install -r requirements.txt
- Ensure LM Studio is running a language model locally with the API endpoint available
Start your AI tutor with any PDF book:
python booktutor.py path/to/your/textbook.pdf
The system will:
- Process your book (first run only)
- Create a knowledge base (first run only)
- Save the processed data for faster future access
- Start an interactive tutoring session