Spaces:
Sleeping
Sleeping
| title: Thoughtful Test | |
| emoji: 💬 | |
| colorFrom: yellow | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.42.0 | |
| app_file: app.py | |
| pinned: false | |
| hf_oauth: true | |
| hf_oauth_scopes: | |
| - inference-api | |
| short_description: A quick Gradio agent demo | |
| An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index). | |
| # 🧠 Thoughtful AI – Customer Support Agent | |
| A lightweight conversational demo built for the **Thoughtful AI coding exercise**. | |
| This app simulates a simple **customer service AI agent** that answers user questions about Thoughtful AI’s healthcare automation agents — using only **hardcoded responses** and a minimal similarity retriever. | |
| --- | |
| ## 🚀 Overview | |
| The **Thoughtful AI Support Assistant** accepts user questions and returns the most relevant predefined answer. | |
| It uses a lightweight token-based similarity model (no external NLP dependencies) to match user input against five common FAQs. | |
| ### Example Questions | |
| - What does the eligibility verification agent (EVA) do? | |
| - How does the claims processing agent (CAM) work? | |
| - What are the benefits of using Thoughtful AI’s agents? | |
| - Tell me about Thoughtful AI’s agents. | |
| --- | |
| ## 💡 Features | |
| - Conversational chat interface built with **Gradio Blocks**. | |
| - **Hardcoded FAQ retrieval** (no external APIs or models required). | |
| - **Lightweight custom tokenizer** for fuzzy keyword matching. | |
| - Handles unknown inputs gracefully with fallback responses. | |
| - Includes confidence scoring and clear, user-friendly formatting. | |
| --- | |
| ## 🧩 Tech Stack | |
| - **Language:** Python 3.9+ | |
| - **Framework:** [Gradio](https://gradio.app) | |
| - **Deployment:** [Hugging Face Spaces](https://huggingface.co/spaces) | |
| - **Dependencies:** None beyond Gradio (no model downloads required) | |
| --- | |
| ## 🏗️ Local Development | |
| To run locally: | |
| ```bash | |
| pip install gradio | |
| python app.py | |