This repository contains a Proof of Concept (PoC) for a Q&A chatbot. The bot is designed to extract and answer questions from information found in local PDF files. It leverages the GPT API, Langchain, and a Gradio frontend.
For a deeper understanding of how Q&A bots function across various types of documents, we highly recommend reading How do domain-specific chatbots work? An Overview of Retrieval Augmented Generation (RAG)
├── figs
│
├── dev_nbs
│ └── pdf.ipynb
│
├── src
│ ├── custom_chatbot.py
│ └── custom_files.py
│
├── app.py # gradio app
│
└── README.md
git clone https://github.com/Leroy-Seafood-Group/fish-my-pdfs.git
cd fish-my-pdfs
pip install -r requirements.txt
See best practices for API key safety: https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
Launch the Gradio application
python app.py
Run the application directly in the notebook