georgeguimaraes/alike: Semantic similarity testing for Elixir. Test LLM outputs, chatbots, and NLP in Elixir
github.com·4d
🧪Parser Testing
Preview
Report Post

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...