semantic-router
semantic-router copied to clipboard
Confining topics to a bin or convex hull as an alternate to routing
This approach involves utilizing a set of non-linear 1-dimensional projections to ascertain the relevance of a given item, aiming to confine it within specific bins or a convex hull. As an alternate to the cosine distance.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.63%. Comparing base (
bad9d46
) to head (c5210e5
).
Additional details and impacted files
@@ Coverage Diff @@
## main #168 +/- ##
=======================================
Coverage 84.63% 84.63%
=======================================
Files 37 37
Lines 1731 1731
=======================================
Hits 1465 1465
Misses 266 266
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Oh, this is really nice, @CP500! I was just now looking into proposing a better way to classify user questions to routes and this looks like a cool idea. Any thoughts, @bruvduroiu and @jamescalam?
@andreped you can also use this method as a scalar scoring/ ranking function if you had a few good and bad examples.