Skip to content

mk533/PDF_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Chatbot

PDF Chatbot is a Streamlit web application that enables users to upload PDF files, pose questions related to the content of the PDF, and receive responses from a chatbot powered by OpenAI's GPT-3 model.

Features

  • Upload PDF files.
  • Extract text from uploaded PDFs.
  • Pose questions to the chatbot.
  • View answers generated by the chatbot.
  • Post question and answers to Slack channel.

Installation

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the Streamlit app:

    streamlit run app.py
  5. Access the app in your web browser at http://localhost:8501.

Usage

  1. Upload a PDF file using the file uploader in the sidebar.
  2. Once the PDF is uploaded, you can pose questions in the chatbot section.
  3. Click the "Ask" button to receive answers from the chatbot.
  4. The answer will be displayed in the middle of the page.

Environment Variables

Ensure to set the following environment variables in a .env file in the root directory:

  • OPENAI_API_KEY: Your OpenAI API key.
  • SLACK_TOKEN: Your Slack API token.
  • SLACK_CHANNEL_ID: The ID of the Slack channel where you want to post results.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages