thoughtful_test / README.md
csmith715's picture
Initial commit
e223a00

A newer version of the Gradio SDK is available: 6.12.0

Upgrade
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