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

https://github.com/maciekmalachowski/docs-ai-chatbot

πŸ“œAn AI-powered tool that lets you interact with your PDF and CSV files, leveraging GPT4ALL and Mistral 7B for intelligent data insights via a Streamlit interface.
https://github.com/maciekmalachowski/docs-ai-chatbot

chatbot csv docker gpt4all langchain mistral-7b pdf python streamlit

Last synced: 2 months ago
JSON representation

πŸ“œAn AI-powered tool that lets you interact with your PDF and CSV files, leveraging GPT4ALL and Mistral 7B for intelligent data insights via a Streamlit interface.

Awesome Lists containing this project

README

        

πŸ“œDocs-ai-chatbot

## Table of Contents

- [First look](https://github.com/maciekmalachowski/Docs-ai-chatbot#first-look)
- [Installation](https://github.com/maciekmalachowski/Docs-ai-chatbot#installation)
- [Model](https://github.com/maciekmalachowski/Docs-ai-chatbot#model)
- [App appearance](https://github.com/maciekmalachowski/Docs-ai-chatbot#app-appearance)




First look πŸ‘€

### An application written in `Python` allows us to chat with our *PDF* and *CSV* files.
### By using the LLM `GPT4ALL` module from `Langchain`, we read data from the file. Then the chatbot uses the `Mistral 7B` model to return answers to the questions asked.
### The user interface is based on the open-source `Streamlit` library.


Installation β„Ή

- First of all, clone this repository on your device. Open your shell and paste the following commands:

*URL cloning*
```
git clone https://github.com/maciekmalachowski/Docs-ai-chatbot.git
```
*SSH cloning*
```
git clone [email protected]:maciekmalachowski/Docs-ai-chatbot.git
```

- Then you need to install the requirements contained in ``requirements.txt``.
```
pip install -r requirements.txt
```


- After that run `internal streamlit server` in the repository folder.
```
streamlit run main.py
```
Streamlit will launch the *main.py* file contained in the folder and *automatically* display it in the browser.


Model πŸ“‚

#### Unfortunately, the model is too large to upload to this project, so you have to download it yourself.
#### It is very simple. Just go to the [GPT4ALL](https://docs.gpt4all.io/gpt4all_python/home.html) and choose the model that suits you best.
#### In this project, I am using `mistral-7b-instruct-v0.1.Q4_0.gguf`.
#### Then place it in the `docs/model` folder.

App appearance πŸ”

#### The front page doesn't have much, but that was the idea - to make the application trivially easy to use.

#### After uploading the file and pressing the `Process` button, a window will appear where we can ask questions about the document.

#### Additionally, when you upload a *CSV* file, a table with data from that document will be displayed.

#### As the name of the project suggests, questions and answers are displayed in the form of a chat.