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: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,13 +278,21 @@ The result is that usually, your commands will be handled by Hassil/`closest-int
278
278
279
279
Runs one sentence through the matcher and returns a structured response, including the matched intent, the candidate pattern that won, its score, the captured slots, the canonical sentence that (would have been) forwarded to Hassil.
280
280
Optionally, you can actually forward it to Hassil to see what action this would trigger. (The action is not actually triggered though.)
281
+
On a miss, also surfaces a sample of the `name`/`area`/`floor` slot lists so you can immediately see whether entity exposure is wired up.
282
+
Set `debug_top_candidates: true` to additionally get the top 10 raw-scored candidates regardless of threshold to see why your intended candidate did not win.
281
283
282
284
Useful when a sentence unexpectedly doesn't match, slot capture is wrong, and so on.
283
285
284
286
#### `closest_intent.dump_candidates`
285
287
286
288
Debug-logs and returns the full per-language state. This includes every expanded candidate, every expansion rule and its surface forms, every slot list and its values.
287
289
290
+
Options:
291
+
292
+
- `include_builtins: true`: also build and include built-in intent candidates in the dump, even when the integration is configured without them. Best combined with `intent_filter` to keep the output manageable.
- `include_exposure: true`: adds a per-entity breakdown of which states are exposed to Assist. Useful when an entity isn't showing up in `slot_values['name']`, noisy otherwise.
0 commit comments