File size: 1,643 Bytes
ff2d0df
 
 
 
 
 
 
 
 
 
 
966a2b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff2d0df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: S Class Manual
emoji: 👁
colorFrom: yellow
colorTo: yellow
sdk: gradio
sdk_version: 3.19.1
app_file: app.py
pinned: false
license: mit
---
# Mercedes-Benz Owner's Manual Chatbot

This is a chatbot that uses excerpts from the Mercedes-Benz S-Class and EQE owner's manuals to answer questions related to the vehicle's features, functions, and maintenance. The chatbot uses a combination of natural language processing (NLP) and document indexing to provide accurate and relevant responses to user queries.

## Prerequisites

To run this chatbot, you will need to have the following installed on your system:

- Python 3.7 or later
- Gradio
- LangChain
- EdgeGPT
- HuggingFace transformers

## Installation

To install the necessary packages, you can use pip:
```
pip install gradio langchain edgegpt transformers
```

You will also need to download the Mercedes-Benz owner's manual data files and store them in the `data` directory. The files should be organized in subdirectories named after the vehicle model (e.g., `s-class-manual` and `eqe-manual`).

## Usage

To start the chatbot, you can run the `start_ui()` function in the `app.py` file:
```
python app.py
```

This will launch a Gradio interface that allows users to enter a question, select the vehicle model (S-Class or EQE), specify whether to create a new chatbot instance or reuse an existing one, and adjust the number of documents to retrieve from the database.

When the user submits a question, the chatbot retrieves the most relevant excerpts from the owner's manual and uses them to generate a response. The response is then displayed in the Gradio interface.