Giter Site home page Giter Site logo

data_reader's Introduction

pdConversational PDF Chatbot using OpenAI API and Streamlit This repository contains code to create a conversational PDF chatbot using OpenAI's APIs and Streamlit. The chatbot allows users to upload a PDF file and engage in conversation based on the contents of the PDF.

Prerequisites OpenAI Account: You need to sign up for a free account at OpenAI to obtain API credentials. The free credits provided can be used to create the AI bot. Python Environment: Ensure you have Python installed on your system. It's recommended to use a virtual environment to manage dependencies. Streamlit: Install Streamlit using pip install streamlit. OpenAI Python SDK: Install the OpenAI Python SDK using pip install openai. Files Included app.py: This is the main file containing the Streamlit application code. requirements.txt: This file lists all the Python dependencies required for running the application. Setting Up copy this repository. Navigate to the project directory. Install the required dependencies using pip install -r requirements.txt. Sign up for an account at OpenAI and obtain API key. Replace the placeholder in app.py with your OpenAI API key. Running the Application To run the Streamlit app locally, execute the following command:

Copy code streamlit run app.py This will start the application, and you can access it via your web browser at http://localhost:8501.

Usage Upon launching the app, you'll be presented with an interface to upload a PDF file. Upload the PDF file you want to converse with. Once the file is uploaded, you can start conversing with the chatbot based on the contents of the PDF. The chatbot will respond to your queries and engage in conversation based on the information extracted from the PDF.

ask_pdf

data_reader's People

Contributors

akashkathole7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.