Back to hub
project

Gemini 2.5 Flash to Gemini 3.8: Supporting the validation of a bespoke AI Legal tool through LLM transition

Find out how Roq supports its client with the validation of a bespoke AI Legal tool through LLM transition - resulting in a 67% time saving

OUR CLIENT

Our client is a legal services organisation currently developing a bespoke contract analysis tool; a GenAI-powered product that turns information in legal documents into structured, searchable data. The platform helps legal practices find and analyse contract information, while creating reusable datasets for future AI and non-AI initiatives.

THE CLIENT CHALLENGE

The tool uses large language models (LLMs) to extract information from legal documents based on configured features and prompts. When the product transitioned from Gemini 2.5 Flash to Gemini 3.8, the client needed to understand the impact across existing use cases and confirm that the product continued to process and present the generated information as expected.

The QE team needed to validate:

  • Whether generated data remained legible, correctly structured and aligned with configured prompts

  • Whether existing transformations continued to process the new model’s outputs correctly

  • Whether answer locations and expected functionality remained consistent

  • Whether regression testing revealed any impact on existing product behaviour

The assessment focused on the quality and handling of generated data - not the legal accuracy of answers, which was evaluated separately by the Data Science team.

WHAT WE DELIVERED

The Roq team carried out structured, manual, feature-level validation across Corporate SPA, LPA Benchmarking, LPA Co-invest, Split LPA and Spire. For example, Corporate SPA alone contained 85 features requiring detailed checks.

  • Compared UAT feature configurations, checking that expected features were present, correctly ordered and consistent with the UI

  • Reviewed feature prompts against Gemini 3.8 responses to assess legibility, relevance to the prompt, instruction-following and suitability for the expected output

  • Validated YAML configurations and outputs across data layers to check that existing transformations continued to work as expected

  • Checked that every reviewed feature had an answer location, including empty brackets where a null-style response was expected

  • Spot-checked Not Applicable and Not Found results against raw LLM values in Databricks - typically five to ten examples where volumes were high

  • Ran regression checks

  • Raised issues where the new model’s behaviour exposed limitations in existing prompts or transformations

CLIENT IMPACT

The structured validation gave the client evidence of how the transition affected their tool and highlighted areas to address as the product evolved.

  • Gemini 3.8 showed better adherence to configured prompts and produced clearer, more readable responses in the areas tested.

  • The QE team observed fewer ‘Not Applicable’ and ‘Not Found’ results.

  • Drafting a contract would previously take up to 3 days to complete, thanks to Roq's work this can now be done in less than a day - providing a 67% time saving on this specific task

  • Testing surfaced prompt and transformation issues during the transition, enabling them to be raised rather than treating the model upgrade as an isolated technical change.

  • These improvements support the client’s goal of turning unstructured legal documents into structured, searchable data for legal practices and future use cases.

Share

Start speaking to one of our experts