https://bennycheung.github.io/ask-a-book-questions-with-langchain-openai
https://github.com/langchain-ai/langchain
Essentially, you cut the pdf/text file up into chunks, process it to embeddings, then ask the AI questions and it responds with the relevant segments of the book
For the books I love and want to read over and over, physical. For the books I want to read once and maybe reference from time to time, digital all the way. My e-reader makes digital books a breeze to read, and I’m actually at the point where it’s 5GB of storage isn’t enough for my library.