Alike 〰️

Semantic similarity testing for Elixir.

Alike lets you test if two sentences convey the same meaning using the expressive wave operator <~>. Perfect for testing LLM outputs, chatbots, NLP pipelines, or any application that generates natural language.

assert "The cat is sleeping" <~> "A feline is taking a nap"

Features

  • Wave operator (<~>) - Beautiful, expressive test assertions
  • Semantic understanding - Detects meaning, not just string matches
  • Contradiction detection - Catches logical contradictions like "The sky is blue" vs "The sky is red"
  • Local models - Runs entirely on your machine, no API keys needed
  • Configurable - Tune thresholds for your use case

Installation

Add alike to your test dependencies in `mix.e…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help