An open API service indexing awesome lists of open source software.

https://github.com/balnarendrasapa/doc-chatbot

Streamlit chatbot app that can answer questions based on a pdf. see the readme for more information
https://github.com/balnarendrasapa/doc-chatbot

all-minilm-l6-v2 chatbot embeddings falcon-7b langchain openai openai-api rag streamlit transformers

Last synced: 4 months ago
JSON representation

Streamlit chatbot app that can answer questions based on a pdf. see the readme for more information

Awesome Lists containing this project

README

          

# ChatBot with documents

- Provide a pdf to this chatbot and ask a question. It answers the question based on the pdf.
- A javascript restful api is also implemented. go [here](https://github.com/balnarendrasapa/doc-chatbot-backend)

## Running the app - Method 1

- Intialize a virtual environment. run `python -m venv .venv`
- activate the virtual environment
- Windows - run `.venv/Scripts/activate`
- Linux - run `source .venv/bin/activate`
- Install dependencies from requirements.txt. run `pip install -r requirements.txt` (takes about ~6 minutes)
- Run the streamlit app. run `streamlit run app.py`
- Open `localhost:8501` in browser

## Running the app - Method 2

- Install docker from official website and make sure the docker is running
- run `cd other`
- run `docker-compose up` (takes about ~6 minutes)
- Open `localhost:8501` in browser