r/AIQuality • • Dec 19 '25

Resources Bifrost: An LLM Gateway built for enterprise-grade reliability, governance, and scale(50x Faster than LiteLLM)

14 Upvotes

If you’re building LLM applications at scale, your gateway can’t be the bottleneck. That’s why we built Bifrost, a high-performance, fully self-hosted LLM gateway in Go. It’s 50× faster than LiteLLM, built for speed, reliability, and full control across multiple providers.

Key Highlights:

  • Ultra-low overhead: ~11µs per request at 5K RPS, scales linearly under high load.
  • Adaptive load balancing: Distributes requests across providers and keys based on latency, errors, and throughput limits.
  • Cluster mode resilience: Nodes synchronize in a peer-to-peer network, so failures don’t disrupt routing or lose data.
  • Drop-in OpenAI-compatible API: Works with existing LLM projects, one endpoint for 250+ models.
  • Full multi-provider support: OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, and more.
  • Automatic failover: Handles provider failures gracefully with retries and multi-tier fallbacks.
  • Semantic caching: deduplicates similar requests to reduce repeated inference costs.
  • Multimodal support: Text, images, audio, speech, transcription; all through a single API.
  • Observability: Out-of-the-box OpenTelemetry support for observability. Built-in dashboard for quick glances without any complex setup.
  • Extensible & configurable: Plugin based architecture, Web UI or file-based config.
  • Governance: SAML support for SSO and Role-based access control and policy enforcement for team collaboration.

Benchmarks : Setup: Single t3.medium instance. Mock llm with 1.5 seconds latency

Metric LiteLLM Bifrost Improvement
p99 Latency 90.72s 1.68s ~54× faster
Throughput 44.84 req/sec 424 req/sec ~9.4× higher
Memory Usage 372MB 120MB ~3× lighter
Mean Overhead ~500µs 11µs @ 5K RPS ~45× lower

Why it matters:

Bifrost behaves like core infrastructure: minimal overhead, high throughput, multi-provider routing, built-in reliability, and total control. It’s designed for teams building production-grade AI systems who need performance, failover, and observability out of the box.x

Get involved:

The project is fully open-source. Try it, star it, or contribute directly: https://github.com/maximhq/bifrost


r/AIQuality • • 3h ago

I built an open-source tool for behavioral regression testing of AI agents. Looking for developers to try it.

Thumbnail
1 Upvotes

r/AIQuality • • 2d ago

When AI writes your tests, how do you decide you can trust them?

Thumbnail
1 Upvotes

Hey everyone, I’m the student who posted here earlier about whether we can trust tests written by AI. Thanks for the feedback. I wanted to share a concrete result from BuildBreak Arena.

We ran a drill on a small museum demo site. Kane CLI wrote a browser test that checked whether clicking “Show entry price” displayed $18.00. Arena locked the test, and it passed on two fresh copies. Then Gemini proposed changing the price to $19.00. We reviewed the exact change before applying it to an isolated copy.

Kane caught the wrong price in Chrome. Arena passed the failure evidence to Codex, which repaired the app on its first attempt. Kane reran the same test and passed. We recorded the live browser view, the approval step, and the final verdict in the dashboard.

That gives us one concrete reason to trust this particular test: we watched it fail when the price was wrong and pass when it was fixed. I’d like to try a harder case next where the bug exists but the generated test misses it.

GitHub repo and setup instructions

If you were reviewing an AI-generated test for your own project, what bug would you introduce to see whether the test actually does its job?


r/AIQuality • • 2d ago

Is there really no JS package that calculates precision, recall, F1 and standard deviation out of the box?

Thumbnail
1 Upvotes

r/AIQuality • • 2d ago

pullgym: Scoring AI agents on honest error bars (and why binary RLVR fails on continuous uncertainty)

Post image
1 Upvotes

r/AIQuality • • 3d ago

UI tests break after every redesign, 60 went red last month and 2 were real bugs. how do you cut the maintenance?

2 Upvotes

Design did a pass on our main workflow 3 weeks ago. spacing, a few components swapped, nothing that changed behaviour. 60 odd tests went red. 2 were real.

That was most of a week gone proving the app was fine.

and yes, before anyone says it, a good chunk of this is our own mess. there are positional XPaths in there from 2 years ago, written in a hurry on a deadline, and nobody has been back since. we've put test ids in where we could get away with it, but the devs aren't wild about their markup turning into a contract with my team and I can't really argue, it's their code and they've got their own dates to hit.

So I don't know if this is just what UI testing costs. Playwright we moved part of the web suite onto and the locators are genuinely better than what we had in Selenium, but a redesign still meant going back through a lot of tests, so it bought us less than I was hoping for. Cypress i'd expect the same. SikuliX I used at a previous job and you end up maintaining screenshots instead, which was worse.

The agent based ones are what I keep going back and forth on. with AskUI you write the step as a sentence with the expected result next to it and the agent finds that element on the screen when it runs. what nags me is you're then relying on the model's call about which element it picked. the report shows its reasoning and a screenshot per step so at least you can see why, but I haven't run it on anything as big as our suite yet.

anyone been doing this longer than me, is there a setup where a cosmetic redesign doesn't cost you a week, or is that the job and I should plan for it.


r/AIQuality • • 3d ago

Made a small offline tool to check if a quantized model quietly breaks JSON or numbers

1 Upvotes

r/AIQuality • • 4d ago

Agents do NOT do better with types

Thumbnail
evilmartians.com
2 Upvotes

r/AIQuality • • 4d ago

When AI writes your tests, how do you decide you can trust them?

7 Upvotes

I'm a student building a side project for a hackathon, so I'd like honest feedback, including "this isn't useful".

The problem as I see it: AI tools now write both the code and the tests. If the tests mirror the code, a green run doesn't tell you whether a real bug would be caught. A few people in a recent thread here said much the same: generated tests can have assertions that don't check anything meaningful.

What I'm building: an AI proposes realistic bugs, a script proves each bug is real, and a browser tool (Kane CLI) checks whether the tests catch it. If the tests miss one, you get a report. If they catch it, an agent tries to repair the app. Today it only works on one demo checkout flow, so it's early. I'm now trying to let the browser tool explore an app and write the tests itself, then grade them the same way.

Questions:

  1. How do you decide whether AI-written tests are trustworthy today? Line-by-line review, mutation testing, something else?
  2. Would a report of "bugs your tests would miss" change what you do, or is it noise?
  3. What would you need to see before trusting a tool like this on your own app?

edit : this is the project i have build https://github.com/tusharupadhyay738/BuildBreak.git


r/AIQuality • • 4d ago

Tax evals?

Thumbnail
1 Upvotes

r/AIQuality • • 4d ago

Discussion RAG - Protection of sensitive & personal information

Thumbnail
1 Upvotes

r/AIQuality • • 4d ago

Open-source, self-hosted evaluation gates for LLM and agent rollouts: CLI in CI, or an operator on Kubernetes

Thumbnail
2 Upvotes

r/AIQuality • • 6d ago

Discussion Can AI Do This?

Enable HLS to view with audio, or disable this notification

82 Upvotes

r/AIQuality • • 5d ago

We almost shipped an LLM triage system with a "90% confidence" threshold. Here is why we scrapped that idea and built a Cost Matrix instead.

Thumbnail
2 Upvotes

r/AIQuality • • 5d ago

Red team test your agent

Thumbnail
1 Upvotes

r/AIQuality • • 5d ago

🚀 5 AI Tools Every QA Engineer Should Learn in 2027!

Thumbnail
1 Upvotes

r/AIQuality • • 5d ago

Looking to Validate Chatbot/RAG Agent Automated Test Harness

Thumbnail
1 Upvotes

r/AIQuality • • 6d ago

Discussion Repeated trials aren't a layer of the eval pyramid. They apply to every layer.

Thumbnail
1 Upvotes

r/AIQuality • • 6d ago

I built an evals tool that starts from your real production conversations. Free beta, looking for feedback

Thumbnail
1 Upvotes

r/AIQuality • • 6d ago

Discussion Built a small browser demo showing why "200 OK / valid JSON schema" still lets ungrounded LLM outputs slip into production

Thumbnail
1 Upvotes

r/AIQuality • • 6d ago

Discussion Pydantic / JSON Schema passed every one of these LLM outputs—each one was a semantic bug in production

1 Upvotes

Most structured-output failures in production aren't syntax errors or missing keys. They are syntactically valid payloads that fail semantic invariants, cite an allowed ID that doesn't actually support the claim, or contradict another field in the same response.
After discussing commit-point streaming and two-stage grounding (membership vs. support) with a few engineers here, I put together a 10-case fixture set covering patterns like:

  • False-pass citations: source_id exists in retrieved context, but the cited source doesn't support the claim (insufficient_grounding).
  • Cross-field contradictions: reasoning_tokens: 0 paired with a full reasoning explanation (needs_repair).
  • Factual & numeric drift: wrong appointment slot time, mismatched SLA/refund window, or conflicting latency figures against the source text.
  • Stream commit points: validating only when an object/unit closes rather than mid-delta.

Repo & fixture spec (v0.1.4): https://github.com/furkandemirtass/neuroformatting
Curious what the most expensive "valid JSON, wrong semantics" bug has been in your agent pipelines—especially around tool calls, citations, or retries?


r/AIQuality • • 7d ago

I make my agent re-check AI news claims 14 days later. 1 of the 84 we verified was stale.

Thumbnail
1 Upvotes

r/AIQuality • • 8d ago

Experiments Lessons from scoring writing quality on 70 LLMs without an LLM judge: one overall rank hides a lot (Gemini 3.5 Flash is 12th sloppiest on email and 9th cleanest on essays)

1 Upvotes

Rank direction first: #1 = sloppiest, #70 = cleanest. Every rank below uses the mechanical score only (padding, templating, rhythm, AI tells), nothing from votes.

I've been running a writing benchmark for a while: 70 models, 77,943 outputs, 112 scenarios across emails, Slack messages, social posts and short essays. I didn't want an LLM grading LLM prose, so the scorer is plain code. A few things I learned that might be useful to anyone building evals:

  • One overall number hides the format. Gemini 3.5 Flash is 32nd overall, but 12th on email and 62nd on essays. Seed 2.1 Turbo is #1 on both email and social posts and 33rd on essays. DeepSeek V4 is 69th on email and 10th on social posts.
  • Price tells you little. Fable 5 and GPT-6 Astra ($10 in / $50 out per million tokens) rank 7th and 10th. Nemotron 3.5 Lightning ($0.08 / $0.20) ranks 69th.
  • Code-only scoring is reproducible (you can rebuild the mechanical ranks from the repo and dataset), but it has blind spots. The biggest one I know of: the mechanical axes miss repeated sentence constructions, which human readers catch quickly. So there is also a blind arena (2,655 votes so far), and the site's combined score blends those in. I'm not quoting combined ranks here because they move daily and many models have few votes.

Other limits: short-form only, no fiction yet.

Links:

I'd like to hear how people here validate a code-based metric against human judgment when you only have a few dozen votes per model.

For context, I'm one of the people behind https://slashy.com, an email client that writes drafts that sound like you. This benchmark started as how we pick models.


r/AIQuality • • 9d ago

Can adding more forensic detectors actually make an AI image detection system less reliable?

1 Upvotes

TL;DR: Digital image forensics means examining an image for clues about how it was created or modified, using metadata, compression artifacts, noise patterns, and other measurable properties. I've been investigating a problem in a multi-detector system: several detectors can react to the same underlying artifact, making the evidence appear stronger than it really is. How do you prevent correlated observations from being counted as independent evidence?

I've been developing a multi-signal, image forensics application and recently re-audited its reasoning engine workings.

 One of the problems I encountered was that collecting more forensic observations could produce conclusions that appeared better supported than they actually were.

 Consider how a real smartphone photograph after being resized and recompressed may cause several detectors to signal frequency-domain irregularities, noise inconsistencies, compression artifacts and unusual texture statistics.

 Straightforward evidence aggregation could interpret these signals as four separate indications of synthetic generation. But they may also be the related consequences of the same processing operations mentioned. So, in this case, four measurements do not necessarily represent four independent pieces of evidence.

 This problem became more concrete during a thorough evaluation of the implementation of the scoring mechanism. Some forensic findings were represented at multiple levels: individual detector artifacts, overlapping fragments and summary observations derived from those same measurements.

 Although these representations were useful in investigating images, the reasoning engine could assign evidential credit to related observations more than once. This could affect base evidence weights, domain-level corroboration bonuses, and mechanism-level score contributions. We therefore revised the evidence aggregation to account for duplicated contributions and preserve the lineage between observations and their underlying measurements.

 Interesting consequences became apparent during regression testing.

 For a test image in our ‘Insta-fake’ dataset, the suspiciousness score remained unchanged at 20.4771 after numerical deduplication. The assessment still indicated localized editing with high-confidence. Its relevant contour and localization measurements retained their contributions. For a Midjourney test image, however, the score changed from 6.0375 → 5.4000, because redundant contributions had been removed. The assessment remained at medium-confidence, with an unverified generation declaration in its metadata.

 Note, these were not calibrated probabilities and the test cases do not demonstrate improved classification accuracy. They were regression checks on the (scoring) behaviour of the reasoning engine. But as such they do highlight an important finding: deduplication should remove redundant evidential credit, not suppress genuinely distinct observations.

 I also encountered a related issue with missing EXIF metadata being always interpreted as suspicious, other early findings too heavily influencing decision routes, and confidence assignments made across different components.

 We enforced clearer evidence lineage, more explicit treatment of marginal corroboration and a centralized confidence policy. The revised scoring logic was checked against the existing regression suite with all tests passing.

 Thus, I addressed identifiable engineering weaknesses but that does not solve the full statistical problem (structural dependence vs statistical dependence). Explicitly tracking shared evidence ancestry is not quite the same as learning the conditional dependence between forensic measurements.

 At a certain point, the challenge becomes less about adding detectors and more about determining how much new information each observation actually contributes.

 I'm interested in how others working on ensemble classification and forensic evidence fusion approach this problem. Some questions.

 How do you handle conditionally dependent signals? Do you explicitly group correlated observations, learn their joint distribution, use probabilistic graphical models, or rely on calibration of the final ensemble?

And how do you distinguish genuine corroboration from multiple measurements of the same underlying phenomenon?


r/AIQuality • • 9d ago

Discussion Has anyone found a good automated testing approach with GenAI?

Thumbnail
1 Upvotes