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.
- Host: GitHub
- URL: https://github.com/maciekmalachowski/docs-ai-chatbot
- Owner: maciekmalachowski
- License: mit
- Created: 2024-02-28T20:20:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T12:38:53.000Z (9 months ago)
- Last Synced: 2025-02-08T12:13:00.956Z (4 months ago)
- Topics: chatbot, csv, docker, gpt4all, langchain, mistral-7b, pdf, python, streamlit
- Language: Python
- Homepage:
- Size: 322 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.