LLM app with RAG to chat with PDF in just 30 lines of Python Code. The app uses Retrieval Augmented Generation (RAG) to provide accurate answers to questions based on the content of the uploaded PDF.
- Upload a PDF document
- Ask questions about the content of the PDF
- Get accurate answers using RAG and the selected LLM
- Clone the GitHub repository
git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
cd awesome-llm-apps/chat_with_X_tutorials/chat_with_pdf
- Install the required dependencies
pip install -r requirements.txt
- Get your OpenAI API Key
- Sign up for an OpenAI account (or the LLM provider of your choice) and obtain your API key.
- Run the Streamlit App
streamlit run chat_pdf.py