File size: 2,069 Bytes
f7f78a2
 
 
 
 
 
 
a034ebc
f7f78a2
 
 
 
 
 
 
 
 
 
 
342b439
f7f78a2
342b439
f7f78a2
342b439
f7f78a2
 
 
 
342b439
f7f78a2
 
 
342b439
 
 
 
 
f7f78a2
342b439
 
f7f78a2
342b439
 
 
f7f78a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
title: Llm Bill Chat
emoji: ๐Ÿฅธ๐Ÿงฎ
colorFrom: indigo
colorTo: red
sdk: streamlit
sdk_version: 1.41.1
app_file: One_model.py
pinned: false
license: apache-2.0
short_description: 'LLM app '
---

# LLM Bill Chat App

This project is a proof of concept for a chat application utilizing a Large Language Model (LLM) to assist users with their telecom billing inquiries. The application is built using Python and Streamlit, providing an interactive web interface for users to engage with.

## Features

- Maintain chat conversation context (history)
- Allow users to query their billing information
- Compare the last bills and provide insights
- Respond exclusively with the user's own billing information
- Augment the prompt instructions with user's text recognized entities - NER.
- Save user information and conversation history

## Project Structure


llm-bill-chat-app
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ chat
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ context.py
โ”‚   โ”‚   โ”œโ”€โ”€ bill_comparison.py
โ”‚   โ”‚   โ”œโ”€โ”€ user_info.py
โ”‚   โ”‚   โ””โ”€โ”€ conversation.py
โ”‚   โ””โ”€โ”€ utils
โ”‚       โ””โ”€โ”€ __init__.py 
โ”œโ”€โ”€ bill.py        # Streamlit app
initialization for utils module
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md


## Installation

1. Clone the repository:
   ```
   git remote add origin https://github.com/serbantica/llm-bill-chat.git
   cd llm-chat-app
   ```

2. Create and activate a virtual environment (Windows example):
   ```
   python -m venv .venv .venv\Scrips\activate
   ```

3. Install the required dependencies:
   ```
   pip install -r requirements.txt
   ```

## Usage

To run the application, execute the following command:
```
streamlit run bill.py
```

Open your web browser and navigate to `http://localhost:8501` to interact with the chat application.

## Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

## License

This project is licensed under the MIT License. See the LICENSE file for more details.