A useful contract search system lets a reviewer find both what an agreement says and which agreement they need. Clause search locates language such as a liability cap, audit right or change-of-control clause. Metadata search narrows by counterparty, agreement type, entity, effective date, governing law, status, renewal window or owner. The reliable workflow combines both: define fields, extract values with evidence, normalize carefully, preserve document structure and test searches against known examples.

If your current repository search only finds exact words, start by fixing data definitions and source traceability before purchasing another search layer. If the repository has never been inventoried, first read the companion guide on turning an old contract backlog into a searchable, risk-triaged dataset. Use the free contract extraction field dictionary as an initial field inventory, then tailor it to the decisions and documents your team actually handles.

This is an operating guide, not a promise that any tool will interpret every contract correctly. AI-supported extraction should be checked against the source documents, and a human reviewer should decide what a field means when language is ambiguous.

Start with the question users need answered

Before configuring fields, write down the decisions users want to make. “Search contracts” is too broad. A procurement lawyer may need to find suppliers with auto-renewal and a 90-day termination window. A finance team may need all executed agreements with a payment currency other than INR. A diligence team may need change-of-control provisions across a defined acquisition perimeter. Each question implies different fields, filters, permissions and review thresholds.

Separate three search jobs:

Search jobExampleData needed
Find the right document“Show signed India supplier agreements with Vendor X”Counterparty aliases, entity, agreement type, status, jurisdiction
Find a clause pattern“Which agreements require notice before assignment?”Clause family, extracted passage, negation and exception context
Answer a portfolio question“Which renewals require action this quarter?”Notice period, renewal mechanism, relevant dates, owner and status

A search result should identify the file and location, not just show a generated answer. The user needs to open the original clause, inspect definitions and exceptions, and confirm that the version is executed and current.

Design a small, governed metadata schema

Every field needs a definition that two reviewers can apply consistently. State the data type, permitted values, whether multiple values are allowed, how unknown information is represented, and which document evidence supports the value. Avoid fields whose labels are intuitive but whose inclusion rules are unclear.

For example, define “effective date” as the date the agreement says it becomes effective, rather than the signing date or upload date. Define “agreement status” using controlled values such as draft, signed, expired, terminated, superseded and unknown. Keep “governing law” distinct from “forum” because a contract can select one law and a different court or arbitral seat. Record the counterparty’s legal name and searchable aliases without overwriting the exact name in the source.

FieldType and ruleEvidence to retain
Agreement familyControlled vocabulary; allow “other” and “uncertain”Title, operative provisions, template lineage
PartiesStructured entities plus aliasesPreamble, signature blocks, amendments
Signing/effective datesSeparate date fields; unknown is not blankSignature page and effective-date clause
Status/versionControlled lifecycle state, linked to source versionExecution evidence, amendment and supersession language
Governing law/forumSeparate fieldsGoverning-law, jurisdiction and arbitration clauses
Clause familyControlled taxonomy with multiple occurrencesExact passage, page/section and nearby context
Renewal/noticeMechanism, dates and calculation basis separatelyTerm and notice clauses, amendments
Confidence/reviewValue, rationale and reviewer stateExtraction event and validation history

Avoid turning every nuanced clause into a yes/no field. “Has limitation of liability” may conceal a cap, carve-outs, exclusions, separate caps, or no cap for particular claims. A searchable summary can coexist with verbatim text and structured subfields. Where the source does not resolve a question, store “not found” or “uncertain”; do not infer a value from common market practice.

A clause is rarely self-contained. A limitation clause may refer to a defined “Loss,” an order form, insurance schedule, data protection addendum or carve-out elsewhere. A termination right can depend on a cure period defined in another section. Search indexes should preserve document boundaries, headings, page or paragraph locations, definitions and amendment relationships where available.

The result record should carry the source file, page or section, quoted passage and enough neighboring text to check scope. For a portfolio-level answer, retain which documents were included, excluded or unreadable. A summary without that trail makes it difficult to investigate a false positive or explain a missing result.

Search should support exact language and concept-level discovery. Exact phrase search helps when a clause uses known wording. Semantic search can surface differently phrased provisions, but it can also return material that is conceptually adjacent rather than legally equivalent. For instance, “termination for convenience” and termination for material breach are both termination clauses but answer different questions. A result should state why it matched and let the reviewer compare the passage with the query.

Build a review loop before scaling

Start with a representative test set: ordinary agreements, older scans, amendments, unusual templates, documents in different languages if relevant, and agreements with missing pages or poor OCR. Have a qualified reviewer label the correct fields and passages. Run proposed searches against known questions and record false positives, missed clauses, unreadable files and duplicate versions.

Measure field-level performance rather than relying on a single headline score. A missed governing-law value has a different impact from an inconsistent title. Prioritize errors by the decisions users will make. Set review thresholds so low-confidence or high-impact values receive human confirmation. Keep corrected values linked to the source and to the person or process that approved them.

Fictional example: A legal team has 1,200 supplier agreements and asks which ones renew automatically in the next 120 days. Its first search returns 73 documents. Review finds that 18 are duplicate drafts, 11 have been amended, and 7 contain a 60-day notice clause that was missed because the scan’s page was unreadable. The team updates the status and amendment model, corrects OCR on affected pages, and separates “automatic renewal” from “notice deadline.” The corrected review set contains 37 actionable agreements. The improvement came from defining the question, including amendments and tracking exceptions, not from a more confident summary.

Run recurring extraction QA against complete agreement packages

A test set tells you how a workflow performs on selected examples. Ongoing QA tells you whether the current extraction run covered the records it was supposed to cover, where errors cluster, and who must resolve them. Treat these as separate controls. A model can extract a field correctly from every file it receives while still producing an incomplete portfolio if an amendment, schedule, or scanned page never entered the run.

Use the complete agreement package as the audit unit. For each agreement, keep an inventory of the expected operative files and pages, then reconcile it against what the workflow received and processed. Depending on the record, the package may include the signed base agreement, order forms, schedules, exhibits, amendments, restatements, side letters, and signature pages. Record missing, duplicate, superseded, excluded, corrupt, and unreadable items explicitly. An item that was not processed is a coverage exception, not a successful extraction of “no clause found.”

Reconciliation stageRecordQA question
ExpectedFiles and pages in the source record or intake manifestWhat material should have been included for this agreement?
ReceivedFiles and pages accepted by the extraction workflowDid every expected item arrive, and can the team identify duplicates?
ProcessedFiles and pages actually read by the workflowWas anything skipped, truncated, or rejected?
ResolvedItems corrected, reprocessed, or excluded with a reasonIs the exception closed, assigned, or still blocking a complete answer?

Do not report an agreement as fully checked until those stages reconcile or an owner has approved a clearly described exception. Retain the exact file and page references that support an extracted value. This makes it possible to distinguish a wrong answer from an incomplete input set and to repeat the same check after a correction.

Keep two sample streams

Maintain a deliberately difficult sample and a separate random baseline sample. The difficult sample should oversample known failure conditions: amended or restated agreements, long documents, schedules and exhibits, poor scans, tables, unusual layouts, multiple languages, conflicting versions, and clauses that depend on definitions or cross-references. Use it to find weaknesses and test whether a fix addresses them.

Select the random baseline separately from the full eligible population, using a recorded sampling frame and selection date. It helps the team observe ordinary workflow behavior without letting a hand-picked collection of edge cases stand in for the whole portfolio. Keep the two results separate. A stress sample is useful for finding failure modes; it does not estimate how often they occur across the portfolio. A random sample also cannot replace a targeted check when a particular high-consequence document type needs attention.

For each sample, record the population or collection window it came from, the inclusion and exclusion rules, the reason for selection, the agreement-package identifier, and the reviewer. When the repository changes materially, such as after a bulk import, parser change, field-definition change, or revised amendment-linking rule, define whether the old baseline still answers the current question. If not, establish a new baseline and retain the old result for comparison rather than silently overwriting it.

Label reference answers before looking at extraction output

For sampled packages, have a reviewer establish the expected answer from the source documents before seeing the system’s extracted value where the workflow permits. The reference should identify the relevant value, the supporting passage and location, the operative document version, and any unresolved ambiguity. This reduces the chance that a reviewer will unconsciously accept a plausible-looking extraction.

Keep human disagreement as its own outcome. If two reviewers interpret the same clause differently, record both readings and send the case to an accountable adjudicator. Do not automatically count the disagreement as an extraction error, and do not remove it from the record. It may reflect ambiguous drafting, an unclear field definition, or a question that requires legal interpretation. Update the field rule or guidance only after the team resolves what the field is intended to capture.

Classify failures by where they occurred

Use distinct categories so teams can see which part of the workflow needs attention. One item may have more than one category when failures compound.

Failure categoryWhat failedExample to investigate
Input coverageThe expected source package was not fully received or processedA schedule appears in the repository manifest but not in the extraction run.
Extraction or valueThe processed text was available but the returned field or passage is wrong, incomplete, or missingThe notice period is extracted from the wrong section.
Citation or supportThe cited location does not support the value, or the result has no checkable sourceA summary links to a page that contains a similar term but not the reported obligation.
Version or amendment currencyThe result reflects an earlier document rather than the operative packageA later amendment changes a date or commercial term, but the base agreement remains the returned source.
Readability or structureOCR, parsing, layout, tables, or document boundaries prevent reliable reviewA table row or page at the end of a scanned exhibit is omitted.
Human disagreementReviewers cannot apply the field definition consistentlyOne reviewer treats an option as an extension; another reads it as a new term.

This classification helps prevent one headline “accuracy” figure from hiding a missed file, stale amendment, unsupported citation, or unreadable page. Keep the raw count and denominator for each category, and state what was counted: packages, files, pages, fields, or extracted passages. If a package is incomplete, show that status separately from field-level results for the material that was processed.

Report risk and assign the next action

Prioritize QA findings by the decision they could affect and the scope of records exposed, not just by how easy they are to count. A missing low-impact descriptive field and a stale renewal date should not receive the same response automatically. The contract owner and responsible legal or business reviewer should set the consequence categories for their workflow; this guide does not prescribe universal risk scores or thresholds.

Each open finding should have a named owner, affected package or population, failure category, source evidence, next action, due checkpoint, and a status that distinguishes “under review” from “corrected and reprocessed.” Route source-quality problems to the repository or intake owner; mapping and parsing problems to the workflow administrator; uncertain legal meaning to a qualified legal reviewer; and downstream business-impact questions to the relevant contract owner. If a high-consequence value cannot be confirmed, mark it unresolved and prevent it from being treated as verified until the accountable reviewer decides how it may be used.

After a correction, rerun the affected package and repeat the checks that the change could influence. A parser adjustment might require checking page coverage, tables, citations, and extracted values. A revised amendment rule might require rechecking linked documents and every field derived from the changed text. Preserve the prior result, corrected result, source references, change made, reviewer decision, and reprocessing outcome. This creates a traceable quality history instead of making the latest value look as though it was always reliable.

Fictional example: A procurement team expects a signed master agreement, two schedules, three order forms, and one amendment for a supplier. The intake manifest lists seven files, but the extraction run processed six; one schedule is unreadable. The team records an input-coverage exception and a readability exception before reviewing field values. Its difficult-case sample also includes the amendment because it changes a commercial term. Two reviewers disagree about which order form governs a particular purchase; that item goes to an adjudicator rather than being counted as an AI miss. The team then repairs or replaces the unreadable input, confirms which order form is operative, reruns the package, and preserves both the earlier exception and the resolved evidence. The lesson is not a particular error rate: completeness, extraction, source support, version currency, and interpretation need separate outcomes and owners.

Ongoing QA handoff checklist

  • The audit unit is a complete agreement package, with expected, received, processed, and resolved files or pages reconciled.
  • Difficult-case sampling and random-baseline sampling use separate frames and are reported separately.
  • Reference labels include source locations and operative-version context and are created independently of the extraction result where practical.
  • Human disagreement is retained and adjudicated, not hidden inside the system-error total.
  • Input coverage, extraction/value, citation/support, version currency, and readability/structure findings are separately classified.
  • Every open issue has an owner, affected scope, next action, and status; consequential unresolved values are not presented as verified.
  • Corrections are reprocessed against the affected package, and prior results remain available for audit.
  • Reports state the unit and denominator for each result and make no portfolio-wide claim from a targeted stress sample.

Use the contract extraction field dictionary to define the fields being tested, and review findings alongside the guide to turning an old contract backlog into a searchable dataset. A structured QA record can help legal, procurement, and operations owners hand unresolved exceptions to the right reviewer before using extracted values in downstream work.

Permissions, privacy and retention are part of search design

A searchable archive can make sensitive information easier to find, so access should be designed deliberately. Apply document-level permissions where the underlying matter requires them. Test whether search snippets, summaries, exports and audit views inherit the same access rules as the source. Restrict downloaded results and review logs to authorized users, and define retention for source files and derived indexes.

India’s Digital Personal Data Protection Act, 2023 may matter where a repository contains digital personal data, but applicability and obligations depend on the parties, processing, commencement and rules in force. Consult the official DPDP Act text and verify current commencement notifications and rules for the specific processing; assess applicability to the specific repository with the responsible privacy team. Where personal data is involved, document purpose, access, retention and incident handling with the responsible privacy team.

For AI-supported workflows, the NIST AI Risk Management Framework is a voluntary risk-management resource, not Indian law or a certification. It can help teams organize testing, documentation and human oversight. It does not establish legal compliance by itself.

A practical implementation sequence

  1. Collect actual search questions. Interview legal, procurement, finance and diligence users; rank questions by frequency and consequence.
  2. Define fields and taxonomies. Write inclusion rules, allowed values, unknown states and examples before extraction.
  3. Set document identity. Establish repository ID, counterparty aliases, contract family, version and amendment links.
  4. Extract with provenance. Store source passage, page/section, confidence and review status alongside each value.
  5. Test representative searches. Include known positives and negatives, scans, amendments and edge cases.
  6. Set access and retention. Confirm search, snippets, exports and logs follow document permissions and approved retention.
  7. Review errors and update. Record failure types, assign owners and retest changes against the same benchmark set.

Search readiness checklist

  • Each field has a written definition, type, allowed values and unknown state.
  • Signing date, effective date, upload date and amendment date are not conflated.
  • Search results link to the exact source file and passage.
  • Definitions, schedules, exceptions and amendments can be checked in context.
  • Exact-term and concept search are clearly distinguishable.
  • Duplicate, superseded, draft and executed records are separately identified.
  • Low-confidence and high-impact values receive appropriate review.
  • Search permissions, exports, audit records and retention have been tested.
  • A representative benchmark includes false positives, missed results and unreadable files.
  • The responsible legal or data owner approves the final fields and use cases.

For a review workflow, see the India contract review guide, our guide to contract obligations and reminders, or contact Gotham to discuss the operating problem. Tool selection should follow a defined use case and tested dataset.

Frequently asked questions

Full-text search looks for words or phrases across document text. Clause search adds a legal or business taxonomy and may retrieve provisions expressed differently. Concept search is useful for discovery, but every result should show source evidence because similar concepts can have different legal effects.

Which contract metadata fields should we start with?

Start with fields tied to real decisions: parties and aliases, agreement type, entity, status, signing and effective dates, governing law, version or amendment relationship, renewal and notice details, and accountable owner. Add fields only when users can define and maintain them consistently.

Can AI search replace manual contract review?

No. AI can help locate and organize information, but context, exceptions, definitions, amendment effects and source quality can change the answer. Use validation proportional to consequence and keep a qualified reviewer responsible for legal interpretation.

How should amendments appear in search results?

Link each amendment to the base agreement and represent which provisions it changes, if that relationship can be verified. Disclose whether search covered base text, amendments, a consolidated version or all of them. Do not present superseded language as current without a warning.

How do we evaluate whether contract search is accurate?

Create a labeled set of representative documents and questions. Track false positives, missed relevant clauses, incorrect metadata, unreadable files and version errors separately. Review high-impact categories and retest after material configuration changes.

Should confidential contract text be sent to a public AI service?

That depends on the contract, organizational policy, service terms, data handling and applicable law. Do not upload confidential or personal information until authorized reviewers assess access, retention, training use, security and transfer terms. Use approved systems and least-privilege access.

What should we do when a document is scanned or unreadable?

Mark it unreadable or low confidence, preserve the original, and route it for OCR repair or manual review. An empty extraction is not proof that the contract lacks a clause. Record the review outcome and rerun the affected search.

This article is general workflow information, not legal advice. Verify extracted information against the operative agreement and obtain qualified review where interpretation affects rights or obligations.
How Gotham researches and reviews field guides

Share this guide