You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blogs/series-6-ai-app-features/6.2-dotnet-ai-hr-assistant.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Generic chatbots answer generic questions. What makes an AI assistant useful in
6
6
7
7
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.
8
8
9
-

9
+

10
10
11
11
📖 **Tutorial Repository:**[AngularNetTutorial on GitHub](https://github.com/workcontrolgit/AngularNetTutorial)
12
12
@@ -50,6 +50,8 @@ This is the classic **hallucination problem**: LLMs generate plausible-sounding
50
50
51
51
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.
52
52
53
+

54
+
53
55
---
54
56
55
57
## 💡 The Solution
@@ -274,6 +276,8 @@ dotnet run
274
276
275
277
Open Swagger at `https://localhost:44378/swagger` and find **POST /api/v1/ai/hr-insight**.
276
278
279
+

280
+
277
281
Try these questions:
278
282
279
283
```json
@@ -305,6 +309,8 @@ Try these questions:
305
309
}
306
310
```
307
311
312
+

313
+
308
314
**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.
0 commit comments