The question
Brimfox AI Core has a checkerBrimfox · Brimfox AI Core · The Python serviceExplanation checkerTurns down a fixed list of unsafe phrases. It also measures how many keywords an explanation shares with its source material.See it in the Brimfox build for recipe explanationsBrimfox · The serverRecipe explanationsBuilds each explanation from the recipe. A provider writes the text, and the server checks it and keeps a saved copy. If something goes wrong, there is a fallback answer to use instead.See it in the Brimfox build. It gets an explanation and, separately, the source material the explanation should be based on. It marks which parts of the explanation that material supports. It does this with a few rules a reader can follow, not a hidden judgment by an AI model. So what does “supported” mean when the checker says it?
How the check works
The checker splits the explanation into small pieces it calls units. The units are the headline and the fields for fit, taste and texture. The advice on substitutes and the quick takeaways are units too. From the source material, the checker collects every piece of text. Each unit then goes through two rules. The first rule looks for exact phrases from a fixed list. Examples are claims that food treats an illness, and promises that a dish is safe for allergies. A match drops the unit and adds a warning.
The second rule is the keyword count. A unit’s keywords are its words of four characters or more, in lower case. The checker works out what share of them also appear in the source material. It compares that share with a pass mark, which is 0.28, or 28 percent, unless it is set to something else. A unit that clears the pass mark counts as supported.
What it can’t say
The keyword count is the limit. A sentence can reuse the right words and still change the subject or the amount. It can also add or drop a “not” and say the opposite. So “supported” means a unit cleared this count. It does not mean the claim was checked and found true. The phrase list only finds exact matches too. It is not a complete set of food-safety rules. And the checker removes nothing from what Brimfox shows. It only sends back counts of supported and dropped units. The part of the Brimfox server that writes recipe explanations does not call it at the moment.
What still needs testing
Reading the code showed two weak spots in that count. The first is the pass mark. The request modelsBrimfox · Brimfox AI Core · The Python serviceRequest modelsPydantic, a Python tool for checking data, checks the outer shape of each request and the limit of 1 to 20 results. The values inside stay loose.See it in the Brimfox build describe what a request may contain. They check its outer shape but leave the values inside it loose. So the checker turns whatever setting arrives into the pass mark. The second weak spot is a missing field. A field that was left out can be turned into the word None and counted as a unit.
The one test of the checker so far covers an unsafe allergy statement. Tests are still needed for left-out fields, pass marks right at the edge and misleading word overlap. They are also needed for a mix of supported and unsupported units. And they are needed for the web address that runs the check, and for the rule the app uses to accept a result.