Skip to main content
A covenant says that leverage must stay under 4.0. What leverage means is written 200 pages before it, in a definition of EBITDA (earnings before interest, taxes, depreciation, and amortization) that lists what can be added back. An analyst who reads the covenant without the definition approves a loan that the fund cannot call when the borrower’s earnings fall. The agreement is 300 pages, the committee meets on Thursday, and your agent cannot read the whole text into its context at once.

The run in 5 steps

Upload the agreement

Send the file to upload_contents with max_characters set to 0. The response has the outline, or a job if the work takes longer, and the outline then comes from get_contents. On an agreement with headings, the outline has every clause and schedule with its title, its size, and its pages. On a scan it has one row for each page. A scanned agreement is read from its page pictures, and each such page comes with a number that says how sure the reading is.

Mark the covenants

Ask up to 5 questions in one call. Each passage that bears on a question comes back with its clause and its printed page.
Request body of highlight_contents
A model chooses these passages, and each is marked as judged. The words are the agreement’s own.

Follow each defined term

A defined term is written the same way wherever it is used. Send the term itself as a phrase, and its places come back in document order, found word for word. One call returns the first 50 places of a term, with the notice highlights_cut if there are more.
Request body of highlight_contents
The first place of “Consolidated EBITDA” is in the definitions, and the others are the clauses that use it. Your agent then has the covenant and the definition it depends on, 200 pages apart, without having read the pages between them. This call uses no model and costs nothing.

Read each definition whole

A definition and its list of add-backs are blocks in a row. Read them with list_blocks and block_ids, and each block comes whole, not cut at some length.

Quote each clause with its printed page

A lawyer cites “clause 22.2, page 71”, and the page 71 that is printed in the agreement need not be the 71st page of the file. Each passage has its position in the file and, where the agreement declares printed page numbers, the printed one. So the memo cites the page as the agreement prints it, and a program can still open the right page of the file.

What the committee can check

Know the limits

A term on a scanned page is found only if the page was read right. A search for exact words does not match a term that the recognition misread, so look at the pages with a low confidence before you say that a term is not used. Nothing is translated. For an agreement in German, write the questions in German. The pricing grid in a schedule comes cell by cell from a Word file or a PDF with structure, and as text from a scan. For the calls, see Read the 2 sections you need from a 300-page document and Highlight the evidence for each question.