File size: 1,138 Bytes
93d54ea
d3ca60a
93d54ea
 
 
 
 
a589ede
 
 
 
 
055f0cc
 
9b56a14
 
 
055f0cc
a589ede
 
 
 
 
 
 
 
b0af230
a589ede
 
 
 
 
 
 
 
 
 
 
 
055f0cc
93d54ea
9b56a14
 
 
 
 
 
 
 
 
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
---
title: Trial HMC AIchatbot
emoji: πŸ’¬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
short_description: AI chatbot for HMC helpdesk
---



## Project Structure

The project is organized as follows:
```
/project-root
β”œβ”€β”€ data
β”‚   β”œβ”€β”€ services.csv
β”‚   β”œβ”€β”€ document_embeddings.pkl
β”‚   └── db_update_timestamp.txt
β”‚
β”œβ”€β”€ prompts
β”‚   β”œβ”€β”€ meta_prompt.txt
β”‚   └── chatbot_header_message.txt
β”‚
β”œβ”€β”€ utils
β”‚   β”œβ”€β”€ chatbot.py
β”‚   β”œβ”€β”€ document_retrieval.py
β”‚   β”œβ”€β”€ embedding_generation.py
β”‚   β”œβ”€β”€ file_utils.py
β”‚   └── openai_api.py
β”‚
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ README.md
β”œβ”€β”€ app.py
└── requirements.txt
```

## Description

This is an AI chatbot for the HMC helpdesk, built using the following tools:

- [Gradio](https://gradio.app)
- [huggingface_hub](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index)
- [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index)

It provides an interactive interface for users to interact with the chatbot.