{"id":34897147,"url":"https://github.com/cameronrye/clarissabot","last_synced_at":"2026-04-06T08:31:23.110Z","repository":{"id":330026781,"uuid":"1118543614","full_name":"cameronrye/clarissabot","owner":"cameronrye","description":"Clarissa - NHTSA Vehicle Safety Assistant. Get vehicle safety information, recalls, and complaints powered by AI.","archived":false,"fork":false,"pushed_at":"2025-12-23T03:27:43.000Z","size":70917,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-24T10:37:06.946Z","etag":null,"topics":["ai-assistant","csharp","dotnet","nhtsa","pwa","react","recalls","typescript","vehicle-safety"],"latest_commit_sha":null,"homepage":"https://bot.clarissa.run","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cameronrye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T23:19:50.000Z","updated_at":"2025-12-23T03:27:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cameronrye/clarissabot","commit_stats":null,"previous_names":["cameronrye/clarissabot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cameronrye/clarissabot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronrye%2Fclarissabot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronrye%2Fclarissabot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronrye%2Fclarissabot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronrye%2Fclarissabot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cameronrye","download_url":"https://codeload.github.com/cameronrye/clarissabot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cameronrye%2Fclarissabot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-assistant","csharp","dotnet","nhtsa","pwa","react","recalls","typescript","vehicle-safety"],"created_at":"2025-12-26T07:37:35.956Z","updated_at":"2026-04-06T08:31:23.104Z","avatar_url":"https://github.com/cameronrye.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"src/ClarissaBot.Web/public/favicon.svg\" alt=\"Clarissa Logo\" width=\"120\" height=\"120\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/cameronrye/clarissabot/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/cameronrye/clarissabot/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/cameronrye/clarissabot/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/.NET-10.0-purple.svg\" alt=\".NET 10\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/React-19-blue.svg\" alt=\"React 19\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-5.9-blue.svg\" alt=\"TypeScript\"\u003e\n\u003c/p\u003e\n\n# ClarissaBot\n\nClarissaBot is an AI-powered vehicle safety assistant that provides information from the National Highway Traffic Safety Administration (NHTSA). It helps users check vehicle recalls, safety ratings, and consumer complaints using natural language queries.\n\n## Features\n\n- **Recall Lookup** - Check for safety recalls on any vehicle by year, make, and model\n- **Safety Ratings** - Get NCAP crash test ratings (overall, frontal, side, rollover)\n- **Complaint Search** - View consumer complaints and common issues for vehicles\n- **Vehicle Comparison** - Compare safety data between two vehicles\n- **Streaming Responses** - Real-time streaming chat with Server-Sent Events (SSE)\n\n## Architecture\n\n```text\nsrc/\n├── ClarissaBot/\n│   ├── ClarissaBot.Api/       # ASP.NET Core minimal API\n│   ├── ClarissaBot.Core/      # Core agent logic and NHTSA tools\n│   ├── ClarissaBot.Console/   # Interactive console application\n│   └── ClarissaBot.Tests/     # Unit tests\n└── ClarissaBot.Web/           # React + TypeScript frontend\n\ndata/\n├── graders/                   # RFT grader for model fine-tuning\n├── rft_training*.jsonl        # Training data (502 samples)\n├── rft_validation*.jsonl      # Validation data (73 samples)\n└── schema.json                # Structured output schema\n```\n\n## Prerequisites\n\n- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) (or use the included `global.json`)\n- [Node.js 22+](https://nodejs.org/)\n- Azure subscription with Azure OpenAI access\n- Azure CLI authenticated (`az login`)\n\n## Configuration\n\n### Backend\n\nCreate or update `src/ClarissaBot/ClarissaBot.Api/appsettings.json`:\n\n```json\n{\n  \"AzureOpenAI\": {\n    \"Endpoint\": \"https://your-resource.openai.azure.com/\",\n    \"DeploymentName\": \"gpt-4o-mini\"\n  }\n}\n```\n\nOr set environment variables:\n\n- `AZURE_OPENAI_ENDPOINT` - Your Azure OpenAI endpoint URL\n\nThe API uses `DefaultAzureCredential` for authentication, so ensure you're logged in via Azure CLI.\n\n## Running Locally\n\n### Start the Backend API\n\n```bash\ncd src/ClarissaBot/ClarissaBot.Api\ndotnet run\n```\n\nThe API runs at `http://localhost:5080`\n\n### Start the Frontend\n\n```bash\ncd src/ClarissaBot.Web\nnpm install\nnpm run dev\n```\n\nThe frontend runs at `http://localhost:5173`\n\n## API Endpoints\n\n| Method | Endpoint | Description |\n|--------|----------|-------------|\n| POST | `/api/chat/stream` | Streaming chat via SSE |\n| POST | `/api/chat` | Non-streaming chat |\n| DELETE | `/api/chat/{conversationId}` | Clear a conversation |\n| GET | `/api/health` | Health check |\n\n### Chat Request\n\n```json\n{\n  \"message\": \"Are there any recalls on the 2020 Tesla Model 3?\",\n  \"conversationId\": \"optional-conversation-id\"\n}\n```\n\n## NHTSA Tools\n\nThe agent uses Azure OpenAI function calling with the following tools:\n\n- `check_recalls` - Get recalls by vehicle year/make/model\n- `get_complaints` - Get consumer complaints\n- `get_safety_rating` - Get NCAP safety ratings\n- `decode_vin` - Decode VIN to get vehicle details\n- `check_investigations` - Check active NHTSA safety investigations\n\n## Running Tests\n\n```bash\ncd src/ClarissaBot\ndotnet test\n```\n\n## Fine-Tuning (RFT)\n\nThe `data/` directory contains training data and graders for Reinforcement Fine-Tuning on Azure OpenAI.\n\n## License\n\nMIT\n\n---\n\nMade with ❤️ by [Cameron Rye](https://rye.dev)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronrye%2Fclarissabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcameronrye%2Fclarissabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcameronrye%2Fclarissabot/lists"}