<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sinister_chill (Ayush) on Medium]]></title>
        <description><![CDATA[Stories by Sinister_chill (Ayush) on Medium]]></description>
        <link>https://medium.com/@anucbs22?source=rss-b1f10ce8cb94------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VRMDFLJuijWtfsfjtFd9wQ.png</url>
            <title>Stories by Sinister_chill (Ayush) on Medium</title>
            <link>https://medium.com/@anucbs22?source=rss-b1f10ce8cb94------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:23:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anucbs22/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How We Built In-House Eval Tools to Keep Our LLM Prompts in Check]]></title>
            <link>https://medium.com/@anucbs22/how-we-built-in-house-eval-tools-to-keep-our-llm-prompts-in-check-6a30ad593d9a?source=rss-b1f10ce8cb94------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a30ad593d9a</guid>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[eval]]></category>
            <dc:creator><![CDATA[Sinister_chill (Ayush)]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 15:37:39 GMT</pubDate>
            <atom:updated>2025-04-28T13:23:25.091Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Custom LLM Eval Tools Matter</h3><p>Everyone uses LLMs now. Whether it’s answering questions, extracting facts, or generating insights, prompts are everywhere — and growing fast. But with scale comes fragility. A single change in a model’s behavior or prompt format can break entire workflows.</p><p>Most open-source eval tools are too broad or generic to handle the volume, specificity, and complexity of real production-grade LLM use. They often focus on abstract benchmarks or generalized capabilities, but they rarely map directly to the types of domain-specific, prompt-heavy pipelines that many real-world applications rely on. These tools fall short when it comes to context, structure, or integration with real business logic.</p><p>That’s why we built our own set of internal tools at Seezo. These tools help us keep our thousands of prompts in check, validate logic changes before deployment, and even in generation of new prompts. We’ve moved beyond one-off testing and now integrate eval across every stage — from prompt generation to part of our pull request flow. These evals ensure that every prompt behaves as expected and continues to deliver quality responses, even as models evolve.</p><h3>What We do at Seezo and Why We Needed Our Own Custom Eval Tools</h3><p>We are a cybersecurity company, dedicated to making world-class application security (AppSec) accessible to every engineering team. We leverage generative AI to automate security design reviews (SDRs) for every new feature that engineering teams build. This approach provides developers with context-specific security requirements before they start coding, ensuring that security is integrated from the design phase itself.</p><p>At the core of our platform are its prompts and structured workflows. The prompts function as the heart of the system, employing sampling and checking mechanisms that follow a decision tree structure. This design ensures that security assessments are thorough, contextually relevant and consistent. The workflow acts as the brain, orchestrating the sequence of operations — determining what actions to take, what prompt to run and in what order — thereby streamlining the SDR process.</p><p>We mainly use evals in three major ways in our pipeline which we will discuss in detail now.</p><h3>Generating and Validating New Prompts with Structured Workflows</h3><p>The starting point for effective eval is the ability to create meaningful prompts, and that begins with clarity. At Seezo, prompt development starts with structured workflows and scenarios which are used for execution of prompts in desired order and for generation of synthetic documents specific for each prompt respectively. We don’t just write prompts in isolation — we design them with a purpose, aligning them to specific information needs and downstream logic. This is where our mindmap or decision tree-based system comes into play.</p><p>Each mindmap defines what question a prompt is trying to answer, how it fits within a broader sequence, and what its relationship is to other prompts. There’s a decision-tree structure — some prompts act as gateways, while others serve as refinements or follow-ups. This structure allows us to reason about the eval path a document should follow and ensures that we’re covering every relevant angle.</p><p>From these mindmaps, we generate a full set of prompts along with their intended execution flows. For every prompt, we create detailed test scenarios — realistic situations in which the prompt might be activated. These are not abstract examples, but carefully modeled cases based on actual document types and language patterns we encounter in production. These scenarios are then used to generate synthetic documents with specific traits. During generation, we assign expected answers to each document-prompt pair depending on whether the document supports the prompt’s logic.</p><p>Example generated document for a specific scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/0*JFSXgWsM-JYdsUyf" /></figure><p>Once prompts and scenarios are generated, we run eval pipelines to test the prompts against the synthetic documents. The LLM’s answers are compared with the expected ones, and we collect detailed logs on where mismatches occur. These mismatches are then analyzed to revise and improve the prompt wording, structure, or fallback logic. This process not only strengthens individual prompts but also improves our understanding of the model’s behavior.</p><p>This is how results eval results look for generated prompts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dBPe2_3rNMGJdFQN" /></figure><h3>Evaluating Production Performance with Curated Datasets</h3><p>While synthetic documents help cover edge cases and specific scenarios, they can only go so far. That’s why we also maintain a curated set of documents which resembles real world examples called “datasets” that have been annotated with high-confidence ground truth answers. These documents span a wide range of content types and structures and have been manually labeled to ensure accuracy.</p><p>This dataset functions as a living benchmark for our LLM pipelines. We use it to run recurring evals of our entire system, especially after changes to prompts, model versions, or underlying infrastructure. These evals serve multiple purposes. First, they act as a regression test — ensuring that no prompt’s behavior has deteriorated over time. Second, they provide a reality check for how models are handling complex, messy input in the wild. And finally, they help us identify slow drifts in behavior that synthetic tests might not catch.</p><p>Configuration page to choose which eval to run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*ZAvx7E8oAnbCdgax" /></figure><p>These curated documents are invaluable because they mirror the kinds of challenges we see in production. They contain ambiguity, irrelevant sections, formatting oddities, and varying tone — and the prompts are expected to navigate all of that. This makes them excellent test beds for generalization and robustness. By continuously evaluating against this dataset, we’re able to ensure long-term prompt stability and prevent issues before they reach users.</p><h3>Running Consistency Checks on New and Updated Models</h3><p>Whenever a new model is proposed — whether it’s a new release, a fine-tuned variant, or even a minor version bump — we initiate consistency testing. These tests are designed to assess whether the model behaves in a stable, predictable way across a fixed set of prompts and documents.</p><p>We run each prompt multiple times on the same documents and compare the answers. If a prompt begins returning inconsistent results, we do further inspection on it. This helps us identify prompts that are particularly sensitive to model variance or random fluctuations in response generation.</p><p>These tests are vital not just for performance validation but for deployment safety. A model with inconsistent output, no matter how accurate in isolated tests, can wreak havoc on production workflows that depend on consistent outputs. By catching these issues early, we’re able to avoid regressions and make more informed decisions about when and how to upgrade models.</p><p>Example consistency result for a document:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t8P3O9syfyAQ4wuY" /></figure><h3>Bringing It All Together into a Unified Workflow</h3><p>Eval isn’t something we do once — it’s baked into everything we do. From the moment a prompt is proposed, through every iteration, and even post-deployment, eval tools are running in the background. Every pull request that touches prompt logic, model config, or document parsing triggers a re-eval. And when high-priority issues arise, we can run evals on demand across different scenarios to narrow down the cause.</p><p>This integration allows us to maintain a high level of confidence in our LLM-powered systems. Engineers can iterate without fear of regressions and the team can experiment with new workflows knowing they won’t break existing functionality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a30ad593d9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>