--- 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