Ask-your-PDFs is a Python application that leverages Retrieval-Augmented Generation (RAG) using LangChain. This application enables users to interactively ask questions about the content of PDF documents and receive informative responses generated based on the retrieved information.

Application Demo
This demo is using open source model (not OpenAI API) and hosted on the free basic CPU machine. So expect below things-
Retrieval-Augmented Generation: Utilizes the power of RAG to enhance the generation of responses by retrieving relevant information from PDF documents.
Interactive Questioning (Chat UI): Users can ask questions in natural language, and the application will provide detailed and contextually relevant answers. Previous questions in the same session will also be visible
Multiple PDFs support : You can upload one or more files and ask questions on them collectively
Open Source LLM support : The demo link above is using the open source LLM for generating the answer
Follow these steps to get started with Ask-your-PDFs:
Clone the Repository:
git clone https://github.com/akarshrajsingh7/Ask-Your-PDFs.git
cd Ask-Your-PDFsInstall Dependencies:
pip install -r requirements.txtRun the Application:
streamlit run app.pyThe application will prompt you to input the path to the PDF document you want to query.
Ask Questions: Once the document is loaded, you can start asking questions in a chat UI with memory of chats in the same session. The application will provide responses based on both generation and retrieval techniques.
We welcome contributions from the community! If you find issues or have ideas for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.