SF001-123456 commited on
Commit
b1962a5
Β·
verified Β·
1 Parent(s): fe7a48b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +127 -122
README.md CHANGED
@@ -1,122 +1,127 @@
1
- # HRMS Email Automation & Legal Assistant Chatbot
2
-
3
- ## Overview
4
- This repository contains three separate applications:
5
- 1. **HRMS Email Automation** - A Streamlit-based application for automating HR interview invitation emails.
6
- 2. **Legal Assistant Chatbot** - A Streamlit-based chatbot leveraging Retrieval-Augmented Generation (RAG) for legal assistance.
7
- 3. **Employee Performance & Retention Analytics Dashboard** - A Streamlit-based analytics dashboard providing insights into employee attrition, performance, and retention risk.
8
-
9
- ---
10
-
11
- ## 1️⃣ HRMS Email Automation
12
-
13
- ### Description
14
- The **HRMS Email Automation** tool simplifies the process of sending interview invitations via email. It provides a user-friendly form to collect candidate details and automatically sends emails for both **Online** and **Face-to-Face** interviews.
15
-
16
- ### Features
17
- - Select interview type: **Online** or **Face-to-Face**.
18
- - Input relevant details like candidate name, interview time, PIC (Person in Charge), and contact details.
19
- - Validate form fields to ensure required details are entered.
20
- - Send email automatically using the `EmailAuto` class.
21
- - User-friendly interface built with **Streamlit**.
22
-
23
- ### Installation & Usage
24
- ```sh
25
- # Clone the repository
26
- git clone https://github.com/your-repo.git
27
- cd your-repo
28
-
29
- # Install dependencies
30
- pip install -r requirements.txt
31
-
32
- # Run the Streamlit app
33
- streamlit run email_ui.py
34
- ```
35
-
36
- ### File Structure
37
- ```
38
- β”œβ”€β”€ automation/
39
- β”‚ β”œβ”€β”€ emailAuto.py # Handles email automation
40
- β”œβ”€β”€ email_ui.py # Streamlit UI for HRMS Email Automation
41
- ```
42
-
43
- ---
44
-
45
- ## 2️⃣ Legal Assistant Chatbot
46
-
47
- ### Description
48
- The **Legal Assistant Chatbot** is a chatbot designed to provide legal assistance by retrieving relevant legal context from **Pinecone** and responding based on a fine-tuned **TinyLlama** model.
49
-
50
- ### Features
51
- - Uses **Retrieval-Augmented Generation (RAG)** for context-aware legal responses.
52
- - Retrieves legal documents from **Pinecone** to enhance responses.
53
- - Fine-tuned **TinyLlama-1.1B-Chat** model for legal domain understanding.
54
- - Interactive chat interface built with **Gradio**.
55
- - Supports file uploads (optional).
56
-
57
- ### Installation & Usage
58
- ```sh
59
- # Install dependencies
60
- pip install -r requirements.txt
61
-
62
- # Run the chatbot
63
- python app.py
64
- ```
65
-
66
- ### File Structure
67
- ```
68
- β”œβ”€β”€ backend/
69
- β”‚ β”œβ”€β”€ train.py # Handles model training
70
- β”‚ β”œβ”€β”€ rag.py # Handles Pinecone-based retrieval
71
- β”œβ”€β”€ app.py # Gradio UI for the Legal Assistant Chatbot
72
- ```
73
-
74
- ---
75
-
76
- ## 3️⃣ Employee Performance & Retention Analytics Dashboard
77
-
78
- ### Description
79
- The **Employee Performance & Retention Analytics Dashboard** provides insights into employee attrition, performance, and retention risk. It includes interactive visualizations, ML-based attrition predictions, and employee-specific evaluations.
80
-
81
- ### Features
82
- - **Attrition Prediction:** Uses a RandomForest model to predict employee attrition likelihood.
83
- - **Performance Analysis:** Visualizations of performance rating, salary, and tenure.
84
- - **Retention Analysis:** Highlights risks based on job satisfaction, work-life balance, and promotion history.
85
- - **Employee Evaluation:** Individual employee performance and retention insights.
86
- - **AI-Powered Insights:** Generates department-specific insights based on filtered employee data.
87
-
88
- ### Installation & Usage
89
- ```sh
90
- # Install dependencies
91
- pip install -r requirements.txt
92
-
93
- # Run the Streamlit dashboard
94
- streamlit run dashboard.py
95
- ```
96
-
97
- ### File Structure
98
- ```
99
- β”œβ”€β”€ dashboard.py # Streamlit UI for HR analytics
100
- β”œβ”€β”€ HR-Employee-Attrition.csv # Employee dataset
101
- ```
102
-
103
- ---
104
-
105
- ## Environment Variables
106
- Both applications require environment variables to function correctly. Create a `.env` file and add the following:
107
- ```
108
- PINECONE_API_KEY=your_pinecone_api_key
109
- PINECONE_INDEX=your_pinecone_index
110
- PINECONE_NAMESPACE=your_pinecone_namespace
111
- ```
112
-
113
- ---
114
-
115
- ## Contribution
116
- Feel free to contribute to this project by submitting issues, pull requests, or feature suggestions!
117
-
118
- ---
119
-
120
- ## License
121
- This project is licensed under the MIT License.
122
-
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ title: Chatbotv2
4
+ sdk: gradio
5
+ colorTo: blue
6
+ ---
7
+ # HRMS Email Automation & Legal Assistant Chatbot
8
+
9
+ ## Overview
10
+ This repository contains three separate applications:
11
+ 1. **HRMS Email Automation** - A Streamlit-based application for automating HR interview invitation emails.
12
+ 2. **Legal Assistant Chatbot** - A Streamlit-based chatbot leveraging Retrieval-Augmented Generation (RAG) for legal assistance.
13
+ 3. **Employee Performance & Retention Analytics Dashboard** - A Streamlit-based analytics dashboard providing insights into employee attrition, performance, and retention risk.
14
+
15
+ ---
16
+
17
+ ## 1️⃣ HRMS Email Automation
18
+
19
+ ### Description
20
+ The **HRMS Email Automation** tool simplifies the process of sending interview invitations via email. It provides a user-friendly form to collect candidate details and automatically sends emails for both **Online** and **Face-to-Face** interviews.
21
+
22
+ ### Features
23
+ - Select interview type: **Online** or **Face-to-Face**.
24
+ - Input relevant details like candidate name, interview time, PIC (Person in Charge), and contact details.
25
+ - Validate form fields to ensure required details are entered.
26
+ - Send email automatically using the `EmailAuto` class.
27
+ - User-friendly interface built with **Streamlit**.
28
+
29
+ ### Installation & Usage
30
+ ```sh
31
+ # Clone the repository
32
+ git clone https://github.com/your-repo.git
33
+ cd your-repo
34
+
35
+ # Install dependencies
36
+ pip install -r requirements.txt
37
+
38
+ # Run the Streamlit app
39
+ streamlit run email_ui.py
40
+ ```
41
+
42
+ ### File Structure
43
+ ```
44
+ β”œβ”€β”€ automation/
45
+ β”‚ β”œβ”€β”€ emailAuto.py # Handles email automation
46
+ β”œβ”€β”€ email_ui.py # Streamlit UI for HRMS Email Automation
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 2️⃣ Legal Assistant Chatbot
52
+
53
+ ### Description
54
+ The **Legal Assistant Chatbot** is a chatbot designed to provide legal assistance by retrieving relevant legal context from **Pinecone** and responding based on a fine-tuned **TinyLlama** model.
55
+
56
+ ### Features
57
+ - Uses **Retrieval-Augmented Generation (RAG)** for context-aware legal responses.
58
+ - Retrieves legal documents from **Pinecone** to enhance responses.
59
+ - Fine-tuned **TinyLlama-1.1B-Chat** model for legal domain understanding.
60
+ - Interactive chat interface built with **Gradio**.
61
+ - Supports file uploads (optional).
62
+
63
+ ### Installation & Usage
64
+ ```sh
65
+ # Install dependencies
66
+ pip install -r requirements.txt
67
+
68
+ # Run the chatbot
69
+ python app.py
70
+ ```
71
+
72
+ ### File Structure
73
+ ```
74
+ β”œβ”€β”€ backend/
75
+ β”‚ β”œβ”€β”€ train.py # Handles model training
76
+ β”‚ β”œβ”€β”€ rag.py # Handles Pinecone-based retrieval
77
+ β”œβ”€β”€ app.py # Gradio UI for the Legal Assistant Chatbot
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 3️⃣ Employee Performance & Retention Analytics Dashboard
83
+
84
+ ### Description
85
+ The **Employee Performance & Retention Analytics Dashboard** provides insights into employee attrition, performance, and retention risk. It includes interactive visualizations, ML-based attrition predictions, and employee-specific evaluations.
86
+
87
+ ### Features
88
+ - **Attrition Prediction:** Uses a RandomForest model to predict employee attrition likelihood.
89
+ - **Performance Analysis:** Visualizations of performance rating, salary, and tenure.
90
+ - **Retention Analysis:** Highlights risks based on job satisfaction, work-life balance, and promotion history.
91
+ - **Employee Evaluation:** Individual employee performance and retention insights.
92
+ - **AI-Powered Insights:** Generates department-specific insights based on filtered employee data.
93
+
94
+ ### Installation & Usage
95
+ ```sh
96
+ # Install dependencies
97
+ pip install -r requirements.txt
98
+
99
+ # Run the Streamlit dashboard
100
+ streamlit run dashboard.py
101
+ ```
102
+
103
+ ### File Structure
104
+ ```
105
+ β”œβ”€β”€ dashboard.py # Streamlit UI for HR analytics
106
+ β”œβ”€β”€ HR-Employee-Attrition.csv # Employee dataset
107
+ ```
108
+
109
+ ---
110
+
111
+ ## Environment Variables
112
+ Both applications require environment variables to function correctly. Create a `.env` file and add the following:
113
+ ```
114
+ PINECONE_API_KEY=your_pinecone_api_key
115
+ PINECONE_INDEX=your_pinecone_index
116
+ PINECONE_NAMESPACE=your_pinecone_namespace
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Contribution
122
+ Feel free to contribute to this project by submitting issues, pull requests, or feature suggestions!
123
+
124
+ ---
125
+
126
+ ## License
127
+ This project is licensed under the MIT License.