This is an AI assistant that allows users to search for text in a PDF file and receive a summarized answer to their question. The assistant uses OpenAI's GPT-3.5 turbo and GPT-4 language model to provide a natural language response to the user's query.
- Clone the repository to your local machine.
- Install the required Python packages by running
pip install -r requirements.txt
. - Create a
.env
file and add your OpenAI API key as a variable:API_KEY=<your_api_key>
. - Run the script
pdf_summarizer.py
by runningpython pdf_summarizer.py
.
- Run the
main.py
script. - When prompted, enter the name of the PDF file you want to search.
- Enter your search query.
- The assistant will provide you with a summarized answer to your query.
- Supports PDF files of any length.
- Provides summarized answers to user queries using OpenAI's GPT-3.5 language model.
- Allows users to search for multiple keywords in the same query.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.