{
    "id": 1081617,
    "title": "The Decaf Fruit Tea Problem: Why Every Part of a Request Counts",
    "slug": "product-filters-and-constraints",
    "type": "page",
    "url": "https://teas.co.uk/ai/product-filters-and-constraints/",
    "modified": "2026-11-20T11:06:17+00:00",
    "excerpt": "A filter selects records that meet a condition. A constraint is a requirement the answer must respect. If you ask for decaf green tea, \u201cgreen tea\u201d and\u2026",
    "content_text": "A filter selects records that meet a condition. A constraint is a requirement the answer must respect. If you ask for decaf green tea, \u201cgreen tea\u201d and \u201cdecaffeinated\u201d are two conditions, not just words to scatter through a search result.\n\u201cFruity, no caffeine, under 20p a cup\u201d is three conditions, and the right tea has to meet all three.\nThe shop can check those conditions against recorded product attributes. That gives a clearer basis for an answer than guessing from the product name.\nThe decaf example\nOn 15 November 2026, a read-only search of teas.co.uk with the green-tea and decaf filters returned Tetley Decaf Pure Green Tea and Twinings Pure Green Decaf Tea. Both replies identified their caffeine status as decaffeinated.\nThat does not mean caffeine-free. It also does not turn a fruity green tea into a fruit infusion. The decaf fruit tea story explains why the names can mislead, and decaf versus caffeine-free explains the product distinction.\n\nEssential requirements and preferences\nSome requirements are firm: a budget ceiling, a requested drink type or an instruction to avoid caffeine. Others may be preferences: a familiar brand, a lighter taste or a certain pack format. Which is which depends on what the customer actually said. \u201cNo tea bags\u201d is a firm requirement even if a search tool sometimes treats format as relaxable.\nIf nothing fits, the answer should say so. If an alternative relaxes a preference, it should name the change. It should not quietly replace a requirement with something convenient to sell.\nOn the shop\u2019s own search tools that split is written down rather than guessed. The table shows how each kind of condition is treated by default when an assistant searches the teas.co.uk catalogue for a tea.\n\nCondition in the request\nExample words\nTreated as\nIf nothing matches\n\nKind of drink\u201cfruit tea\u201d, \u201cgreen tea\u201d, \u201crooibos\u201dFirmNever dropped\nCaffeine\u201cdecaf\u201d, \u201cno caffeine at all\u201dFirmNever dropped\nLabels\u201corganic\u201d, \u201cvegan\u201dFirmNever dropped\nPrice limit\u201cunder 20p a cup\u201d, \u201cno more than \u00a34 a box\u201dFirmNever dropped\nTime of day\u201cfor the evening\u201dSoftRelaxed one at a time, and the reply names it\nStrength\u201cstrong\u201d, \u201csomething light\u201dSoftRelaxed one at a time, and the reply names it\nMilk\u201ctakes milk\u201dSoftRelaxed one at a time, and the reply names it\nFormat\u201ctea bags\u201d, \u201cloose leaf\u201dSoft by defaultFirm as soon as the customer says it plainly, such as \u201cno bags\u201d\n\nThe default is a starting point, not a licence to ignore what the customer said. A soft preference becomes firm the moment someone makes it one.\n\nLabels are not evidence for everything\nFacets is another word for the named attributes used in filtering, such as type, format and caffeine status. Typed data means the value has an expected form: a number, a yes/no value or an allowed category, for example.\nThose labels help, but they need accurate records. A blank value is not \u201cno\u201d. \u201cNot claimed\u201d is not \u201cfalse\u201d. A flavour description is a judgement, while a pack quantity is a measurable attribute. A good answer distinguishes them.\nKeep the whole request\nI call a request containing the customer\u2019s situation, budget and requirements Premium Intent. Preserving the whole request helps the answer respect what matters, including whether an extra purchase is needed at all.\nRead intent-led value adding for that final step: explain what helps, what is optional and where to stop spending. The complete payload describes the structured information an assistant can use to build the answer.\n\nEvery condition has to be met\nA request for a tea is usually several conditions joined by \u201cand\u201d. A decaf fruit tea under 20p a cup is fruity and without caffeine and within a budget. A tea that meets two of the three is not the answer, however good it is. It is a near miss.\nThis matters more each month because of how people now shop. More and more people ask an AI assistant to find, compare and buy for them, and they ask in whole sentences. The assistant then has to turn that sentence into a search. If it shortens \u201csomething fruity for the evening, no caffeine, about 20p a cup\u201d to \u201cdecaf fruit tea\u201d, three of the conditions are lost before the shop sees the question. The teas.co.uk Ask service therefore tells visiting software to \u201csend the full human intent, not a keyword summary\u201d. Its public notes say it works best with the full spoken request of about forty to sixty words: the situation, the constraints, the budget and what a good result would look like.\nThat is why an independent tea shop has a chance here. A large catalogue can match the words \u201cmango\u201d and \u201cdecaf\u201d across thousands of lines. A specialist that has written down the kind, the caffeine status and the price per cup of every tea can check each condition and leave out the teas that fail one. When an assistant is choosing which shop to trust for an answer, the shop that gets every condition right is the useful source.\nA worked example: fruity, no caffeine, under 20p a cup\nTake the request from the top of this entry: \u201cfruity, no caffeine, under 20p a cup\u201d. Here is how the conditions sort real teas that teas.co.uk sells. The kind and caffeine columns come from the product records; the last column shows the live price per cup, so the budget check can be repeated by anyone reading this.\n\nTea\nKind\nCaffeine\nFails which condition?\nPrice per cup now\n\nTetley Green Tea with Mango and Passion Fruit, 50 bagsGreen tea with fruit flavoursContains caffeineNo caffeine\nLipton Black Tea with Peach and Mango, 20 bagsBlack tea with fruit flavoursContains caffeineNo caffeine\nTeapigs Yerba Mate, 15 bagsYerba mate, sold beside the herbal infusionsContains caffeineNo caffeine, and it is not a fruit tea\nLoyd Mixed Berries, 40 bagsFruit infusionCaffeine freeNone\nTwinings Peach and Orange, 20 bagsFruit infusionCaffeine freeNone\nTwinings Mango and Strawberry, 20 bagsFruit infusionCaffeine freeNone\n\nThe first three all have fruit, or something close to it, in the name or on the shelf beside the fruit teas. A keyword search would offer at least two of them. All three break the caffeine condition, so a careful answer leaves them out, even though the Tetley pack is good value per cup.\nThe last three pass on kind and caffeine. When this entry was written on 15 November 2026, all three were also well under 20p a cup, so all three meet every condition. A good answer can then help choose between them on the softer points: Loyd Mixed Berries for someone who likes berries and wants the larger box, and the two Twinings packs for someone who named peach or mango.\nThe same request with the budget lowered to 10p a cup would shorten the list, and the answer should say so rather than stretch the limit. Price per cup is worked out from the pack price and the number of bags, as described in cost per cup explained, which is why a 40 bag box and a 20 bag box at similar prices can land on opposite sides of a limit.\nWhen nothing matches every condition\nSometimes no tea in the shop meets every condition. There are only three honest replies: say that nothing matched, relax a soft preference and say which one, or ask the customer a question. Bending a firm condition to find something to sell is not one of them.\nThe shop has been tested on exactly this. On 15 November 2026 an AI assistant was asked to question teas.co.uk cold and mark its replies. One request was for a decaf that still tastes like proper strong tea with milk, in a big box, at about 4p a cup. The shop chose Tetley Decaf English Breakfast, 120 Tea Bags, worked out at about 3.2p a cup on that day, and added that decaf still has a little caffeine in it. It also said that nothing in the shop matched every condition, so it had let the strength go. Decaf, black tea and the budget were kept; the softest preference was relaxed and named.\nThe assistant then asked for a decaf black tea at no more than 2p a cup, which the shop does not sell. The shop sent back an empty list. It did not stretch the price to 3p to have something to show, because a price limit is one of the conditions that never gets dropped. An empty list with a reason is a correct answer to an impossible request.\nWhy a near miss must be labelled as one\nA near miss is a tea that meets most of the request but not all of it. Near misses can be useful. Someone who asks for a strong breakfast tea in a big box may be glad to hear about a smaller box that is otherwise perfect. The rule is that the miss is named, plainly, next to the tea, so the customer decides with the full picture.\n\nRequest\nNear miss\nWhat is wrong with it\nHow a good answer labels it\n\n\"Caffeine free, for the evening\"Tetley Everyday Decaffeinated, 80 bagsDecaf, not caffeine free: a small amount of caffeine remains\"This is decaffeinated, not caffeine free. If you need none at all, choose a rooibos or fruit infusion instead.\"\n\"Fruity, no caffeine\"Tetley Green Tea with Mango and Passion FruitIt is green tea and contains caffeineLeave it out. Caffeine is a firm condition, so this is not an answer.\n\"A strawberry rooibos in a box of 40 or more\"Tropical Sun Rooibos and Strawberry, 20 bagsRight tea and flavour, but a 20 bag box\"This is the only strawberry rooibos, and it comes in 20s. Nothing matched both, so I let the box size go.\"\n\"Fruit tea under 10p a cup\"Teapigs Superfruit, 50 bagsFruity, but over the price limitLeave it out, or mention it only as over budget and say by how much.\n\nTwo kinds of near miss are different. A miss on a soft preference, such as strength or flavour, can be offered with the change named. A miss on a firm condition, such as caffeine or price, is not an answer at all. At most it can be mentioned as information, clearly labelled, if the customer might want to change their own condition. The decision stays with the person who set it.\nLabelling also protects the shop. A customer who buys a decaf believing it to be caffeine free, because nobody told them the difference, has been sold the wrong tea. A customer who was told, and chose it anyway, has been served well.\nSaying no is a condition too\nConditions are not only things a person wants. \"No caffeine at all, not decaf\", \"nothing herbal\" and \"not in bags\" are conditions as well, and they are easy to read the wrong way round.\nThe test on 15 November 2026 found exactly that weakness. Asked in slightly different words, the engine read \"herbal\" and \"decaf\" as things the person wanted when they had just said no to them. One reply led with a tea far over a 4p a cup limit; another found nothing and said it could not answer with confidence rather than guess. Because every reply shows how the shop read the question, the cause was plain, and the fix went live the same morning. Asked again word for word, the questions came back with the right teas, and herbal listed under things to avoid.\nThe lesson for anyone building this is that exclusions need the same care as wishes. The lesson for anyone buying tea is that it is worth saying what you do not want, in plain words.\nA short timeline\n\nDate\nWhat happened\n\nJune 2026The Ask service went live: any AI able to make a web request can send teas.co.uk a sentence in plain English and get matching teas, the facts used and a way to buy.\n6 October 2026Assistants could search, compare and fill a basket through the shop's MCP server, with firm conditions never dropped and soft ones relaxed one at a time and named.\n14 November 2026A search for fruit teas with low or no caffeine returned only infusions recorded as caffeine free.\n15 November 2026The same search with a 20p a cup limit added still returned only caffeine free infusions, Loyd Mixed Berries among them.\n15 November 2026An AI assistant marked the shop's replies. Faults in reading what people did not want were found a little after eight and fixed by a few minutes past nine.\n\nWhat this means when you buy tea\n\nSay every condition. \u201cA fruity tea for the evening, no caffeine at all, about 20p a cup, we like berries\u201d gives an assistant, or the shop, far more to work with than \u201cdecaf fruit tea\u201d.\nSay which ones you will not bend. If the caffeine or the budget is fixed, say so. If the format does not matter, say that too, so there is room to find a match.\nSay what you do not want. \u201cNot decaf, none at all\u201d and \u201cno bags\u201d are conditions. Put them in plain words.\nCheck the caffeine field, not the flavour name. \u201cMango\u201d on the box tells you the flavour. The product record tells you whether it is green tea, black tea or an infusion.\nCompare per cup, not per box. A larger pack often costs more and works out cheaper for each cup.\nLook for the label on any near miss. A good answer tells you which condition was relaxed. If an answer does not say, ask.\n\nCommon questions\nWhy did a search for decaf fruit tea show me a green tea?\nBecause a keyword search matches words, and a fruit-flavoured green tea contains the word \u201cfruit\u201d or the name of one. Its caffeine status is a separate fact. On teas.co.uk the kind of drink and the caffeine status are stored as separate values, so a search that respects conditions can leave it out.\nWhat happens if nothing in the shop fits my budget?\nThe shop says so. A price limit is never dropped, so the reply will be an empty list, or a suggestion that relaxes a softer preference and names it. It will not quietly show you something dearer.\nIs a decaf tea a fair answer to \u201ccaffeine free\u201d?\nOnly if it is labelled as a near miss. Decaffeinated tea keeps a small amount of caffeine, while a rooibos such as Tick Tock Original Rooibos or a fruit infusion never had any. A good answer says which one it is offering.\nCan I ask in my own words?\nYes. The Ask service is built to take a sentence in plain English and return matching teas, the facts used and a way to buy.",
    "contentSignals": "ai-train=yes, search=yes, ai-input=yes",
    "links": {
        "apiCatalog": "https://teas.co.uk/.well-known/api-catalog",
        "llmsTxt": "https://teas.co.uk/llms.txt",
        "mcp": "https://teas.co.uk/mcp",
        "mcpSetupGuides": "https://teas.co.uk/ai/",
        "mcpCard": "https://teas.co.uk/.well-known/mcp/server-card.json",
        "primaryAgenticRouteAuthority": "https://teas.co.uk/.well-known/teas-primary-agentic-route-authority.json"
    }
}