Building a knowledge base ai bot

I have around 25 pdf files and i want to train chatbot using these pdfs. I will ask question based on the pdf files and expecting answer with reference from the pdf files. how can i do that?