Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.12.0
metadata
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, huggingface_hub, and the Hugging Face Inference API.
π§ 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
- Deployment: Hugging Face Spaces
- Dependencies: None beyond Gradio (no model downloads required)
ποΈ Local Development
To run locally:
pip install gradio
python app.py