File size: 1,960 Bytes
342b439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

# 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 -> Dynamic prompting# Aplicaศ›ia LLM Bill Chat

## Project Structure

hf-llm-bill-chat/
โ”‚
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ One_model.py
โ”‚   โ”œโ”€โ”€ Two_models.py
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ user_data/
โ”‚       โ””โ”€โ”€ user_data_724077190.json
โ””โ”€โ”€ logs/
    โ””โ”€โ”€ conversation_logs.json


## Code Implementation - Main Script

- Initialize Streamlit app
- Load user data and display existing bills
- Handle file uploads for new bills
- Maintain chat conversation context
- Leverage user text entities recognition (NER) for dynamic prompting
- Call OpenAI models (GPT-4o and GPT-4o-mini) for responses
- Display responses in two parallel columns
- Log conversation details

## Future Improvements

- Enhance Natural Language Processing (NLP) capabilities for better entity recognition
- Implement user authentication for secure access to billing information
- Add support for more telecom providers and bill formats
- Improve the user interface for better user experience
- Integrate with payment gateways for bill payments

## Conclusion

- The LLM Bill Chat App demonstrates the potential of using Large Language Models for telecom billing assistance.
- The app provides a user-friendly interface for querying billing information and getting insights.
- Future improvements can enhance the app's capabilities and user experience.