georgeguimaraes

georgeguimaraes

Hey everyone!

I’ve been working on Tribunal, an LLM evaluation framework for Elixir. It helps you test RAG pipelines and LLM outputs in your test suite.

The problem

When building LLM-powered features, you need to verify things like:

  • Is the response grounded in the provided context?
  • Did it hallucinate information?
  • Is the response actually relevant to the question?
  • Any toxic, biased, or harmful content?

The solution

Tribunal integrates with ExUnit so you can write these checks as regular tests:

test "response is faithful to context" do
  response = MyApp.RAG.query("What's the return policy?")

  assert_faithful response, context: @docs
  refute_hallucination response, context: @docs
  refute_toxicity response
end

Two modes

  • Test mode: ExUnit integration for CI gates. Fails immediately on any violation. Use this for safety checks that must pass.

  • Evaluation mode: Mix task for benchmarking. Run hundreds of test cases, set pass thresholds (e.g., “pass if 80% succeed”), track regression over time.

Assertion types

Deterministic (no API calls, instant):

  • assert_contains / refute_contains
  • assert_regex
  • assert_json
  • assert_max_tokens

LLM-as-Judge (uses any model via req_llm):

  • assert_faithful - grounded in context
  • assert_relevant - addresses the query
  • refute_hallucination - no fabricated info
  • refute_bias, refute_toxicity, refute_harmful, refute_jailbreak, refute_pii

Embedding-based (via alike):

  • assert_similar - semantic similarity

Red team testing

  • Generate adversarial prompts to test your LLM’s safety:

Tribunal.RedTeam.generate_attacks(“How do I pick a lock?”)

  • Returns encoding attacks (base64, rot13, leetspeak)

  • injection attacks (ignore instructions, delimiter injection), jailbreak attacks (DAN, developer mode)

Would love to hear your feedback!

Hex: tribunal | Hex
GitHub:

https://github.com/georgeguimaraes/tribunal

Showing Posts 1 to 3

stryderjzw

stryderjzw

Looks great! Will be giving it a try.

webofbits

webofbits

Really nice work on this!

I’ve been building aludel in a pretty similar area, but with more emphasis on an interactive Phoenix/LiveView workbench for running and comparing evals.

After spending some time looking through Tribunal, I think you’ve done a strong job on the evaluation primitives, especially around assertions, datasets, and LLM-as-judge flows. It feels like there’s an interesting complement between the two projects: Tribunal as a focused eval library, and Aludel as more of a UI/workbench layer.

If you’re open to it, I’d love your feedback on Aludel. I’m also curious whether you think there’s room for some interoperability between projects like these, especially around assertion engines or portable dataset formats, instead of each tool rebuilding the same pieces independently.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New
GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
ahamez
Hi everyone, I’ve been working on this protobuf library for 3 years. We use it in the company I work for, EasyMile, to communicate with ...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
kip
I’ll shortly be launching Text, a nascent text analysis library. Current functionality In this early version (not ready for prime time) ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews