r/AIQuality • u/Noe_Achache • 12h ago
r/AIQuality • u/dinkinflika0 • Dec 19 '25
Resources Bifrost: An LLM Gateway built for enterprise-grade reliability, governance, and scale(50x Faster than LiteLLM)
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 • u/skele9 • 18h ago
Our finance agent's first draft always reads fine. The fact-checking agent found 5 wrong figures in it.
reddit.comr/AIQuality • u/ocd_coder • 22h ago
Constraints are great for agents
I loved the code that was generated when I introduced a strict set of linting rules and wondered what could be done to enforce code styles that could not be statically checked.
JEV seemed like a good evaluation model to use. So that's what I did. I created rulebook to define the type of rules that can't be checked by a linter.
Define your rules, thresholds, and hook it up to your CI, precommit, or just as a sanity check and watch it guide your agent to the code that you want it to produce.
Any feedback would be greatly appreciated.
P.S you need access to JEV. I use opencode GO
r/AIQuality • u/spydersy • 23h ago
Built Something Cool A Python package for a visual report of your RAG chunking, fully offline and framework-agnostic
r/AIQuality • u/mehdiweb • 1d ago
Question Claude max for $29 instead of $200 ... seriously how are they doing this?
i got a Claude max account from a reseller for essentially nothing compared to what I used to pay . It works flawless. since 3 months No issues yet i paid only for 1 month . Now I can't stop thinking about their business model. If resellers can sell it this cheap and still profit, how are they acquiring these accounts at scale?
r/AIQuality • u/Rain6fish • 1d ago
When a Record Has No Word for "Unknown", an Empty Value Will Say "Everything Is Fine"
Something happened recently that I want to start with.
We fixed a defect: four different kinds of "nothing" were collapsed into a single switch, so the readings couldn't tell "by design" from "broken". Then we moved on to the next thing. The day after that new field landed, a reader pointed at it in a comment, named the same defect again, and wrote down what to do about it.
This isn't the same bug coming back. It's the same class of bug growing back in the place where we thought we had learned it.
This piece is about one thing: when a record has no slot for "unknown", "unknown" reads as "known" — and specifically as the strongest statement that field can make.
1. Four kinds of "nothing", one switch
Background first.
When the AI writes a record, we keep a snapshot of what it looked like before and after. Revocation needs to know where to go back to.
The trouble was in "we couldn't capture the after-snapshot". There are at least four reasons that happens:
- no captor was wired at all — an optional piece by design
- the entity didn't resolve, and the fallback data was empty too
- the entity resolved but the row is gone — an anomaly
- the capture threw — an error
The first two are what the design chose. The last two are something went wrong.
We had one boolean field for all of it. Four reasons, one switch.
So when someone asked "why are these snapshots empty", there was no answer: you couldn't tell by design from broken. The worse part is the direction. That switch defaults to false, which reads as "the snapshot is fine".
"Nothing" is not one value, it is four different values. Collapsing them into one boolean lets the strongest reading answer for all of them.
We split it into four causes, each stored and readable on its own. While splitting it we also found that two of the four names we had first proposed didn't belong in that class at all. One lives on a different path (the table consulted before the write), and the other is a mechanism rather than a cause. So the four that landed are not the four we started with.
2. The next day, in the field we had just written
With that fixed, we moved to the next thing: before a revoke, record which members this attempt intends to compare.
The promise matters here. Before the revoke it's a promise; after it, an actual. Only the difference between them lets you say "a member I promised to compare turned out not to be comparable". The implementation put a column on the group's root row to hold that difference. If this attempt found no difference, the column is written empty.
That looked fine. Then someone wrote this in a comment:
A per-reason column sits on the member row and gets rewritten by whichever revoke attempt ran last, so a second attempt erases the first attempt's broken promise. Append-only keeps them apart.
He's right, and it's slightly worse than he put it.
When the attempt finds no difference, that column is written empty. And that empty means two things at once: "the last comparison found no difference", and "this row was never revoked at all". So:
- the first revoke found "promised, but couldn't compare" — recorded
- the second revoke went fine — and wrote over the first attempt's record with an empty value
- reading that row later: empty. You can't tell "there was once a broken promise", and you can't tell "it was cleared"
A retry that succeeds erases the earlier attempt's failure record.
To be fair to ourselves: that clearing is deliberate. The reasoning is in the design record from when it landed — a stale difference shouldn't outlive the comparison that produced it. The reasoning isn't wrong. What's wrong is that the empty value had no second meaning available.
Then we changed it to what he described.
One row per attempt that reached the comparison, instead of one shared cell. The two readings are separated where they are written: this row is either "a difference was found" or "checked, and there was none". So:
- a later attempt no longer erases an earlier one — it writes its own row
- an empty history (no attempt ever reached the comparison) and "checked, clean" are no longer the same reading
- the old rule — a stale difference shouldn't outlive the comparison that produced it — was withdrawn. It was wrong about using one cell for two things, not about keeping old records
The old column wasn't dropped. It's still read, as a legacy entry marked "written at a time we can't know". Deleting it would erase exactly the evidence this whole argument was about.
3. One place in the same system got it right
Both of the above are "no slot for unknown". But one place in the same system does have a slot.
When a revoke goes out to an external system, all we can do is send the request; the terminal state is on their side. Their 2xx only proves the request arrived, not that they undid anything. So that row doesn't write "revoked". It writes "compensation requested, outcome unknown" — a dedicated reading.
The effect is immediate: nobody misreads it as done. The interface says plainly that the result is with the target system. No gloss needed.
So this isn't impossible. It's a question of whether you noticed that "unknown" needed a slot. Give it one and it stays put. Don't, and it falls into the strongest reading available.
4. Why it's hard
It's hard because the default is silent.
Every field decides for you, and it always picks the cheapest reading:
- a null value reads as "no such item"
- an empty collection reads as "no difference"
falsereads as "not marked", and from there as "fine"
Those readings are correct almost every time. The problem is the rest: when "nothing" and "unknown" share a value, you have a field that lies — and it stays quiet while doing it, until somebody acts on it and gets "everything is fine" on your behalf.
Worse: fixing one instance doesn't remove the class — including while fixing it.
Here's something that happened inside that fix. Once "no difference" had its own reading, there was still a function whose empty return meant two things: everything really was compared, and there was nothing to promise in the first place (with no captor wired, "compare" isn't defined). Writing "checked, clean" is right for the first. Writing it for the second would vouch for a check that never ran.
We nearly did. What we changed it to: nothing was promised, so no row is written.
That's why the entry points for this class are every "nothing" there is. Fix one, and it waits for you in the line of code where you write the fix.
5. A check you can run yourself
Don't start with "is my record complete". Start with something more basic:
List every value in your system that means "none / unknown / empty", and ask of each: what does it read as?
Anything that carries two meanings at once is a potential misreport. Three common shapes:
| Shape | It also means |
|---|---|
| a null value | "no such item" / "looked, found none" / "never looked" |
| an empty collection | "genuinely none" / "couldn't read it out" |
false / a default | "not marked" / "marked as no" |
The test is simple: when this value is empty, can a reader still say why it's empty? If not, the field is guessing on their behalf.
Closing
This kind of problem is hard to find because it doesn't throw. The system runs, the interface renders, and one cell quietly says something untrue.
And the place it shows up most is the place you just fixed — because that's when you're busy already knowing how to do it.
Where we stand: we know the pattern now, and we've fixed two instances — the second one's shape came from the reader. We have not done a systematic pass: how many of those three shapes are in our record layer, and what each one reads as, is not a list we have.
So this one doesn't close on a conclusion. Run the check against your own system and you'll likely find a few. On our side, we only know we haven't finished looking.
Drafted with an AI assistant. The system, the positions and the mistakes are mine.
r/AIQuality • u/Timely_Air9430 • 1d ago
Discussion AI writes most of my app's code. What should my tests be based on?
reddit.comr/AIQuality • u/abenko83 • 2d ago
Discussion Why running an AI agent test once is mathematically meaningless
If you test traditional software once and the assertion passes, it passes. If you test an AI agent once and it passes, you have learned almost nothing.
On a 1/1 green test run, the 95% Wilson confidence lower bound is just 20.7%. A workflow that fails 30% of the time in production still passes on the first try 7 times out of 10.
And in multi-step agents, a single "green" output often hides real production bugs:
- Two orders, one intent: A write tool times out on the client after the server already processed it. The agent sees no error, retries, and silently creates a duplicate order.
- 200 OK with an empty
[]payload: A lookup tool swallows an upstream error and returns[]. The agent treats "no error" as "done" and writes a confident answer built on nothing. - Activity without progress: An agent loops through tool calls for hours without changing the actual goal state—every step counter says it's working while burning tokens.
- Silent reasoning exhaustion: A reasoning model burns its entire token budget thinking and returns empty text (
finish_reason: "length"), looking like a provider outage.
When teams ship agents with tool calls, a single-run final-text check misses all four:
- Blocker gates (write idempotency + read-back, explicit
ok | empty | error | unknowntool statuses, Zod schemas) need 100% deterministic passes on every PR. - Capability gates need multi-run sampling (N ≥ 3 to 5) gated on the 95% Wilson lower bound, not a lucky 1/1 pass.
How is your team currently deciding whether an agent change is "good enough" to deploy?
Are you asserting on the tool trajectory and running multi-sample evals in CI, or still relying on local vibe checks?
Thanks in advance for any hints and best practices. Much appreciated.
r/AIQuality • u/dasmekt • 2d ago
How many free credits do AI 3D generators give, and what do they get you?
I have often found free credits confusing, because the number alone does not tell you very much. One tool may give you a few generous generations, while another may give you more, but each one may use credits differently depending on the size or the settings you choose. In my experience, the better question is what a single credit actually produces, and whether that result feels usable after a little cleanup. I try to test with a simple object first, so I can see how the mesh looks, how the texture sits, and whether the export opens cleanly. Generation is only a starting point, so retopology and mesh repair are often part of the process anyway, and that can affect how far the free allowance goes. I tried Tripo Studio on a small test and focused on the quality of one result, rather than counting how many tries I had. It is worth checking the current plan page for each tool, since allowances can change. I try to note how a generation felt, because a memory of the first few tries can help me decide whether the free allowance was useful. What did your free credits actually get you, and what did you learn from that first test?
r/AIQuality • u/Ok-Buyer-9421 • 2d ago
I'm starting to think AI quality assurance needs less AI
Instead of asking an LLM whether an entire output is correct, I've been experimenting with breaking quality requirements into independently testable assertions.
Take a customer support response:
- Does it contain the required information?
- Does it reference a valid order?
- Does it make an unauthorized promise?
- Does it misrepresent the company's refund policy?
Some checks are deterministic. Others require semantic judgment, but not necessarily a general-purpose LLM.
I've been experimenting with Jev, a specialized decision model, for those narrower judgments while building Agentests.
What I find interesting is that each assertion can have its own passing and failing examples. You can measure its accuracy independently and detect regressions when switching models.
Rather than trusting an AI to evaluate another AI, I'd rather build a system where every judgment is independently testable.
The objective isn't smarter evaluation. It's more measurable evaluation.
r/AIQuality • u/Ok-Buyer-9421 • 4d ago
Discussion CI passed, but the coding agents still broke rules
I audited the last 50 merged PRs in Prefect against its AGENTS.md. Results: 4 PRs violated at least one engineering rule. All 4 passed CI.
What interested me was that roughly 97.6% of checks could be settled using glob and grep, without making a model call. The remaining checks required semantic judgments.
My co-founder and I are building Agentests, an open-source framework that turns written rules into executable checks.
https://github.com/feuersteiner/agentests - I'm building Agentests, an open-source framework that turns written rules into executable checks.
I'm exploring how to make these checks reliable across different models, without introducing another expensive LLM-as-a-judge layer.
Would love some feedback from people working on AI reliability and evals :)
r/AIQuality • u/Low-Cut-528 • 4d ago
I built an open-source tool for behavioral regression testing of AI agents. Looking for developers to try it.
r/AIQuality • u/Both-Software2549 • 6d ago
When AI writes your tests, how do you decide you can trust them?
reddit.comHey 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 • u/Frequent-Crow7621 • 7d ago
Is there really no JS package that calculates precision, recall, F1 and standard deviation out of the box?
reddit.comr/AIQuality • u/ResidentAcceptable44 • 7d ago
pullgym: Scoring AI agents on honest error bars (and why binary RLVR fails on continuous uncertainty)
r/AIQuality • u/Prestigious_Key8955 • 8d ago
UI tests break after every redesign, 60 went red last month and 2 were real bugs. how do you cut the maintenance?
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 • u/Worldly-Knowledge-90 • 8d ago
Made a small offline tool to check if a quantized model quietly breaks JSON or numbers
r/AIQuality • u/Both-Software2549 • 9d ago
When AI writes your tests, how do you decide you can trust them?
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:
- How do you decide whether AI-written tests are trustworthy today? Line-by-line review, mutation testing, something else?
- Would a report of "bugs your tests would miss" change what you do, or is it noise?
- 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 • u/no-schedule-200 • 9d ago
Discussion RAG - Protection of sensitive & personal information
r/AIQuality • u/Evalsi-dev • 9d ago
Open-source, self-hosted evaluation gates for LLM and agent rollouts: CLI in CI, or an operator on Kubernetes
