ClarissaBot is a conversational AI assistant that helps users understand vehicle safety information. Rather than training a model on static data, it uses Azure OpenAI’s function calling to query live NHTSA (National Highway Traffic Safety Administration) data in real-time.
Key Features
- Natural Language Queries: Ask about recalls, safety ratings, or complaints in plain English
- Real-time Data: Queries live NHTSA APIs for current information
- VIN Decoding: Automatically identifies vehicles from VIN numbers
- Streaming Responses: Token-by-token delivery via Server-Sent Events
- Context Awareness: Remembers which vehicles you’re discussing
NHTSA Tools
The agent has access to five specialized tools:
| Tool | Description |
|---|---|
check_recalls | Find recall campaigns affecting a vehicle |
get_complaints | View consumer-reported problems |
get_safety_rating | NCAP crash test ratings (1-5 stars) |
decode_vin | Extract year/make/model from VIN |
check_investigations | Active NHTSA defect investigations |
Technical Architecture
The backend is built with .NET 10 and leverages Azure AI Foundry (Azure OpenAI) for the AI capabilities:
var completion = await _chatClient.CompleteChatStreamingAsync(
messages,
options,
cancellationToken
);
await foreach (var update in completion)
{
foreach (var contentPart in update.ContentUpdate)
{
yield return new ContentChunkEvent(contentPart.Text);
}
}
The React frontend connects via SSE for real-time streaming, showing tool calls and responses as they happen.
Reinforcement Fine-Tuning
The project includes a complete RFT (Reinforcement Fine-Tuning) pipeline with 502 training examples and a Python grader that validates responses against live NHTSA data. This enables training specialized models that stay accurate as vehicle safety data evolves.
Infrastructure
Deployed on Azure Container Apps with infrastructure defined in Bicep:
- Managed Identity: No API keys—RBAC-based authentication to Azure OpenAI
- Auto-scaling: Scale to zero when idle, burst for traffic
- Monitoring: Application Insights for observability
- Container Registry: ACR for image management