Commit 73651a5
feat: Add GPU preference extraction and filtering from natural language
Add preferred_gpu_type field to DeploymentIntent schema to capture
user's GPU preferences from natural language input.
Changes:
- schema.py: Add preferred_gpu_type field (defaults to 'Any GPU')
- prompts.py: Add GPU extraction rules (H100, H200, A100, L4, B200)
- capacity_planner.py: Filter recommendations by preferred GPU
- app.py: Map preferred_gpu_type to hardware for UI display
Examples:
- 'Chatbot for 30 users' → Hardware: Any GPU (no filter)
- 'Chatbot for 30 users on H100' → Hardware: H100 (filtered)
Signed-off-by: Yuval Luria <yluria@redhat.com>1 parent 9d3a221 commit 73651a5
File tree
4 files changed
+46
-3
lines changed- backend/src
- context_intent
- llm
- recommendation
- ui
4 files changed
+46
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
187 | 203 | | |
188 | 204 | | |
189 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2287 | 2287 | | |
2288 | 2288 | | |
2289 | 2289 | | |
2290 | | - | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2291 | 2295 | | |
2292 | 2296 | | |
2293 | 2297 | | |
| |||
2391 | 2395 | | |
2392 | 2396 | | |
2393 | 2397 | | |
2394 | | - | |
| 2398 | + | |
2395 | 2399 | | |
2396 | | - | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
2397 | 2403 | | |
2398 | 2404 | | |
2399 | 2405 | | |
| 2406 | + | |
| 2407 | + | |
2400 | 2408 | | |
2401 | 2409 | | |
| 2410 | + | |
| 2411 | + | |
2402 | 2412 | | |
2403 | 2413 | | |
2404 | 2414 | | |
| |||
0 commit comments