Skip to content
Julls Jiménez · Coquretadev

← work / dimeley

Own product preprod qa in progress

Dimeley — AI legal answers and the law firm's daily work

One product that brings together AI legal answers, the firm's case files and a directory of verified lawyers. RAG over legislation with verifiable citations.

The problem

Independent lawyers and small firms juggle their matters between email, folders and loose documents, and look up the law in yet another tool. Citizens, for their part, do not know whether their case has a chance or who to turn to.

The solution

A product with three parts that nobody brings together in the Spanish market:

  • AI legal answers. Answers about legislation with citations you can check, and a different tone for the citizen and for the lawyer.
  • Case files. People involved, documents received and pending, who is responsible, next action, and summary sheets that are reviewed and approved before they are used.
  • A directory of verified firms, so that the citizen reaches a professional.

Technical decisions

  • Hybrid search: vectors (pgvector with an HNSW index) and PostgreSQL full-text search, combined by reciprocal rank. The semantic side finds what is similar; the lexical side never misses an article because of its number.
  • Verifiable citations: every statement points to the fragment of the law it comes from, and this is checked before it is shown.
  • Streaming responses (SSE) with cancellation propagated all the way to the model: if the user stops, you do not pay for the whole answer.
  • Defences against prompt injection and a switch to turn the AI off without touching the deployment.
  • Modular monolith in .NET 10: a single deployable, with modules that talk through contracts.
  • Verified nightly deployment: automated tests after every deployment to pre-production.

Real status

In pre-production, with automated tests after every deployment. Production is switched off on purpose until the conditions I set myself for turning it on are met (operational continuity and a suite of tests against prompt injection). There are no paying users yet.

What this could do for you

If your product needs to answer questions about your own documents (regulations, contracts, manuals, support) with reliable citations and without costs getting out of hand, this is exactly it.