Default semantic adapter that scores similarity using token overlap (Jaccard index).
Summary
Functions
Computes semantic similarity between a hint string and a text string using Jaccard index over tokenized word sets.
Functions
Computes semantic similarity between a hint string and a text string using Jaccard index over tokenized word sets.
Parameters
_entry— The entry struct (unused by this adapter).hint— The keyword or hint string.text— The message text to compare against._opts— Options (unused by this adapter).
Returns
A float between 0.0 and 1.0 representing the token set overlap.