This repo shows a way that works well for me: https://
github.com/karpathy/reade
r3
…
Basically I use epub (not pdf), the code then parses it into text. I usually go chapter by chapter, manually copy paste the chapter text around, get a summary, do a Q&A and read alongside.
Using AI to Process and Summarize EPUB Books Efficiently
By
–