Giter Club home page Giter Club logo

document-chatbot's Introduction

Document-Chatbot

It is a Document Chatbot project using Openai, Langchain and Streamlit.

DocumentGPT - Document ChatBot

DocumentGPT is a simple chatbot developed using Streamlit, OpenAI's GPT-3.5-turbo, and other libraries for document processing. This chatbot allows users to upload documents in PDF format and Docx format, process them, and then engage in a conversation to obtain relevant information from the documents.

Features

  • Document Processing: Supports PDF document processing. You can upload one or multiple PDF files.
  • Text Extraction: Extracts text from PDF files for further processing.
  • Conversational AI: Engage in a conversation with the chatbot to ask questions about the processed documents.
  • OpenAI Integration: Utilizes OpenAI's GPT-3.5-turbo for natural language understanding and generation.

Getting Started

Prerequisites

Make sure you have the following installed:

  • Python 3.x
  • Pip (Python package installer)

Installation

  1. Clone the repository:

    git clone https://github.com/Muhammadzainattiq/Document-Chatbot.git
    cd Document-Chatbot
  2. Install the required Python packages:

    pip install -r requirements.txt

Usage

Run the Streamlit app:

streamlit run document_chatbot.py

The app will open in your default web browser, allowing you to interact with the DocumentGPT chatbot.

How It Works

  1. Upload Documents: Use the file uploader in the sidebar to upload PDF documents.

  2. Process Documents: Click the "Process" button to extract text from the uploaded documents and create a conversation chain for OpenAI.

  3. Ask Questions: Use the chat input box to ask questions about the content of the processed documents.

  4. View Responses: The chatbot will respond to your questions based on the information extracted from the documents.

Additional Information

  • OpenAI API Key: Make sure to add your OpenAI API key in the appropriate place within the code to enable integration with the GPT-3.5-turbo model.
openai_api_key = st.secrets["OPEN_API_KEY"]

Limitations

  • The chatbot currently supports PDF document and Docx processing only.
  • The quality of responses depends on the content and structure of the processed documents.

Contributors

  • [Muhammad Zain Attiq]
  • [Muhammad Haris Tariq]

Feel free to contribute to the project by submitting issues or pull requests.

Acknowledgments

  • Special thanks to OpenAI for providing the GPT-3.5-turbo model.
  • Inspired by the capabilities of language models for document processing and conversational AI.

document-chatbot's People

Contributors

muhammadzainattiq 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.