Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,122 +1,127 @@
|
|
| 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 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
```
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
```
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
#
|
| 106 |
-
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 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.
|