Skip to content

A RAG chatbot which enables user to chat with their pdf documents

License

Notifications You must be signed in to change notification settings

psrane8/DocChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc-Chat

Description

The goal of this application is to help the user chat with their document and retrieve information more efficiently, thereby enhancing the user's productivity. To provide better data security for the uploaded documents, tempfile library is used to create a temporary directory to deal with the user documents. Being a RAG (Retrieval Augmented Generation) application, this chatbot tends to provide factual information to user queries based on the user-defined data. This project utilizes Llama-index, OpenAI Embeddings, Streamlit, GPT 3.5 turbo LLM, and Python.

Demo of the app

Untitled.video.-.Made.with.Clipchamp.4.mp4

Installation

To run this project, follow these steps:

  1. Clone this repository to your local machine.

    git clone https://github.com/psrane8/DocChat.git
  2. Navigate to the project directory.

    cd DocChat
  3. Install the required dependencies.

    pip install -r requirements.txt

Usage

  1. Ensure you have installed all dependencies as instructed above.

  2. Run the Streamlit app.

    streamlit run application.py
  3. Access the app through your browser at http://localhost:8501

  4. Enter your OpenAI API key or create one and then upload your document from the file selector

  5. Follow the instructions provided in the app to chat with your document and retrieve information efficiently.

Deployment

Doc-Chat has been deployed at https://doc-chat-app.streamlit.app/

Credits

License

This project is licensed under the MIT License.