---
title: "Legal Tech and Compliance | Solutions | SurrealDB"
description: "Model evidence, disagreement and professional judgement as a graph, with per-matter access control and scoped agent memory, for legal and compliance teams."
url: https://surrealdb.com/solutions/legal-tech-and-compliance
---

# Built for legal intelligence

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [Talk to sales](https://surrealdb.com/contact/sales)

**Evidence.** Every statement kept with its source, its author and its date.

**Judgement.** Reviews and corrections recorded beside what they review.

**Isolation.** Per-matter access control, enforced in the database.

1. ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
2. ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
3. ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
4. ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
5. ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
6. ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
7. ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
8. ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
9. ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
10. ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
11. ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
12. ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)
13. ![Verizon](https://surrealdb.com/assets/static/verizon.BI7CajdX.svg)
14. ![Liberty Mutual](https://surrealdb.com/assets/static/liberty-mutual.B7qOU1pd.svg)
15. ![Walmart](https://surrealdb.com/assets/static/walmart.BjDg_Sr8.svg)
16. ![Carrier](https://surrealdb.com/assets/static/carrier.D21gC6NX.svg)
17. ![Saks Fifth Avenue](https://surrealdb.com/assets/static/saks-fifth-avenue.COIDpLSb.svg)
18. ![San Francisco Compute Company](https://surrealdb.com/assets/static/sfcc.B7jlImq4.svg)
19. ![Shield AI](https://surrealdb.com/assets/static/shield-ai.pINZ0KJr.svg)
20. ![Wix](https://surrealdb.com/assets/static/wix.DvHhmoBi.svg)

CAPABILITIES

## Evidence you can trace. Designed for matters where parties disagree and every step must be explained.

### Evidence graph

Records, sources and statements linked so every claim leads to its basis.

### Matter isolation

Table and field permissions evaluated per record, with access denied by default.

### Agent Memory

Scoped memory that lets an assistant resume work from a reviewed correction.

### One platform

Documents, graph, vectors and full-text search in a single engine.

SEE IT IN ACTION

## Isolate every matter. Permissions the database enforces on each query.

A lawyer signed in through a record access method sees only the documents of the matters assigned to them.

Copy

```
1-- A document belongs to one matter2DEFINE TABLE document SCHEMAFULL3    PERMISSIONS FOR select, create, update4        WHERE matter IN $auth.matters;5DEFINE FIELD matter ON document TYPE record<matter>;6DEFINE FIELD title ON document TYPE string;78-- Signed in as a lawyer assigned to matter:smith9SELECT title FROM document;10-- Returns only the documents of matter:smith
```

USE CASES

## Core use cases. How legal and compliance teams apply SurrealDB.

### Disclosure and e-discovery

Competing statements about the same asset kept side by side, each with its source.

### Contract and clause intelligence

Clauses, parties and obligations as a graph, searchable by meaning and by structure.

### Regulatory change tracking

Rules linked to the policies, controls and contracts they affect.

### Matter and case management

Each client's matter held in its own permission boundary, inside the engine.

### Audit trails and provenance

Reviews, decisions and corrections stored as records that can be queried later.

### Legal research assistants

Retrieval over embeddings and linked records, scoped to one authorised matter.

WHY SURREALDB

## Why decision makers choose SurrealDB. The advantages that matter in legal and compliance work.

### [Relationships that carry data](https://surrealdb.com/surrealdb/features)

Graph edges are full records, so who said what, on which source and when sits on the relationship itself.

### [Permissions in the engine](https://surrealdb.com/surrealdb/features)

Record-level rules mean a query returns only what the signed-in user's matters allow.

### [Agent Memory with scope](https://surrealdb.com/surrealdb/features)

Memory is partitioned by firm, matter and user, while principals and grants govern access.

### [Adaptable schema](https://surrealdb.com/surrealdb/features)

Start with flexible documents, then add structure as practice areas and regulations change.

### [Fewer systems to align](https://surrealdb.com/surrealdb/features)

The graph, the vectors and the access rules share one store and one transaction.

PIVOT AI

## See it in practice. How Pivot AI builds on SurrealDB.

### [Computing over evidence, disagreement and judgement](https://surrealdb.com/blog/computing-over-evidence-disagreement-and-judgement-by-pivot-ai)

How Pivot models disputed financial evidence as competing assertions, findings and decisions.

Read the story

### [Remembering the correction: Ontology and agent memory in Pivot AI](https://surrealdb.com/blog/remembering-the-correction-ontology-and-agent-memory-in-pivot-ai)

How an agent resumes unfinished work from a reviewed correction, scoped to one matter.

Read the story

### [Pivot AI case study](https://surrealdb.com/customer/pivot)

An assertion graph for financial disclosure, with retrieval 20 to 40 times cheaper.

Read the story

## Your questions, answered

How does SurrealDB keep an AI inference apart from source evidence?

Each statement is its own record with the voice that made it, its kind (for example a source statement or a model inference) and a link to its source. A reviewer's decision is a separate record, so the original inference stays unchanged.

How are client matters isolated from each other?

Can an assistant remember a solicitor's correction?

Can SurrealDB search contracts by meaning and by structure?

How does SurrealDB support audit and regulatory reporting?

THE PLATFORM

## Everything an application and its agents know. Five surfaces, one engine.

Database

Document, graph, vector, time-series and relational in one engine.

![Five data models as dotted tiles: documents, graph, vector, time-series and relational](https://surrealdb.com/assets/static/platform-database.DUdumYDz.avif)

Read more

[Database](https://surrealdb.com/surrealdb)

Agent Memory

What an agent learns, with its source and its time, in the same engine.

![A timeline of remembered facts, each with its source](https://surrealdb.com/assets/static/platform-agent-memory.Cvv8D5Wl.avif)

Read more

[Agent Memory](https://surrealdb.com/agent-memory)

Cloud

Managed clusters in the regions you choose, scaled on demand.

![Clusters in three regions on a world map, each running or scaling](https://surrealdb.com/assets/static/platform-cloud.--QZnaVi.avif)

Read more

[Cloud](https://surrealdb.com/cloud)

Studio

Query, explore and design the schema from the browser.

![A SurrealQL query in Studio and the schema graph under it](https://surrealdb.com/assets/static/platform-studio.7ykBFNLq.avif)

Read more

[Studio](https://surrealdb.com/studio)

MCP

Every model that speaks MCP reaches the database and the memory directly.

![Three models connected through MCP to the database and Agent Memory](https://surrealdb.com/assets/static/platform-mcp.D_oH0_wm.avif)

Read more

[MCP](https://surrealdb.com/mcp)

IN PRODUCTION

## Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

> SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.

*Justin Foley*

VP of Engineering, Later

GET STARTED

## Start building with SurrealDB. Evidence, judgement and access control in one database, ready for the scrutiny legal work attracts.

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [View documentation](https://surrealdb.com/docs/surrealdb)

![ISO 27001](https://surrealdb.com/assets/static/iso.BzQy4FFy.svg)

![AICPA SOC 2 Type 2](https://surrealdb.com/assets/static/aicpa-soc.CE_YjqhK.svg)

![Cyber Essentials](https://surrealdb.com/assets/static/cyber-essentials.CtbmbYfL.svg)

![GDPR](https://surrealdb.com/assets/static/gdpr.IadR7loS.svg)

![Cyber Essentials Plus](https://surrealdb.com/assets/static/cyber-essentials-plus.Cl5P05xe.svg)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://surrealdb.com/#organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the context and memory layer for AI agents. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","legalName":"SurrealDB Ltd","identifier":{"@type":"PropertyValue","propertyID":"GB-COH","value":"13615201"},"address":{"@type":"PostalAddress","streetAddress":"3rd Floor, 1 Ashley Road","addressLocality":"Altrincham","addressRegion":"Cheshire","postalCode":"WA14 2DT","addressCountry":"GB"},"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"support@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"sales","email":"info@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"security","email":"security@surrealdb.com","url":"https://surrealdb.com/.well-known/security.txt","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"legal","email":"legal@surrealdb.com","url":"https://surrealdb.com/legal","availableLanguage":"English"}],"hasCertification":[{"@type":"Certification","name":"SOC 2 Type 2"},{"@type":"Certification","name":"GDPR"},{"@type":"Certification","name":"Cyber Essentials Plus"},{"@type":"Certification","name":"ISO 27001"}],"owns":[{"@type":"SoftwareApplication","name":"SurrealDB","url":"https://surrealdb.com/surrealdb"},{"@type":"SoftwareApplication","name":"Agent Memory","url":"https://surrealdb.com/agent-memory"}],"knowsAbout":["multi-model databases","document databases","graph databases","vector search","time-series databases","SurrealQL","Agent Memory","real-time databases","embedded databases","AI agent database","graph ontology","distributed database","knowledge graphs","distributed transaction protocols","highly-scalable databases"],"sameAs":["https://www.wikidata.org/wiki/Q124316308","https://github.com/surrealdb/surrealdb","https://twitter.com/surrealdb","https://www.youtube.com/@surrealdb","https://www.linkedin.com/company/surrealdb","https://discord.gg/surrealdb","https://www.reddit.com/r/surrealdb","https://www.instagram.com/surrealdb","https://medium.com/surrealdb","https://dev.to/surrealdb"]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"Solutions","item":"https://surrealdb.com/solutions"},{"@type":"ListItem","position":3,"name":"Legal tech and compliance","item":"https://surrealdb.com/solutions/legal-tech-and-compliance"}]}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How does SurrealDB keep an AI inference apart from source evidence?","acceptedAnswer":{"@type":"Answer","text":"Each statement is its own record with the voice that made it, its kind (for example a source statement or a model inference) and a link to its source. A reviewer's decision is a separate record, so the original inference stays unchanged."}},{"@type":"Question","name":"How are client matters isolated from each other?","acceptedAnswer":{"@type":"Answer","text":"Table and field permissions are evaluated for every record, and access is denied unless a rule allows it. A rule can compare a document's matter with the matters assigned to the signed-in user."}},{"@type":"Question","name":"Can an assistant remember a solicitor's correction?","acceptedAnswer":{"@type":"Answer","text":"Yes. Agent Memory stores a reviewed instruction under a scope such as firm, matter and user, and recalls it in a later session. Scope partitions the records, while principals and grants decide who can read them."}},{"@type":"Question","name":"Can SurrealDB search contracts by meaning and by structure?","acceptedAnswer":{"@type":"Answer","text":"Yes. Embeddings and full-text indexes sit beside linked records for parties, clauses and obligations, so one query can combine semantic search with graph traversal."}},{"@type":"Question","name":"How does SurrealDB support audit and regulatory reporting?","acceptedAnswer":{"@type":"Answer","text":"Reviews, decisions and corrections are stored as records with their reviewer, purpose and inputs, so a report is a query over the same data the work was done in."}}]}
```
