SyedHasanCronosPMC's picture
Update README.md
c79fae1 verified
---
title: CronosPMC HR Enterprise Chatbot
emoji: πŸ—οΈ
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 5.49.1
python_version: "3.11"
app_file: app.py
pinned: false
short_description: AI-powered HR assistant for CronosPMC
license: mit
---
# CronosPMC HR Enterprise Chatbot
A production-grade Retrieval-Augmented Generation (RAG) chatbot built for **CronosPMC** β€” a Dubai-based construction project management consulting and professional training practice serving GCC clients.
## What it does
Answers HR questions by retrieving relevant passages from four policy documents indexed in Pinecone:
- CronosPMC Employee Handbook (v1)
- CronosPMC Leave Policy (v1)
- CronosPMC Remote Work Policy (v1)
- CronosPMC HR FAQ (v1)
It uses GPT-4o-mini + `text-embedding-3-large`, with a strict guardrail prompt that scopes answers to HR topics only and routes confidential matters to `Info@CronosPMC.com`.
## Architecture
```
User β†’ Gradio UI β†’ LlamaIndex chat_engine β†’ Pinecone (top-k retrieval)
↓
GPT-4o-mini ← retrieved chunks + system prompt
```
## Required Space Secrets
Configure these under **Space Settings β†’ Variables and secrets**:
| Name | Description |
|---|---|
| `OPENAI_API_KEY` | OpenAI API key for the LLM and embeddings |
| `PINECONE_API_KEY` | Pinecone API key (free tier supports this scale) |
## Files
- `app.py` β€” main application (Gradio UI + RAG pipeline)
- `requirements.txt` β€” Python dependencies
- `data/` β€” the four CronosPMC policy PDFs
- `assets/` β€” branding assets (logo, avatar)
## Disclaimer
These policies are internal synthetic templates for demonstration. They do not constitute legal advice and do not override active UAE labour law or any employment contract.
Β© CronosPMC Β· Project Solution Experts