{"id":10495,"date":"2026-10-02T14:50:58","date_gmt":"2026-10-02T12:50:58","guid":{"rendered":"https:\/\/betterqa.co\/?p=10495"},"modified":"2026-10-02T14:50:58","modified_gmt":"2026-10-02T12:50:58","slug":"how-to-test-llm-features","status":"publish","type":"post","link":"https:\/\/betterqa.co\/how-to-test-llm-features\/","title":{"rendered":"How to test an LLM feature: output, cost, speed and prompt injection"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"10495\" class=\"elementor elementor-10495\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0b64a2f elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"0b64a2f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b90690\" data-id=\"7b90690\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-249641e elementor-widget elementor-widget-html\" data-id=\"249641e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Jost:wght@400;600&family=Roboto:wght@300;400&family=JetBrains+Mono:wght@400;500&display=swap\" rel=\"stylesheet\">\n\n<style>\n:root {\n    --purple: #9152DE;\n    --deep: #5F29A1;\n    --blue: #204782;\n    --paper: #DDE9E9;\n    --paper-dark: #c9dada;\n    --ink: #1a1a1a;\n    --ink-light: #4a4a5a;\n    --white: #ffffff;\n}\n\n.bqa-article {\n    font-family: 'Roboto', sans-serif;\n    color: var(--ink);\n    line-height: 1.7;\n    background: var(--paper);\n    position: relative;\n}\n\n.bqa-article::before {\n    content: '';\n    position: fixed;\n    top: 0; left: 0; right: 0; bottom: 0;\n    background-image:\n        linear-gradient(rgba(145, 82, 222, 0.03) 1px, transparent 1px),\n        linear-gradient(90deg, rgba(145, 82, 222, 0.03) 1px, transparent 1px);\n    background-size: 20px 20px;\n    pointer-events: none;\n    z-index: 0;\n}\n\n.bqa-article-section {\n    position: relative;\n    z-index: 1;\n    padding: 60px 24px;\n}\n\n.bqa-article-section.alt-bg {\n    background: rgba(255, 255, 255, 0.5);\n}\n\n.bqa-container {\n    max-width: 900px;\n    margin: 0 auto;\n}\n\n.bqa-section-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.15em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 12px;\n    display: flex;\n    align-items: center;\n    gap: 12px;\n}\n\n.bqa-section-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);\n    max-width: 200px;\n}\n\n.bqa-article h1, .bqa-article h2, .bqa-article h3 {\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    color: var(--ink);\n    margin: 0 0 24px;\n    text-transform: none !important;\n}\n\n.bqa-article h1 { font-size: 2.5rem; line-height: 1.2; }\n.bqa-article h2 { font-size: 1.75rem; margin-top: 48px; }\n.bqa-article h3 { font-size: 1.25rem; margin-top: 32px; color: var(--deep); }\n\n.bqa-article p {\n    margin: 0 0 20px;\n    font-size: 1rem;\n}\n\n.bqa-article a {\n    color: var(--purple);\n    text-decoration: none;\n    border-bottom: 1px solid transparent;\n    transition: border-color 0.2s;\n}\n\n.bqa-article a:hover {\n    border-bottom-color: var(--purple);\n}\n\n.bqa-article .bqa-back-link {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 12px;\n    letter-spacing: 0.05em;\n    text-transform: uppercase;\n    color: var(--ink-light);\n    margin-bottom: 32px;\n    display: inline-block;\n}\n\n.bqa-article .bqa-back-link:hover { color: var(--purple); }\n\n\/* Hero with Sidebar *\/\n.bqa-hero-grid {\n    display: grid;\n    grid-template-columns: 1fr 280px;\n    gap: 48px;\n    align-items: start;\n}\n\n.bqa-hero-sidebar {\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    padding: 24px;\n    position: relative;\n}\n\n.bqa-hero-sidebar::before,\n.bqa-hero-sidebar::after {\n    content: '';\n    position: absolute;\n    width: 12px;\n    height: 12px;\n    border-color: var(--purple);\n    border-style: solid;\n}\n\n.bqa-hero-sidebar::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }\n.bqa-hero-sidebar::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }\n\n.bqa-sidebar-title {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 20px;\n    padding-bottom: 12px;\n    border-bottom: 1px dashed var(--paper-dark);\n}\n\n.bqa-sidebar-item {\n    display: flex;\n    align-items: flex-start;\n    gap: 12px;\n    margin-bottom: 16px;\n}\n\n.bqa-sidebar-item:last-child { margin-bottom: 0; }\n\n.bqa-sidebar-item i {\n    font-size: 14px;\n    margin-top: 3px;\n    flex-shrink: 0;\n}\n\n.bqa-sidebar-item:nth-child(odd) i { color: var(--purple); }\n.bqa-sidebar-item:nth-child(even) i { color: var(--blue); }\n\n.bqa-sidebar-item-label {\n    font-size: 11px;\n    font-family: 'JetBrains Mono', monospace;\n    text-transform: uppercase;\n    letter-spacing: 0.05em;\n    color: var(--ink-light);\n    margin-bottom: 2px;\n}\n\n.bqa-sidebar-item-value {\n    font-size: 14px;\n    color: var(--ink);\n    line-height: 1.4;\n}\n\n\/* Highlight Box *\/\n.bqa-highlight {\n    border-left: 4px solid var(--purple);\n    background: rgba(145, 82, 222, 0.04);\n    padding: 20px 24px;\n    margin: 32px 0;\n    transition: background 0.2s;\n}\n\n.bqa-highlight:hover { background: rgba(145, 82, 222, 0.07); }\n.bqa-highlight p { margin: 0; font-size: 0.95rem; }\n.bqa-highlight strong { color: var(--deep); }\n\n\/* Mistake Number *\/\n.mistake-num {\n    font-family: 'JetBrains Mono', monospace;\n    font-weight: 500;\n    color: var(--purple);\n}\n\n\/* Stats Row *\/\n.bqa-stats-row {\n    display: flex;\n    justify-content: center;\n    gap: 48px;\n    padding: 32px 40px;\n    background: linear-gradient(135deg, var(--deep) 0%, var(--blue) 100%);\n    margin: 32px 0;\n    position: relative;\n    overflow: hidden;\n}\n\n.bqa-stats-row::after {\n    content: '';\n    position: absolute;\n    inset: 0;\n    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);\n    animation: shine 4s ease-in-out infinite;\n}\n\n@keyframes shine {\n    0%, 100% { transform: translateX(-100%); }\n    50% { transform: translateX(100%); }\n}\n\n.bqa-stat {\n    text-align: center;\n    color: #fff;\n}\n\n.bqa-stat-value {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 2rem;\n    font-weight: 500;\n    color: #fff;\n    margin-bottom: 6px;\n}\n\n.bqa-stat-label {\n    font-size: 0.8rem;\n    color: rgba(255, 255, 255, 0.85);\n    text-transform: uppercase;\n    letter-spacing: 0.5px;\n}\n\n.bqa-stat-source {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 0.65rem;\n    color: rgba(255, 255, 255, 0.5);\n    margin-top: 4px;\n}\n\n\/* FAQ Accordion *\/\n.bqa-faq-item {\n    border-bottom: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-item:first-child {\n    border-top: 1px solid var(--paper-dark);\n}\n\n.bqa-faq-question {\n    width: 100%;\n    background: none;\n    border: none;\n    padding: 20px 0;\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    cursor: pointer;\n    text-align: left;\n    font-family: 'Jost', sans-serif;\n    font-size: 1.05rem;\n    font-weight: 600;\n    color: var(--ink);\n    gap: 16px;\n}\n\n.bqa-faq-question:hover { color: var(--purple); }\n\n.bqa-faq-toggle {\n    width: 28px;\n    height: 28px;\n    min-width: 28px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    font-size: 1.2rem;\n    color: var(--purple);\n    transition: transform 0.3s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-toggle { transform: rotate(45deg); }\n\n.bqa-faq-answer {\n    max-height: 0;\n    overflow: hidden;\n    transition: max-height 0.35s ease;\n}\n\n.bqa-faq-item.open .bqa-faq-answer { max-height: 400px; }\n\n.bqa-faq-answer-inner {\n    padding: 0 0 24px;\n    font-size: 0.95rem;\n    color: var(--ink-light);\n    line-height: 1.85;\n}\n\n\/* CTA *\/\n.bqa-cta {\n    background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%);\n    color: #fff;\n    padding: 48px 40px;\n    text-align: center;\n    position: relative;\n    z-index: 1;\n}\n\n.bqa-cta h2 {\n    color: #fff;\n    font-size: 1.6rem;\n    margin-bottom: 12px;\n}\n\n.bqa-cta p {\n    color: rgba(255, 255, 255, 0.9);\n    margin-bottom: 28px;\n}\n\n.bqa-article .bqa-cta-btn {\n    display: inline-block;\n    padding: 14px 32px;\n    background: var(--white);\n    color: var(--deep);\n    font-family: 'Jost', sans-serif;\n    font-weight: 600;\n    font-size: 14px;\n    text-decoration: none;\n    border: none;\n    border-bottom: none;\n    transition: all 0.3s;\n}\n\n.bqa-article .bqa-cta-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n    color: var(--deep);\n    border-bottom: none;\n}\n\n\/* Related Resources *\/\n.bqa-related-label {\n    font-family: 'JetBrains Mono', monospace;\n    font-size: 11px;\n    font-weight: 500;\n    letter-spacing: 0.1em;\n    text-transform: uppercase;\n    color: var(--purple);\n    margin-bottom: 16px;\n}\n\n.bqa-related-links {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 10px;\n}\n\n.bqa-article .bqa-related-link {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    padding: 10px 18px;\n    background: var(--white);\n    border: 1px solid var(--paper-dark);\n    color: var(--ink-light);\n    font-size: 0.875rem;\n    transition: all 0.2s;\n}\n\n.bqa-article .bqa-related-link:hover {\n    border-color: var(--purple);\n    color: var(--purple);\n    border-bottom-color: var(--purple);\n}\n\n.bqa-related-link i {\n    font-size: 11px;\n    color: var(--purple);\n}\n\n\/* Scroll Reveal *\/\n.bqa-reveal {\n    opacity: 0;\n    transform: translateY(16px);\n    transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.bqa-reveal.visible {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n\/* Responsive *\/\n@media (max-width: 768px) {\n    .bqa-hero-grid {\n        grid-template-columns: 1fr;\n        gap: 32px;\n    }\n\n    .bqa-article h1 { font-size: 2rem; }\n    .bqa-article h2 { font-size: 1.4rem; }\n\n    .bqa-stats-row { flex-direction: column; gap: 24px; padding: 32px 24px; }\n    .bqa-stat-value { font-size: 1.75rem; }\n}\n\n@media (max-width: 500px) {\n    .bqa-article-section { padding: 40px 16px; }\n    .bqa-article h1 { font-size: 1.7rem; }\n    .bqa-cta { padding: 36px 24px; }\n    .bqa-stats-row { gap: 20px; padding: 24px 16px; }\n    .bqa-stat-value { font-size: 1.5rem; }\n\n    .bqa-related-links { flex-direction: column; }\n}\n\n@media (max-width: 380px) {\n    .bqa-article h1 { font-size: 1.5rem; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n    .bqa-reveal {\n        opacity: 1;\n        transform: none;\n        transition: none;\n    }\n    .bqa-stats-row::after { animation: none; }\n}\n\n\/* Decision table (drafts) *\/\n.bqa-table-wrap { overflow-x: auto; margin: 24px 0; }\n.bqa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }\n.bqa-table th { background: var(--ink); color: #fff; font-family: 'Jost', sans-serif; font-weight: 600; text-align: left; padding: 12px 14px; }\n.bqa-table td { padding: 12px 14px; border-bottom: 1px solid var(--paper-dark); vertical-align: top; }\n.bqa-table tr:nth-child(even) td { background: rgba(221, 233, 233, 0.35); }\n.bqa-article ol, .bqa-article ul.bqa-list { padding-left: 22px; margin: 16px 0; }\n.bqa-article ol li, .bqa-article ul.bqa-list li { margin-bottom: 8px; }\n@media (max-width: 500px) { .bqa-table { font-size: 0.82rem; } .bqa-table th, .bqa-table td { padding: 10px; } }\n\n\/* Live site: blueprint-article-styles.php toggles .active (capture phase, stops propagation) *\/\n.bqa-faq-item.active .bqa-faq-toggle { transform: rotate(45deg); }\n.bqa-faq-item.active .bqa-faq-answer { max-height: 400px; display: block; }\n.bqa-reveal.revealed { opacity: 1; transform: none; }\n.bqa-article .bqa-reveal { opacity: 1 !important; transform: none !important; }\n.bqa-article .bqa-faq-question { white-space: normal; }\n.bqa-article h1, .bqa-article h2, .bqa-article h3, .bqa-article p, .bqa-article li { text-align: left; }\n.bqa-article .bqa-faq-question > span:first-child { min-width: 0; overflow-wrap: anywhere; }\n<\/style>\n\n\n<div class=\"bqa-article\">\n\n    <!-- Hero -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <a href=\"\/blog\/\" class=\"bqa-back-link\"><i class=\"fa-solid fa-arrow-left\"><\/i> Back to blog<\/a>\n\n            <div class=\"bqa-hero-grid\">\n                <div>\n                    <div class=\"bqa-section-label\">Testing LLM features<\/div>\n                    <h1>How to test an LLM feature: output, cost, speed and prompt injection<\/h1>\n                    <p>A lot of products now ship at least one feature built on a large language model: a support assistant, a summary button, a search box that answers in sentences. Teams that use these models heavily in development often ask us the same thing when they look for QA. Do we need a very particular kind of tester for this, or does ordinary testing still apply?<\/p>\n                    <p>Mostly, ordinary testing still applies, with four checks added on top. You test whether the output is what you expected, what each answer costs, how fast it arrives, and whether someone can talk the feature into doing something it should not. This article walks through each one.<\/p>\n                <\/div>\n\n                <div class=\"bqa-hero-sidebar\">\n                    <div class=\"bqa-sidebar-title\">Article details<\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-comments\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Scope<\/div>\n                            <div class=\"bqa-sidebar-item-value\">LLM features inside a product, not model training<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-user-tie\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Audience<\/div>\n                            <div class=\"bqa-sidebar-item-value\">Product owners, engineering leads, QA leads<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-shield-halved\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Reference<\/div>\n                            <div class=\"bqa-sidebar-item-value\">OWASP Top 10 for LLM Applications<\/div>\n                        <\/div>\n                    <\/div>\n                    <div class=\"bqa-sidebar-item\">\n                        <i class=\"fa-solid fa-star\"><\/i>\n                        <div>\n                            <div class=\"bqa-sidebar-item-label\">Clutch rating<\/div>\n                            <div class=\"bqa-sidebar-item-value\">4.9 \/ 5 from 71 reviews<\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- What changes -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">What changes<\/div>\n            <h2>Why an LLM feature breaks the usual expected result<\/h2>\n            <p>Most software testing rests on a simple contract: given this input, the system returns this output, every time. A language model does not keep that contract. Ask the same question twice and you can get two different, equally reasonable answers. Change a word in the prompt your developers wrote and the tone, length or accuracy of every answer can shift.<\/p>\n            <p>That does not make the feature untestable. It changes what you assert. Instead of checking that the answer matches a fixed string, you check properties of the answer: does it contain the facts it must contain, does it stay inside the topic, does it avoid the things it must never say, does it arrive in the format the rest of the product expects. A tester who has spent years writing precise expected results needs a short adjustment here, not a new career.<\/p>\n            <p>Note the boundary of this article. If you are training or fine-tuning your own model, you also need data quality, bias and drift testing, which we cover in <a href=\"\/ai-and-machine-learning-in-qa\/\">how to test AI systems<\/a>. Here we are talking about the far more common case: a product feature that calls a model someone else trained.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Check 1 -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Check 1<\/div>\n            <h2>Output: is the answer what you expected?<\/h2>\n            <p>Start by building a fixed set of realistic inputs, sometimes called a golden set. Take them from real user questions where you have them, and add the awkward ones: very long inputs, inputs in a second language, questions the feature should refuse, questions that sit right on the edge of its topic. Write down for each one what a good answer must include and what it must not.<\/p>\n            <p>Run that set every time the prompt, the model version or the surrounding code changes. Some of the checks can be automated, such as required fields present, banned phrases absent, answer length inside bounds, valid JSON when the product parses the reply. The rest needs a person reading a sample of answers against the criteria you wrote. That human review is not a weakness of the method. It is the method, because \"is this answer correct and appropriate\" is a judgement.<\/p>\n            <p>Watch especially for confident wrong answers. A model that invents a refund policy your company does not have will phrase it beautifully. Your test criteria should name the facts the answer is allowed to rely on, so an invented one stands out.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Check 2 and 3 -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Checks 2 and 3<\/div>\n            <h2>Cost and speed: the two checks teams forget<\/h2>\n            <p>Every call to a hosted model is billed, usually by the amount of text going in and coming out. That makes cost a functional property of the feature, and it can be tested like one. Measure what a typical request costs and what the worst case costs: the longest document a user can paste, the conversation that runs to fifty turns, the retry loop that fires three times when the provider is slow. Agree a budget per request with the product owner and turn it into a test that fails when a change blows through it.<\/p>\n            <p>Speed belongs next to cost because the two trade against each other. Larger models and longer prompts tend to be slower. Measure the time to the first visible word and the time to the full answer, under normal load and when several users hit the feature at once. Then test what the product does when the model provider is slow or down. A support assistant that leaves the user staring at a spinner for a minute is a defect, even if the eventual answer is perfect. The fallback, whether a timeout message, a cached answer or a hand-off to a human, needs its own test cases.<\/p>\n            <p>These checks are easy to automate and they catch real problems. A prompt change that doubles the instructions sent with every request can pass every output check and still double your monthly bill.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- Check 4 -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">Check 4<\/div>\n            <h2>Prompt injection: SQL injection's new cousin<\/h2>\n            <p>Web applications learned the hard way that user input mixed into a database query can rewrite the query. That is <a href=\"https:\/\/en.wikipedia.org\/wiki\/SQL_injection\" target=\"_blank\" rel=\"noopener nofollow\">SQL injection<\/a>. Language model features have the same structural weakness. Your developers write instructions for the model, the user's text is placed next to them, and the model cannot reliably tell where your instructions end and the user's begin. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Prompt_injection\" target=\"_blank\" rel=\"noopener nofollow\">Prompt injection<\/a> is the attack that exploits that, and it sits first on the <a href=\"https:\/\/genai.owasp.org\/llm-top-10\/\" target=\"_blank\" rel=\"noopener nofollow\">OWASP Top 10 for LLM Applications<\/a>.<\/p>\n            <p>Test it from two directions. Direct injection is a user typing instructions meant to override yours: ignore the rules above, reveal your system prompt, answer as if you were an administrator. Indirect injection is quieter and usually more dangerous: the instructions hide inside content the feature reads on the user's behalf, such as an uploaded document, a web page, an email it summarises or a product review.<\/p>\n            <p>What you are really testing is the damage an injected instruction can do. Can it make the feature reveal data belonging to another user? Can it trigger an action, like sending an email or changing a record, when the feature has access to tools? Can it make the assistant say something your company would have to apologise for? The narrower the feature's permissions, the smaller the answer to each question, which is why the best fix is often in the design rather than the prompt.<\/p>\n            <p>This is the one check where a security specialist earns their place. Our <a href=\"\/security-testing-service\/\">security testing<\/a> team runs injection testing alongside the functional work, and the <a href=\"\/software-testing-services\/ai-security-toolkit\/\">AI Security Toolkit<\/a> correlates automated scanner findings with in-house checks in one pass, so a reported issue comes with the chain that makes it exploitable rather than as an isolated warning.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- What does not change -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">What does not change<\/div>\n            <h2>Everything around the model still needs normal testing<\/h2>\n            <p>The model is usually a small part of the feature. Around it sit a user interface, authentication, permissions, logging, error handling, rate limits and the code that turns the model's reply into something on screen. All of that is tested the way it always was, and in our experience that is where many of the defects in these features actually live. A reply that the front end cannot render, a permission check that runs after the model has already seen private data, a log file that stores every user's question in plain text: none of these are model problems.<\/p>\n            <p>So the honest answer to the buyer's question is this. You do not need a very particular species of tester. You need testers who are comfortable asserting properties instead of exact strings, a security specialist available for the injection work, and someone senior enough to write the acceptance criteria with your product owner. The <a href=\"https:\/\/www.nist.gov\/itl\/ai-risk-management-framework\" target=\"_blank\" rel=\"noopener nofollow\">NIST AI Risk Management Framework<\/a> is a good shared reference if your organisation wants a structure for those conversations.<\/p>\n        <\/div>\n    <\/div>\n\n    <!-- FAQ -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-section-label\">FAQ<\/div>\n            <h2>Frequently asked questions<\/h2>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Do I need a specialist QA engineer to test an AI feature?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Usually not a separate kind of engineer. A good tester who can assert properties of an answer rather than an exact string covers output, cost and speed. Prompt injection is the part where a security specialist should be involved.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>How do you test something that gives a different answer every time?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Test properties instead of exact text. Keep a fixed set of realistic inputs, write down what each answer must and must not contain, automate the checks that can be automated, and have a person review a sample against the written criteria after every change.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>What is prompt injection testing?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        It checks whether text supplied by a user, or hidden in content the feature reads, can override the instructions the developers gave the model. The goal is to find out what an injected instruction could do: leak data, trigger actions, or produce harmful replies.\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div class=\"bqa-faq-item\">\n                <button class=\"bqa-faq-question\" aria-expanded=\"false\">\n                    <span>Should cost be part of testing an LLM feature?<\/span>\n                    <span class=\"bqa-faq-toggle\">+<\/span>\n                <\/button>\n                <div class=\"bqa-faq-answer\">\n                    <div class=\"bqa-faq-answer-inner\">\n                        Yes. Each call is billed by the amount of text in and out, so a prompt change can pass every quality check and still double the running cost. Agree a budget per request and add a test that fails when a change exceeds it.\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- CTA -->\n    <div class=\"bqa-article-section alt-bg bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-cta\">\n                <h2>Shipping a feature built on a language model?<\/h2>\n                <p>We test the feature and everything around it: output, cost, speed, injection and the ordinary code that holds it together. Start with a one-month trial on your own product. If you are not happy, the first two weeks are complimentary.<\/p>\n                <a href=\"\/contact-us\/\" class=\"bqa-cta-btn\">Talk to our team<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Related -->\n    <div class=\"bqa-article-section bqa-reveal\">\n        <div class=\"bqa-container\">\n            <div class=\"bqa-related-label\">Related resources<\/div>\n            <div class=\"bqa-related-links\">\n                <a href=\"\/ai-and-machine-learning-in-qa\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-brain\"><\/i> How to test AI systems<\/a>\n                <a href=\"\/security-testing-service\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-shield-halved\"><\/i> Security testing<\/a>\n                <a href=\"\/software-testing-services\/ai-security-toolkit\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-toolbox\"><\/i> AI Security Toolkit<\/a>\n                <a href=\"\/software-testing-services\/\" class=\"bqa-related-link\"><i class=\"fa-solid fa-flask-vial\"><\/i> BetterQA testing services<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n\n<script>\n\/\/ Scroll reveal\n(function() {\n    var els = document.querySelectorAll('.bqa-reveal');\n    if (!window.IntersectionObserver) {\n        els.forEach(function(el) { el.classList.add('visible'); });\n        return;\n    }\n    var obs = new IntersectionObserver(function(entries) {\n        entries.forEach(function(entry) {\n            if (entry.isIntersecting) {\n                entry.target.classList.add('visible');\n                obs.unobserve(entry.target);\n            }\n        });\n    }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });\n    els.forEach(function(el) { obs.observe(el); });\n})();\n\n\/\/ FAQ: the site script toggles .active; keep aria-expanded in sync with it\n(function() {\n    document.querySelectorAll('.bqa-faq-item').forEach(function(item) {\n        var btn = item.querySelector('.bqa-faq-question');\n        if (!btn || !window.MutationObserver) return;\n        new MutationObserver(function() {\n            btn.setAttribute('aria-expanded', item.classList.contains('active') ? 'true' : 'false');\n        }).observe(item, { attributes: true, attributeFilter: ['class'] });\n    });\n})();\n<\/script>\n\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Testing a feature built on a language model? Check four things: the output, the cost per answer, the speed, and whether prompt injection can hijack it.<\/p>\n","protected":false},"author":1,"featured_media":9093,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1016],"tags":[],"class_list":["post-10495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides-and-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/comments?post=10495"}],"version-history":[{"count":1,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10495\/revisions"}],"predecessor-version":[{"id":10496,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/posts\/10495\/revisions\/10496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media\/9093"}],"wp:attachment":[{"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/media?parent=10495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/categories?post=10495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/betterqa.co\/wp-json\/wp\/v2\/tags?post=10495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}