The PDF Bot is an AI-based tool designed to answer questions based on a provided handbook (PDF). It uses a language model to extract relevant information and provide (almost) accurate answers.
-
Clone the repository:
git clone https://github.com/your-repo/handbook-qa-bot.git cd handbook-qa-bot
-
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Place the handbook PDF in the
data/
directory.
- Define your questions in the
inputs
list inmain.py
. - Run the main script:
python src/main.py
- The answers will be saved in
output/response.json
.
- The language model and other settings can be configured in
utils.py
. - Use the
.env
file to store sensitive information like API keys.
Run tests using:
pytest tests/
Feel free to submit issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.