<?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 Eva Brunel on Medium]]></title>
        <description><![CDATA[Stories by Eva Brunel on Medium]]></description>
        <link>https://medium.com/@eva.brunel?source=rss-ed20fb521320------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CjvnjHPsV95ZEpoagBZokA.jpeg</url>
            <title>Stories by Eva Brunel on Medium</title>
            <link>https://medium.com/@eva.brunel?source=rss-ed20fb521320------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:05:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eva.brunel/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[Regulatory Consolidation: How RegReview Tackles Compliance Challenges with GenAI Hybrid Techniques]]></title>
            <link>https://medium.com/sia-ai/regulatory-consolidation-how-regreview-tackles-compliance-challenges-with-genai-hybrid-techniques-40903efcaf82?source=rss-ed20fb521320------2</link>
            <guid isPermaLink="false">https://medium.com/p/40903efcaf82</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[regulatory-compliance]]></category>
            <dc:creator><![CDATA[Eva Brunel]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 14:53:39 GMT</pubDate>
            <atom:updated>2026-02-12T14:14:50.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ok9u3wwmzqk01bxwmjg3sg.png" /></figure><p>Compliance teams receive a constant influx of new laws, decrees, and regulatory texts. In France, every JORF (<em>Journal Officiel de la République Française</em>) publication can impact multiple Codes or bodies of law (LODA — Lois, Ordonnances, Décrets, Arrêtés). These texts often contain implicit references that don’t appear in official metadata. A missed change or misunderstood citation can lead to non-compliance risks, legal exposure, or operational inefficiencies.</p><p>At Sia, with our product RegReview, we built a system that retrieves every legal text from legal sources to centralize articles. Now, we need a feature that can detect and link regulatory changes reliably, even when the connections are not spelled out explicitly. In this article, we’ll see such as the business problem, how the technical pipeline works, the business value we observed after deployment, or even the distinctive aspects that make our approach stand out.</p><h3><strong>Why Regulatory Consolidation Is Hard</strong></h3><p>The volume of regulatory change is considerable. New texts appear daily, and each can affect multiple parts of multiple codes. Many dependencies are hidden formulae such as “as defined above,” “subject to paragraph II,” or “the previous article is replaced” create implicit links that are never captured in metadata. Version complexity adds another layer, as articles often exist in multiple forms, with effective dates that may differ from publication dates. Transitional provisions, deferred abrogations, retroactivity, or official corrections (rectificatifs) can all rewrite the legal history in subtle ways.</p><p>While Légifrance does eventually provide a consolidated view of the law, this view often lags publication by around three days. For legal research, that delay might be tolerable but, for compliance teams in fast-moving industries, it can be critical since decisions must be made in near-real-time.</p><p>Until now, this gap was bridged manually. Legal and compliance analysts had to spend hours mapping which provisions were affected, with all the risks of omissions, inconsistencies, and errors. The goal of RegReview was therefore straightforward: reduce manual checks, broaden coverage by surfacing implicit references, and produce traceable, explainable outputs that teams could trust and auditors could verify.</p><h3><strong>From Raw Texts to a Navigable Knowledge Graph — a Hybrid Solution</strong></h3><p>To meet these challenges, we designed a hybrid pipeline that brings together several complementary components. Firstly, we investigated Official APIs such as those from Légifrance. By ingesting authoritative regulatory documents like texts of JORF, articles, Codes, etc…, along with their versions and metadata, we establish a reliable source of truth. We encountered several objects linked to each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdkv_T3SsVFdIYhYdvx6vg.png" /><figcaption><em>Figure 1: Relationships between legal objects manipulated</em></figcaption></figure><ul><li><em>JORFCONT:</em> container for a JORF edition (laws, decrees, orders, circulars, etc.).</li><li><em>JORFTEXT:</em> text published in the JORFCONT (law, decree, order, ordinance, etc.).</li><li><em>JORFARTI:</em> article of a JORFTEXT.</li><li><em>LEGITEXT:</em> consolidated text (Code or LODA).</li><li><em>LEGIARTI:</em> article of a LEGITEXT.</li><li><em>CODE: </em>thematically consolidated corpus (e.g., Civil Code).</li><li><em>LODA:</em> structured laws, ordinances, decrees, or orders (some modify Codes).</li></ul><p>To complement this data foundation, we apply deterministic rules that work directly with version metadata to resolve explicit changes. These rules are highly precise and can reliably capture direct links when an article is replaced or amended. As shown in Figure 2, the system pinpoints the exact modification, where Article 1 amends the “arrêté du 3 juillet 2025.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4D3_7U5gMVE8hn_aDMkC9A.png" /><figcaption><em>Figure 2: Example of modification of LODA</em></figcaption></figure><p>Yet, many links are not captured by metadata since they are not exhaustive.</p><p>That’s where the language model comes in. Its task is carefully constrained to classification and entity linking. It receives two key inputs: a source snippet <em>(the specific text from a new JORF article that implies a modification)</em> and a list of candidates <em>(the potential existing articles targeted by that modification)</em>. The model’s output must then classify the relationship type <em>(amendment, insertion, repeal, replacement, codification, or cross-reference)</em> and identify the specific target article.</p><p>To ensure the output is reliable and auditable, we enforce several strict constraints on the language model’s response:</p><ul><li>Outputs must follow a constrained JSON schema.</li><li>JSON outputs are validated with Pydantic models to guarantee robust serialization and schema stability.</li><li>Evidence spans from the source text are mandatory.</li></ul><p>Then now, the LLMs interprets indirect phrasing like “as defined above,” “replaces the previous article,” “modified according to paragraph X” and automatically establishes the correct connections and it not only detects the link but also classifies it as a modification or not.</p><p>At this point, the heart of the system is the <strong>graph knowledge assembly process</strong>. Every node corresponds to a text or article, and every edge represents a relation bounded in time. We replay modifications in effective-date order, building a time-aware graph. Cascade resolution ensures that modifications propagate correctly through codifications and recodifications.</p><p>Suppose we start with <strong>Order C</strong>, published in the JORF. It says that <em>“Article L.200–1 is repealed.”</em></p><p>To understand the full impact, the system goes backwards in time:</p><ol><li><strong>Order C (JORF)</strong> repeals Article L.200–1.</li><li>Looking back, <strong>Law B</strong> had recodified Article L.100–1 as Article L.200–1.</li><li>Even earlier, <strong>Decree A</strong> had modified Article L.100–1.</li></ol><p>By replaying the chain in reverse, the system shows that the repeal in Order C actually affects Article L.100–1 as it existed before the recodification.</p><p>This way, starting from a single JORF act, the algorithm reconstructs the entire historical chain of changes, ensuring that compliance teams can see both the immediate and the inherited impacts. Now we have complete knowledge graphs which represent modifications due to JORF articles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*N5Esa0ncZ8clcSuOiP-GrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*sbsqwFc_vGNsEwqqAXGwww.jpeg" /><figcaption><em>Figure 3 &amp; 4: Example of knowledge graphs representing modifications from a JORF</em></figcaption></figure><h4><strong>LLM Techniques in Detail</strong></h4><p>Because the texts are in French, all models operate natively in. Prompting strategies include few-shot examples for each link type, with positive and hard negative examples. The model must extract the exact text span justifying the link before it can propose a decision, and it is instructed to prefer official identifiers or abstain when uncertain.</p><p>Hybrid retrieval ensures that the model considers only plausible candidates, with heuristics for disambiguation such as checking code names, article prefixes (L., R., D., A.), and structural context. Outputs are validated against a strict schema, with malformed outputs automatically rejected and retried.</p><p>To minimize hallucinations, we focused on stabilizing the model’s responses. This was achieved by refining our prompt engineering and lowering the model’s temperature. After experimenting with different models, GPT-4o was selected because at the time it offered the best balance of performance and cost for French legal text processing. Its temperature was set to 0.3, keeping enough creativity to capture implicit references while improving consistency across runs.</p><h4>Evaluation Framework and Metrics</h4><p>To evaluate RegReview, we constructed a dataset covering multiple LODA types, and codes, including difficult cases such as deferred abrogations and rectificatifs.</p><p>We measured link extraction by precision, recall, and F1, both for explicit links (deterministic rules) and implicit links (LLM classification). Cascade correctness was tested by verifying whether reconstructed chains matched the ground truth in both order and content. Throughput, error rates, and cost metrics were monitored for scalability.</p><p>Illustrative results are promising. The module achieved precision at almost 90 and recall at 94% to have a F1-Score at 91.5%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*2exRDW0FdqSo3TfBXdLaKQ.png" /><figcaption><em>Figure 5: Confusion matrix</em></figcaption></figure><p>Median detection latency was measured in minutes, not days, providing more than 48 hours of lead time compared to official consolidation. Low-confidence edges represented only 8–12% of the total, and most were resolved positively upon review.</p><p>By testing each component individually, we confirmed that deterministic rules alone offer high precision but limited recall, while LLMs alone capture more links but with higher false positives. The hybrid approach struck the right balance, achieving the best overall F1. Requiring evidence spans proved crucial for auditability, as disabling this guardrail increased false positives significantly.</p><p>Streaming ingestion with Kafka, document storage in MongoDB, versioning, schema validation, and retry mechanisms all ensure, at industrialization level, that the system can handle high throughput, missing data, and inconsistent metadata without breaking down.</p><h3>Business Impact</h3><p>Before deploying the hybrid module in production, we needed to assess its performance in order to quantify the business value it could deliver.</p><p>Tasks that previously took hours of manual review, such as determining whether a new regulation affected existing codes, could now be completed in minutes. Implicit references, which were often missed by metadata-only approaches, were mostly consistently detected.</p><p>At the same time, deterministic rules provided a filtering layer that reduced false positives, cutting down on the noise. Every link was now traceable: users could see whether it was established by rule-based logic or the language model, complete with metadata and version history, which greatly strengthened auditability.</p><p>In audits, compliance teams can now instantly answer questions such as “Which texts have modified this article, and in what order?” The graph model can deliver answers both visually and as structured data.</p><h3>What Makes RegReview Different</h3><p>What sets RegReview apart is the combination of rigor and flexibility. By blending deterministic rules with language models, the system achieves both reliability and coverage. Each link it identifies comes with a clear explanation of its origin, backed by metadata and version history, making the process transparent and defensible in a legal audit.</p><p>The solution is also designed to scale. It can handle increasing volumes of regulatory texts without compromising speed or robustness, thanks to its production architecture. Most importantly, RegReview is not a standalone tool. It is integrated directly into compliance teams’ workflows, delivering insights where they are needed most, without requiring extra dashboards or manual exports.</p><h4>Sources</h4><ul><li>Open Data &amp; LégiFrance API: <a href="https://www.legifrance.gouv.fr/contenu/pied-de-page/open-data-et-api">Open data et API — Légifrance</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40903efcaf82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sia-ai/regulatory-consolidation-how-regreview-tackles-compliance-challenges-with-genai-hybrid-techniques-40903efcaf82">Regulatory Consolidation: How RegReview Tackles Compliance Challenges with GenAI Hybrid Techniques</a> was originally published in <a href="https://medium.com/sia-ai">Sia AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping Smarter, Not Harder: Leveraging LLMs for Robust Web Automation]]></title>
            <link>https://medium.com/sia-ai/scraping-smarter-not-harder-leveraging-llms-for-robust-web-automation-a5b659c3c40a?source=rss-ed20fb521320------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5b659c3c40a</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Eva Brunel]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 14:52:29 GMT</pubDate>
            <atom:updated>2026-02-10T08:42:39.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ok9u3wwmzqk01bxwmjg3sg.png" /></figure><p>In the world of web automation, traditional scrapers have long been the go-to solution for data extraction. These scrapers rely on static selectors, <em>CSS classes and fixed page structures</em>, to retrieve information. While effective for simple, stable sites, this approach quickly breaks down on today’s dynamic sources and sites.</p><p>Indeed, modern websites are increasingly interactive and ever-changing: pages update in real time, layouts shift without notice. We also need to respect protections for users and services such as anti-bot protections like CAPTCHAs or human.</p><p>At Sia, we empower our client projects by scraping web data for market intelligence, such as monitoring competitor prices and trends. In parallel, we channel this data into our own platforms to build powerful knowledge bases and enhance our internal analytics. However, our traditional scrapers required constant maintenance, undermining the automation’s value.</p><h3>The Promise of Large Language Models as Web Agents</h3><p>Beyond language tasks, LLMs can interpret complex instructions, make decisions, and adapt dynamically. This led us to a hypothesis: <strong>Can LLMs replace fragile scripts with smart agents that browse, interact, and extract data on their own?</strong></p><p>In other words, instead of decomposing and hardcoding every step, let the model understand the task and reason to achieve it.</p><p>Benchmarking the New Generation of Automation Tools</p><p>To test this idea, we benchmarked several state-of-the-art LLM-powered automation frameworks.</p><p>Our criteria focused on :</p><ul><li><strong>Performance — Scraping Aptitude:</strong> speed and accuracy on real-world tasks</li><li><strong>Flexibility and modularity:</strong> ability to adapt to UI changes and complex workflows</li><li><strong>Observability &amp; Debug:</strong> possibility to observe the performances of the whole workflow</li><li><strong>Cost &amp; Deployment:</strong> API usage and infrastructure needs</li><li><strong>API/UI &amp; Adaptability:</strong> developer experience and setup time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_9OzCkNkgryjM_HtfOaBA.png" /></figure><p>The first results were clear. Many other benchmarked solutions struggled with the tasks. They were often much slower or too difficult to implement, so we did not collect precise metrics for them. Browser Use, however, struck the best balance. It had an average task completion time of 1.5 minutes on our tests, with 97% extraction accuracy. This performance combined the reliability of script-based navigation with the adaptability of LLM-driven decisions.</p><p>While fully agentic solutions like Skyvern AI offer great autonomy, Browser Use provides superior control, customization, and cost-efficiency for our targeted web scraping and automation needs. Operator-based solutions struggled with complex multi-step, and Claude, while powerful, required more setup for less deterministic control.</p><h4><strong>How does Browser Use work? Control Meets Intelligence</strong></h4><p>Browser Use is an open-source Python library which combines deterministic browser automation tools, using Playwright, with Large Language Models (LLMs) reasoning. This is the architecture:</p><ul><li>LLM-Guided Decisions: The agent uses an LLM to interpret tasks, analyze web page content, and decide actions like clicking or scrolling.</li><li>Visual Understanding: Screenshots of the page are sent to the LLM, helping it “sees” the layout and dynamic elements beyond just the HTML.</li><li>Deterministic Execution: Actions decided by the LLM are carried out precisely via coding or reliable interaction.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hkUg0p2ZoctDEMC87Fdhow.png" /></figure><p>Once the initial target is reached, the extracted data can be formatted into structured JSON or data frames, as defined by the prompts, with post-processing.</p><p>Indeed, one strength of Browser Use is its modular design: we can easily swap LLMs, adapt system prompts, and plug in custom pre/post-processing tasks, making it highly configurable and easy to implement — key features in many real-world applications.</p><h3><strong>Case Studies: Putting Browser Use to the Test</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FBNuvb91qqx0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBNuvb91qqx0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBNuvb91qqx0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/77a03345ad8e3a84500e324cc2da83a0/href">https://medium.com/media/77a03345ad8e3a84500e324cc2da83a0/href</a></iframe><h4><strong>Use Case 1: Automating Regulatory Intelligence</strong></h4><p>One use case involved scraping news articles published in 2025 from the public portal of a major financial regulatory authority. The task required handling cookies banners, complex pagination, date-based filtering, and returning a structured JSON containing multiple fields per article.</p><p>The Browser Use agent successfully navigated the compliance pop-ups, clicked through multiple pages, extracted all relevant articles, and stopped precisely as requested. Performance-wise, it completed the task in under 2 minutes on average, a massive improvement over the 27 minutes a human took.</p><h4><strong>Use Case 2: Scraping Specific Documents on Websites</strong></h4><p>One use case involved locating and downloading targeted documents — such as <em>Annual Sustainability Reports</em> or <em>Modern Slavery Statements</em> — across a list of 50 corporate websites with highly diverse layouts and navigation patterns. <br>The Browser Use agent was tasked with navigating each site, searching for relevant keywords, identifying ambiguously labeled download links, and extracting metadata like publication year when available. <br>It achieved a 95% success rate in retrieving the correct documents, significantly reducing manual workload and improving consistency.</p><h3><strong>Prompt Engineering: The Secret Sauce</strong></h3><p>The quality of the prompt drives everything. Browser Use provides a solid base, but real power comes from tailoring it. <strong><em>The goal: precise enough to guide, flexible enough to adapt.</em></strong> This library comes with a strong system-prompt that already handles most navigation and extraction patterns. From there, we layer client-specific instructions to meet task constraints.</p><p>We define navigation logic (“Click ‘Next Page’ until 2025 articles stop”), stopping conditions (skipping pre-2025 content saved around 30 to 40% of API calls), and expected output using JSON structure, which reduced post-processing by over 90%. <br>Domain vocabulary matters too. Injecting terms like “ACPR”, “communiqué de presse”, or “GRI Standards” boosted accuracy by up to approximately 20%. <br>Handling edge cases such as cookie banners, pop-ups, and timeouts is fully integrated into the prompt.</p><p>The real challenge is avoiding rigidity without losing control. The sweet spot lets the LLM reason freely within clear boundaries — and that’s exactly where Browser Use shines.</p><h3><strong>Challenges and Limitations</strong></h3><p>Despite promising results, LLM-based web automation needs to tackle several challenges:</p><ul><li><strong>CAPTCHAs and Human Checks:</strong> These remain significant blockers for full automation. But the use of proxies is possible and can improve these issues.</li><li><strong>LLM Hallucinations &amp; Errors:</strong> Results always require validation. We implement retry mechanisms and confidence scoring, but occasional manual review is necessary. Browser Use’s hybrid nature, however, makes debugging easier than with purely agentic systems.</li><li><strong>Cost of LLM Calls:</strong> While Browser Use is efficient, complex tasks requiring many steps or visual analyses can increase API costs. Optimizing prompts for conciseness is key.</li></ul><h3><strong>Conclusion: Browser Use as a Foundation for Intelligent Web Automation</strong></h3><p>At Sia, experimenting with LLM-powered agents quickly made one thing clear: tools like Skyvern AI promise full autonomy, but when you need precise, reliable scraping at scale, they often lack control and cost-efficiency.</p><p>This is precisely where Browser Use distinguishes itself not just as an alternative, but as a potential <strong>strategic choice</strong> for organizations like Sia. It’s not about choosing <em>less</em> intelligence; it’s about applying <em>it better</em>. Browser Use empowers us to harness LLM reasoning within a reliable execution stack, Playwright for control, JSON for structured output, and prompt logic we fully own.</p><p>For businesses that cannot afford the unpredictability and the “black box”, Browser Use offers the <strong>optimal synthesis of LLM intelligence and deterministic control </strong>with:</p><ul><li><strong>Robustness</strong> that adapts to UI changes without losing accuracy</li><li>Consistent <strong>speed and efficiency</strong> that drastically cut manual work</li><li>Built-in <strong>data integrity</strong> with structured, ready-to-use outputs</li><li><strong>Full control</strong> over complex workflows, avoiding black-box unpredictability</li></ul><p>While technology is still evolving, Browser Use already delivers the optimal balance of speed, cost, and adaptability for real-world scraping challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5b659c3c40a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sia-ai/scraping-smarter-not-harder-leveraging-llms-for-robust-web-automation-a5b659c3c40a">Scraping Smarter, Not Harder: Leveraging LLMs for Robust Web Automation</a> was originally published in <a href="https://medium.com/sia-ai">Sia AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>