Last date modified: 2026-Jul-14
Custom analyses
Custom analyses provide a flexible framework for creating and executing custom AI‑powered insights per project within Relativity. Each insight acts as an independent instruction, enabling customizable results across all your legal data intelligence use cases.
Instead of relying solely on the predefined analysis types in aiR for Review (such as Relevance and Key Documents), you can create up to five Custom analysis insights per project, each acting as independent analyses for questions, extractions, classifications, or evaluative instructions applied to every eligible document. Reviewers receive per‑document outputs, dependent on their unique Custom analyses prompt.
Custom analyses support both Text and Vision analysis models. Text analyzes document extracted text, while Vision analyzes images. Each Custom insight analysis produces one text‑based output, which may include:
- Summaries
- Yes/No responses
- Classification labels
- Short explanations
- Identification
Each Custom insight consists of a unique title (up to 50 characters) and prompt instructions (up to 1000 characters). The prompt instructions tell aiR for Review how to analyze the documents and how to present the results. Examples include summarizing information, extracting items, identifying attributes, or applying classifications. These instructions form the core logic for what the aiR system model returns for each document in the Analysis Results. Each Custom insight will be listed in its own column in the Analysis Results grid and document viewer. For guidance on writing effective custom insight prompts, see Best practices for writing Custom insight prompts.
Considerations
Review the following considerations for using Custom analyses in aiR for Review:
- Unlike other analysis types in aiR for Review, Custom analysis results are not available on the Relativity Document Object until you apply them. They are initially only available in your aiR for Review project and the Viewer. To publish them to the Relativity Document Object fields, run the Apply step (see Applying the results and publishing to the Document Object).
- After the Apply process is complete, the Custom analysis results are available for export. See Exporting Custom analyses results for more information.
- Validating prompt criteria in Review Center is not supported for Custom analyses. See Prompt Criteria validation in Review Center for more information on validation.
- Insight Suggestions have no effect on how your analysis runs or its cost. They are a starting point you can use, edit, or ignore. See Using Insight Suggestions for more information.
Custom analyses workflow
The workflow for Custom analyses is similar to the other analysis types:
- Setting up a project
- Adding Custom insights and prompt criteria
- Running an analysis job
- Viewing the results
- Applying the results and publishing to the Document Object
Setting up a project
Begin by setting up the aiR for Review project as described below. For additional information on project set up, see Setting up the project.
- Navigate to the aiR for Review Project tab.
- Click New aiR for Review Project.
- Fill out the following fields on the Setup Project modal:

- Project Name—enter a name for the project.
- Description—enter a useful short description of the project.
- Data source—select the saved search that holds your document sample set. Refer to Choosing the data source for more information.
- Analysis Type—select Custom.
- Project Prompt Criteria—defaults to Start blank to write new prompt criteria from scratch.
- Prompt Criteria Name—skip this field for Custom Analysis Type.
- Custom Analysis Model—choose the analysis model desired:
- Text—run analysis on the extracted text of documents.
- Vision—run analysis on documents where their native file type is either JPEG, GIF, or PNG.
- Project Use Case—choose the option that best describes the purpose of the project. If none of the options describe the project, choose Other and type your own description in the field. It will only be used for this project. Keep this description generic and do not include any confidential or personal information. The Project Use Case field is used for reporting and management purposes and does not affect how the project runs.
- Click Create Project.
Adding Custom insights and prompt criteria
On the Custom panel, you can create and edit Custom insights and prompts. You can also delete ones that are no longer needed.
- Add up to five Custom insights using the methods below:
- Manually enter Custom insights and prompts: Enter a unique Title (up to 50 characters) for the insight. The title displays in the Analysis Results table, Custom Projects card in the Viewer, and the published output. Next, manually enter clear and descriptive instructions in the prompt text box (up to 1000 characters) that will guide aiR in analyzing documents. See Best practices for writing Custom insight prompts for more information.
- Use preset Insight Suggestions: Click the +Add button next to a Suggested Insight to automatically add it. Afterward, if needed, edit the suggestion’s prompt to fit your matter. Editing a suggested prompt is identical to editing an insight you created. See Using Insight Suggestions for more details.

- To add more Custom Insights, click + Insight to add one manually, or click + Add next to a suggested insight. Repeat the previous step for each additional insight.
- To delete a Custom insight from the list, click the vertical ellipses next to the desired title and select Delete.
- Click Save when finished adding Custom insights.
Custom insight information can be edited or deleted prior to running the analysis.
Using Insight Suggestions
Insight Suggestions are preset prompt templates that appear at the top of the prompt configuration panel. They help you get started quickly by providing automatic insights and related instructions that you can add to the panel.
The suggestions displayed correspond the analysis model you selected when setting up the project (Text or Vision):
- Text projects show text-based suggestions. For example, summarizing a document or extracting key facts, people, dates, and amounts.
- Vision projects show vision-based suggestions. For example, summarizing an image, identifying key objects, or extracting and locating visible text.
These eight Insight Suggestions (four for text documents, four for images and scans) cover some common requested needs.
| Title | Prompt description |
|---|---|
| Summarize |
Summarize this document in exactly 2-3 sentences. Focus on:
|
| Categorize document type |
Classify this document into exactly one of these categories. Respond with only the category name. - Agreement: any binding arrangement, including service agreements, leases, licenses - Correspondence: emails, letters, memos, or other person-to-person communications - Legal Filing: court documents, motions, briefs, complaints, subpoenas - Financial Record: invoices, receipts, bank statements, tax filings - Report: incident reports, audit reports, inspection reports - Other: anything that does not fit the above categories |
| Identify themes |
Identify the top 3-5 high-level themes in this document. Focus on themes that reflect the document's core ideas, not minor details. Output requirements: - 1-2 words per theme - One theme per line - No explanations, bullets, or numbering If no clear themes are present, return exactly: N/A |
| Identify individuals |
Identify up to 5 real individuals (people) named in this document. Rank individuals (people) by:
Use the earliest appearance as a tiebreaker. Include only real people, not organizations, departments, email domains, placeholder/test values, or redacted text. Return one full name per line. If none appear, return exactly: N/A |
| Title | Prompt description |
|---|---|
| Total amount |
If explicitly marked in the document, what is the total financial amount? Otherwise, respond with exactly: N/A |
| Dates |
What are the dates mentioned in this document? List them in order of appearance, using YYYY-MM-DD format. Do not include partial dates such as "January 1985" or "06/12"; only include dates where day, month and year are all shown together. If no dates are mentioned, respond with exactly: N/A |
| Logos | Does this document contain any logos? Answer Yes or No. Text-only company names are not considered logos. |
| Signature | Does this document contain a signature? Answer Yes or No. |
Running an analysis job
After setting up all the custom insights, use the steps below to run the analysis job. For additional information, see Running the analysis.
- Click Analyze [X] documents.
- Review the confirmation summary modal showing the total number of documents to be analyzed.
- Click Start Analysis.
Custom insight information cannot be edited or deleted after running the analysis.
Each Custom insight runs independently across eligible documents that meet the following criteria:
- Match the document requirements as stated in Job capacity, size limitations, and speed.
- Do not have prior results with the same prompt.
Documents that cannot be analyzed will display with errors.
Results are written to Fixed Length Text fields and will have a maximum of 3,000 characters per output.
Viewing the results
Once the analyses completes, each custom insight displays as individual columns in the Analysis Results table and in a dedicated Custom Projects card within the Viewer. For additional information, see Viewing and filtering analysis results.
Click on the Control Number link to open the document in the Viewer.
If an error displays for an insight, see How document error are handled in Custom analyses for guidance.
If you modify Custom insights, change the data source, or create a new project set, only the updated insights will re-run on the next analyses.
For more information on analyzing and filtering results, see Analyzing aiR for Review results.
To export Custom analyses results, you must first apply the results, which saves the data to the Relativity Document Object. See Applying the results and publishing to the Document Object and Exporting Custom analyses results for details on each process.
Applying the results and publishing to the Document Object
After reviewing the results, apply the prompt criteria to a document population. This publishes the results to the Relativity Document Object, where they can be used across the review workflow for filtering, sorting, and display alongside other document fields in the Document List.
- Unlike other analysis types in aiR for Review, Custom analysis results are not available on the Document Object until you apply them.
- Validating prompt criteria in Review Center is not supported for Custom analyses. See Prompt Criteria validation in Review Center for more information on validation.
Running Apply
To apply prompt criteria for a project set:
- Within the desired project set, click the project set + sign. For more information on project sets, see Using project sets.
- Select I want to apply my prompt criteria to a document population.
- Click Create Apply Set.
- Review the confirmation summary, including the estimated number of documents and insights to be processed, and add notification email addresses, if needed.
- Click Start Analysis.
To export Custom analyses results after applying the prompt criteria, see Exporting Custom analyses results for details.
How the Apply process works
When you run Apply on a project set, each insight result is written to the Document Object automatically. For every insight in your project, a field is created and populated using the naming convention aiRCustom::[Insight Name] ([Project Name]).
The Apply Set will generate new results for documents that meet the following criteria:
- Match the document requirements as stated in Job capacity, size limitations, and speed.
- Do not have prior results with the same prompt.
Existing results on the latest prompt version will not be re-written or re-charged.
After publishing, the results are immediately filterable like any other document field.
- One record per document: All of a document’s Custom analyses results are written to a single shared object on that document.
- Free-form results: Each insight publishes its own text output under its own field, reflecting the prompt you wrote.
- Errored documents are skipped: A document that errored on a given insight is not written for that field.
Re-applying a project
You can re-run and re-apply a project as your prompts evolve.
- Updates in place: Re-applying a project updates that project’s results on each document rather than creating duplicates.
- Other projects are preserved: Re-applying one Custom analyses project does not affect the published results of any other project on the same document.
Exporting Custom analyses results
Exporting Custom Analyses results directly from the Analysis Results tab is not currently supported. To export Custom Analyses results, you must publish your results to Relativity Document Object using the Apply workflow (see Applying the results and publishing to the Document Object). Following publishing, you may export your results from the Document List.
How document error are handled in Custom analyses
Custom analysis errors are reported at the insight level for each document, rather than for the document as a whole. Because each insight runs independently, one insight can succeed on a document while another fails. Each insight column shows its own success or error status.
Non-responses
Sometimes the aiR System model analyzes a document but intentionally does not return an answer. These are not errors, but rather a built-in behavior to ensure quality results. This behavior can occur when the document is blank, the text or image is too faint or illegible to read, the prompt instructions are not applicable, or the model did not find any relevant content. Instead of leaving the Analysis Results column empty, the system returns a null value to indicate that the content was analyzed by the model, but there is no conclusive answer.
Error reference
The following table provides some of the errors you may encounter, along with information on how to resolve them:
| Error | What it means | Likely resolution |
|---|---|---|
| Failed to parse completion | The aiR system model produced output that couldn’t be read in the expected format. | Retry the document. If it persists, simplify or clarify the insight’s prompt, or contact Relativity Support. |
| No content to analyze | The document had no extractable text for a text analysis. | Confirm the document has extracted text. For image-based documents, use a Vision project instead. |
| Content exceeds limits | The document’s content is too large to analyze in a single pass. | Reduce the size of the document set or split large documents. See Job capacity, size limitations, and speed. |
| File provides insufficient context | The document has too little content for the aiR system model to act on. | Verify it is the intended document. Near-empty files may return a limited result or none. |
| File is not supported | The file type provided as the data source is not supported. | Convert the file to an acceptable file format. |
| Uncategorized error occurred | An unexpected error occurred. | Retry the document. If it persists, contact Relativity Support. |
Common use cases
Custom analyses is most effective for per-document tasks that you can express as a clear instruction. Customers have explored use cases such as:
- Summarizing documents and surfacing key facts, people, and dates
- Extracting and structuring entities — names, dates, and monetary amounts
- Classifying or categorizing documents
- Describing and summarizing non-English text
- Vision tasks: describing images, identifying objects, and extracting visible or handwritten text
Best practices
To get the best results:
- Be clear and specific—clear, well-structured prompts consistently outperform vague ones. State exactly what to return and in what form.
- Define the output format—if you want results returned in a specific structure (for example, a label, a yes/no, or a short list), define it. Vague asks tend to return more than you want.
- Don’t over-constrain—piling on many conditions and caveats can sometimes reduce quality. If results degrade, simplify and iterate.
- Use one insight per question—each insight runs independently; keeping each to a single, focused task improves consistency.
- Provide good inputs for Vision analysis—higher-resolution, well-oriented images produce markedly better and more reliable results.
For additional guidance, see Best practices for writing Custom insight prompts.
Known limitations
Custom Analysis is powerful but, like any AI feature, has limits. Knowing these helps you set expectations and review results appropriately.
- Output format can vary—the aiR system model may not follow the requested structure or conditional logic perfectly across every document (for example, occasionally varying formatting or dropping a requested element). Defining the output format clearly reduces this.
- Image quality drives reliability—low-resolution, very small, or partially obscured images are the most common source of mis-identification in Vision analysis. Text in unusual orientations or scripts may also be missed.
- Handwriting and dense extraction—handwriting transcription may occasionally complete or guess characters. Output is limited to about approximately one page of text. Review handwritten and hard-to-read extractions.
- Run-to-run variation—results can vary slightly between job runs on the same document, particularly for subjective or estimative tasks. Perform quality assurance accordingly.
- Multiple values in one document—when a document contains several candidates (for example, multiple dates), the aiR system model may pick one without flagging the ambiguity.
-
Mental math—the aiR system model is not a calculator and may produce unreliable results for math-related tasks, such as adding figures or converting units.
- Configuration limits—maximum of five insights per project, prompt and output lengths are capped, and very large documents may exceed processing limits.
On this page
- Custom analyses
- Considerations
- Custom analyses workflow
- Setting up a project
- Adding Custom insights and prompt criteria
- Running an analysis job
- Viewing the results
- Applying the results and publishing to the Document Object
- Exporting Custom analyses results
- How document error are handled in Custom analyses
- Common use cases
- Best practices
- Known limitations