Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: Thoughtful Ai
emoji: π
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
license: mit
short_description: Thoughtful AI Agent
π¬ Thoughtful AI Support Agent
A simple customer support chatbot for Thoughtful AI, built with Gradio and Cohere.
It provides instant answers to common questions using a hardcoded FAQ, and gracefully falls back to Cohere's powerful language model for everything else.
π Live Demo
π§ How It Works
- User asks a question via the chat UI.
- The bot first tries to match the question against a predefined FAQ using fuzzy string matching.
- If a match is found, the bot responds instantly with the corresponding answer.
- If not, the question is sent to Cohere's Command R+ model for a smart fallback response.
β¨ Features
- β Hardcoded customer support FAQ (fast, accurate)
- β Cohere-powered fallback for general questions
- β Friendly conversational chat UI with Gradio
- β Publicly shareable via Hugging Face Spaces
π§Ύ Example Questions
Ask things like:
- βWhat does the eligibility verification agent EVA do?β
- βTell me about Thoughtful AI's agents.β
- βHow does PHIL work?β
For anything else, the bot will ask Cohere.
π¦ Installation
Clone this repo or copy the files into your own environment.
Install dependencies:
pip install -r requirements.txt