Giter Club home page Giter Club logo

doc-bot's Introduction

Doc-Bot

Doc-Bot is an interactive document chatbot built using the Streamlit framework and the OpenAI API. Its main purpose is to help users understand their documents by summarizing them and allowing them to ask questions about their content.

Screenshot

Installation

To run Doc-Bot, you need to have Python 3 installed on your machine, as well as the following packages:

  • streamlit
  • datetime
  • streamlit_chat
  • llama_index

You can install these packages using the following command:

 pip install -r requirements.txt

Usage

To use Doc-Bot, you need to run the doc_bot.py file in your terminal or IDE. This will start a Streamlit web application that you can access in your browser at http://localhost:8501.

Once the app is running, you can upload a document in the supported formats (.docx, .doc, or .pdf) by clicking on the "Upload your doc" button. Doc-Bot will then summarize the document and index its content using the GPTSimpleVectorIndex algorithm from the llama_index package.

You can then type a question or query in the input text box and click on the "Send" button to get a response from Doc-Bot. The bot will use the OpenAI API to generate a response based on the indexed content of the document.

Doc-Bot will also display a chat log of all the messages exchanged between the user and the bot, including the time and date of each message.

Credits

Doc-Bot was built by Shashank Vats as a demo project using the Streamlit framework, the OpenAI API, and the llama_index package.

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.