tryna make a small scale ai ( not really an ai, idk what u can call) which can read books (max 2 ) and give me questions based on it ( i want hands on thats why im making it from scratch)
i have made exactly what u have in mind the method is called Retrieval-Augmented Generation (RAG) . to keep it short, basically what ever books u have u convert them to vectors, the input query will also we converted to vectors. Then u do a simple similarity search between the input query and the vectors of ur book , take the top most matching query ,parse it and there is ur o/p