Skip to content

Commit ce30f48

Browse files
Add screenshots to blog 6.2: hero fix, dashboard metrics, swagger AI endpoints, hr-insight answer
1 parent 96424bd commit ce30f48

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

blogs/series-6-ai-app-features/6.2-dotnet-ai-hr-assistant.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Generic chatbots answer generic questions. What makes an AI assistant useful in
66

77
This article shows you how to build a data-aware HR assistant that pulls live workforce metrics from the database, injects them into the LLM prompt, and returns answers grounded in your actual data — not hallucinated statistics.
88

9-
![HR Insight page showing a data-grounded Ollama answer — references live department headcounts, execution time shown below reply](../../Tests/AngularNetTutorial-Playwright/screenshots-output/series-6-ai-app-features/ai-hr-insight-with-answer.png)
9+
![HR Insight page showing a data-grounded Ollama answer — references live department headcounts, execution time shown below reply](../../docs/screenshots/series-6-ai-app-features/ai-hr-insight-with-answer.png)
1010

1111
📖 **Tutorial Repository:** [AngularNetTutorial on GitHub](https://github.com/workcontrolgit/AngularNetTutorial)
1212

@@ -50,6 +50,8 @@ This is the classic **hallucination problem**: LLMs generate plausible-sounding
5050

5151
For HR dashboard metrics — totals, distributions, recent hires — direct context injection is the right choice. The data is small (a few dozen lines of text), always current, and exactly what the LLM needs.
5252

53+
![Dashboard showing KPI metric cards — total employees, departments, new hires, and Chart.js charts — the same data injected into the LLM system prompt](../../docs/screenshots/series-6-ai-app-features/dashboard-metrics-charts.png)
54+
5355
---
5456

5557
## 💡 The Solution
@@ -274,6 +276,8 @@ dotnet run
274276

275277
Open Swagger at `https://localhost:44378/swagger` and find **POST /api/v1/ai/hr-insight**.
276278

279+
![Swagger UI AI controller expanded — POST /ai/chat, POST /ai/hr-insight, POST /ai/nl-employee-search](../../docs/screenshots/series-6-ai-app-features/swagger-ai-endpoints.png)
280+
277281
Try these questions:
278282

279283
```json
@@ -305,6 +309,8 @@ Try these questions:
305309
}
306310
```
307311

312+
![HR Insight page showing a data-grounded Ollama answer — references live department headcounts, execution time shown below reply](../../docs/screenshots/series-6-ai-app-features/ai-hr-insight-with-answer.png)
313+
308314
**To test the feature flag** — set `"AiEnabled": false` in `appsettings.json` and restart the API. Both `/ai/chat` and `/ai/hr-insight` return `503 Service Unavailable`. No other endpoints are affected.
309315

310316
---
70.3 KB
Loading
67.8 KB
Loading

0 commit comments

Comments
 (0)