Retrieve
Embed a query, search a corpus, and rerank the candidates in one call. Returns ranked authorities with relevance scores.
Documentation, API credits, and the same models behind our platform, so you can build on retrieval, enrichment, and structure that were trained for the domain from the start. Call the embedding and reranking APIs, graphitize a document, or wire the open chunker into your pipeline.
A single request embeds the query, searches the corpus, and reranks the candidates, returning ranked authorities with scores. The retrieval pair does the recall and the precision together, so you get the case you needed rather than a list of plausibly related text.
The interface is the same wherever you run it. Point the request at the hosted platform, at a marketplace deployment inside your cloud, or at an air-gapped container on your own hardware.
# Embed, search, and rerank a legal query POST https://api.brelynetech.net/v1/retrieve { "query": "duty to warn of latent defect", "corpus": "us-case-law", "top_k": 3, "rerank": true, "deployment": "air-gapped" } # 200 OK · 38 ms · retention: none { "results": [ { "rank": 1, "score": 0.94, "cite": "22 U.S. 1" }, { "rank": 2, "score": 0.89, "cite": "17 U.S. 316" }, { "rank": 3, "score": 0.81, "cite": "5 U.S. 137" } ], "status": "ranked" }
Send a document of any length and receive a structured knowledge graph of its parties, clauses, dates, courts, citations, and holdings. Because it runs at sub-second latency, enrichment becomes something you do across a corpus rather than an overnight job.
The response is law you can traverse. Query a clause, follow a citation, or pull every party, working with a graph instead of a wall of text.
# Turn a document into a knowledge graph POST https://api.brelynetech.net/v1/graphitize { "document_id": "lease-2041", "extract": ["parties", "dates", "citations"] } # 200 OK · 0.6 s · nodes: 42 · edges: 71 { "nodes": [ { "type": "party", "label": "Lessor" }, { "type": "clause", "label": "Indemnity" }, { "type": "date", "label": "Effective" } ], "status": "graphitized" }
A compact API over the whole model family, plus the open chunker that runs beneath it. Every capability is available across all three deployment modes.
Embed a query, search a corpus, and rerank the candidates in one call. Returns ranked authorities with relevance scores.
Turn a document of any length into a knowledge graph of parties, clauses, citations, dates, courts, and holdings.
Split documents at semantic boundaries with the open-source algorithm behind more than two million downloads a month.
Documentation and API credits are available on request across every deployment mode. Tell us what you are building and we will get you to a first call.