--- language: en license: apache-2.0 library_name: transformers tags: - chatbot - caregiver-support - autism-support - conversational - mental-health - support-chatbot pipeline_tag: text-generation widget: - text: "### Question:\nI'm feeling overwhelmed with my autistic child's needs\n### Answer:\n" example_title: "Caregiver Support" - text: "### Question:\nMy child is having a meltdown, what should I do?\n### Answer:\n" example_title: "Meltdown Support" - text: "### Question:\nI'm exhausted and don't know what to do\n### Answer:\n" example_title: "Caregiver Burnout" --- # Rafiki Chatbot 🤗
![Rafiki Logo](https://huggingface.co/Tizzu668/rafiki-chatbot/resolve/main/rafiki-logo.png?download=true) *A supportive AI assistant for caregivers of autistic children* [![HF API](https://img.shields.io/badge/Hugging%20Face-API-yellow)](https://huggingface.co/Tizzu668/rafiki-chatbot) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
## 🌟 Overview Rafiki Chatbot is a fine-tuned language model specifically designed to provide emotional support, practical advice, and compassionate responses to caregivers of autistic children. The name "Rafiki" means "friend" in Swahili, reflecting the chatbot's supportive and friendly nature. ## 🎯 Purpose This model helps caregivers who are: - Feeling overwhelmed or exhausted - Seeking strategies for managing challenging behaviors - Looking for emotional support and validation - Needing practical advice for daily caregiving challenges - Seeking understanding and community ## 🏗️ Model Details - **Base Model:** [microsoft/phi-3-mini-4k-instruct](https://huggingface.co/microsoft/phi-3-mini-4k-instruct) - **Fine-tuning Method:** LoRA (Low-Rank Adaptation) - **Training Data:** Custom caregiver support conversations - **Language:** English - **Context Length:** 4,000 tokens ## 📊 Training Data The model was fine-tuned on a carefully curated dataset including: - Caregiver support conversations - Autism parenting strategies - Emotional support dialogues - Crisis management scenarios - Daily routine optimization tips ## 🚀 Usage ### Using the Inference API ```python from transformers import pipeline # Initialize the chatbot chatbot = pipeline( "text-generation", model="Tizzu668/rafiki-chatbot", device_map="auto" ) # Example conversation prompt = "### Question:\nI'm feeling overwhelmed with my autistic child's constant needs\n### Answer:\n" response = chatbot( prompt, max_new_tokens=128, temperature=0.7, do_sample=True ) print(response[0]['generated_text'])