WyseAgent is Logicbric’s legal AI product — a multi-source reasoning system that lets solicitors query case law, legislation, and regulatory guidance simultaneously. We sat down with the engineering team behind WyseAgent to understand the technical decisions, the failures, and the breakthroughs that shaped the product.

Q: Where did the idea for WyseAgent come from?

It came from watching solicitors work. A typical legal research task involves opening five or six different databases — Westlaw, LexisNexis, legislation.gov.uk, the Land Registry, court records — running separate searches in each, manually cross-referencing the results, and synthesising a conclusion. A senior solicitor might spend 3-4 hours on research that would take 15 minutes if all the sources could be queried simultaneously and the results synthesised automatically. That is what WyseAgent does.

Q: Why is multi-source reasoning harder than single-source RAG?

Single-source RAG is retrieval plus generation — you search one corpus and generate an answer. Multi-source reasoning is fundamentally different because sources can conflict, complement, or contextualise each other. A statute might say one thing, but case law interprets it differently. A regulatory guidance note might add exceptions. A recent court decision might overturn established precedent. The system needs to understand these relationships, not just retrieve relevant passages from each source independently. We built a reasoning chain that explicitly identifies agreements, conflicts, and hierarchies across sources before generating a synthesis.

The hard part is not finding relevant law. It is understanding how different pieces of law relate to each other — and that requires genuine reasoning, not just retrieval.

Q: Can you walk through the technical architecture?

The pipeline has five stages. First, query decomposition: the user’s question is broken into sub-queries targeted at specific sources. A question like “can the landlord forfeit the lease for subletting without consent?” generates separate sub-queries for the relevant legislation, case law on forfeiture, case law on subletting covenants, and any regulatory guidance on tenant protections. Second, parallel retrieval: each sub-query is routed to the appropriate source with source-specific search strategies. Third, relevance filtering and reranking: results are scored for relevance to the specific sub-query and filtered. Fourth, cross-source reasoning: a reasoning model analyses the filtered results together, identifying relationships, conflicts, and hierarchies. Fifth, synthesis: the final answer is generated with citations to specific provisions, cases, and paragraphs.

Q: What was the biggest technical failure during development?

Our first approach to cross-source reasoning was to dump all retrieved passages into a single prompt and ask the model to synthesise. It worked for simple questions but fell apart completely for complex ones. The context window filled up with marginally relevant passages, the model could not distinguish authoritative sources from commentary, and the citations were unreliable. We had to completely rebuild the reasoning stage to use a structured approach — first mapping each source’s position on the query, then identifying conflicts, then resolving conflicts using legal hierarchies (statute beats case law beats commentary), and finally generating the synthesis from this structured intermediate representation rather than from raw text.

Q: How do you handle accuracy in a domain where mistakes have real consequences?

Three layers. First, every factual claim in the output is linked to a specific source passage. The solicitor can click any statement and see exactly where it came from. If a claim is not supported by a retrieved source, it is flagged as inference rather than stated as fact. Second, we run automated accuracy evaluations against a benchmark of 2,000 legal questions with expert-verified answers, updated quarterly. Any model or prompt change that degrades benchmark accuracy is blocked from deployment. Third, we collect structured feedback from solicitors on every response — not just thumbs up/down but specific annotations on which parts were accurate, which were incomplete, and which were wrong. This feedback loop has been the single most important driver of quality improvement.

Q: What would you do differently if you started again?

We would build the evaluation framework first. We spent three months building features and then another two months building the evaluation system to know whether those features actually worked. If we had built evaluation first, we would have caught architectural problems much earlier. The other thing is citation verification — we treated citations as a nice-to-have initially and then discovered they are the single most important trust mechanism for legal users. If a system says “Section 146 of the Law of Property Act 1925 requires...” the solicitor needs to verify that with one click. We should have made that the core experience from day one.