Case study · AI Ecosystem
Legal research that follows the links between documents.
A research tool moving from search that finds documents to search that understands how documents relate to each other.
- Client
- Internal product build, legal technology
- Sector
- Legal technology
- Built by
- Senka
- Built with
- Graph RAG, FastAPI, Vector database, Neo4j, Claude, PostgreSQL
Watch it work, in about a minute.
100s
of source documents cleaned and ingested
2
ways to search: by meaning and by relationship
How it is wired
From hundreds of documents to two ways to search.
1 · Comes in
- Hundreds of legal source documents
2 · Agents and automation
- Cleaning and ingestion
- Vector search: by meaning
- Graph: how documents relate
- Claude orchestrates the two
3 · Goes out
- Answers by meaning
- Answers by relationship
How it was checked. Built and tested in stages: each way of splitting documents was measured for retrieval quality before the next step.
The problem
The brief was a research system for legal work that goes beyond keyword search and understands how legal documents and concepts relate to each other.
What we built
- A backend that combines a vector database for search by meaning with a graph database that maps the relationships between documents, orchestrated through Claude.
- Hundreds of source documents ingested and cleaned, including the filename problems that broke processing further down the line.
- Different ways of splitting documents tested against each other for retrieval quality.
The result
The graph layer is populated and ready for relationship-aware questions on top of the existing search. Built and improved in stages rather than promised all at once.

