‹ BackHN Continuity

Thread

Jeeves. Reasoning improves Jev-like decision models

242 points · 95 comments · nicowaltz

  1. sharih · · focus · HN ↗
    What is the point of this, if it is p90 17 seconds? Might as well use an LLM. The beauty of Jev is that it is dirt cheap and insanely fast.
    1. zihotki · · focus · HN ↗
      I would hold your horses to paint it as dirt cheap.. In my cases for spam detection Luna was 20% cheaper due to prompt caching, although not as fast.
      1. nico · · focus · HN ↗
        For email you can use a classifier

        One way: separately embed sender, recipients, subject, body - then use the embedding vectors as input to a logistic classifier

        With that setup, I get 95% accuracy on email classification, training on 50-100 base examples. The model trains on CPU in under 1min, and it does inference in under 20ms (most of it is running the embeddings, so you can make it faster if you train your own embeddings model)

        Here’s a gist with some sample code: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;nicobrenner&#x2F;056a5aaff5d0119c0032ecdad5029557" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;nicobrenner&#x2F;056a5aaff5d0119c0032ecda...

        That code applies the embeddings + classifier setup on the Banking77 dataset. It gets 93-94% accuracy depending on the embeddings you use (SOTA for this is ~95%, with much bigger and slower models)

        1. zihotki · · focus · HN ↗
          I wonder what numbers you&#x27;d get using another system one model - Contrastive Language Model <a href="https:&#x2F;&#x2F;contrastive-lm.notion.site&#x2F;" rel="nofollow">https:&#x2F;&#x2F;contrastive-lm.notion.site&#x2F;

          That model scales very well with quantities of requests.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.