Skip to content

eagle218/SPRINGS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPRINGS

QA-bot, that answer based on user pdf files data.

How to build? Nothing special was used to build this project. You need only Python and pip installed on your system.

Below is a detailed instruction on how to run the program:

  1. Install Python from the official website. Make sure to install the required version (e.g., Python 3.7 or higher).

  2. Get your OpenAI API key from the official website at https://openai.com/blog/openai-api.

  3. Find or create a .env file in the root directory of this project and add your OpenAI API key: GPT_TOKEN="your_openai_api_key"

  4. Install dependencies by running the following command in your terminal: pip install -r requirements.txt

  5. Run the Python code with one argument, which is the path to your PDF file. Use the following command: python Bot\main.py "path_to_your_pdf_file"

Replace "path_to_your_pdf_file" with the actual path to your PDF file.

Ensure to follow these steps carefully to successfully set up and run the program.

If everything is set up correctly, the bot will work as follows:

  1. Prompt you to enter your query (Please note that the response time may vary depending on the size of the PDF file and the current load on the OpenAI servers. Larger PDF files or higher server loads may result in longer response times. Your patience is appreciated :)")
  2. Provide an answer based on the query input and pdf file data.

Here is a graphical model of how the program works

image

About

QA-bot, that answer based on user pdf files data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages