Skip to content
English
  • There are no suggestions because the search field is empty.

Classifying Content Against Your Retention Schedule

A records retention schedule says which records series each record belongs to, and so how long it’s kept. Applying it to existing content by hand means someone opens each file and decides. Across file shares and systems with millions of files, that work rarely gets done.

This guide sets up AI analysis in Shinydocs Pro to suggest a series for every document. The model works the way a records analyst does, from the most general level of the schedule to the most specific: first the function, then the activity, then the series. For example:

Corporate administration > Advice and assistance > CB2020-011 Provision of advice, assistance or information

Each answer is saved on the document as a field. Your records team then checks a sample, records the right code with a tag, and uses those corrections to improve the instructions the model works from.

The guide covers both kinds of schedule: one with levels, like the example above, and a flat list of series. For how AI analysis works in general, see Classifying Content with Your Own AI Questions.

What you’ll end up with

  • Four answer fields on every document: ai-text-analysis-document_type (what kind of document it is, in a few words), ai-text-analysis-function, ai-text-analysis-activity and ai-text-analysis-record_series. A flat schedule has only the first and last.
  • A tag, Records-class, on every document someone has checked, holding the right series code.
  • A score: how many of the checked documents the model got right. You use it to tell whether a change to the instructions helped.

Before you start

  • Everything AI analysis needs. The Intelligence Engine add-on, the AI Analysis Tool feature flag and a model that generates text. See Before you start in Classifying Content with Your Own AI Questions.
  • Tagging in Catalog. Your reviewers record the right code with a tag, which needs the Tagging in Catalog feature flag. See Tagging items in the Shinydocs Pro Catalog.
  • Your retention schedule as a spreadsheet or document, with a code for every series.
  • A test folder of about 50 documents you know well, covering at least 8 different series.
  • A model on your own hardware. A retention schedule and your documents shouldn’t leave your network. See Shinydocs Private AI.

Step 1: Choose a model

Choosing the right model is a good part of getting good answers. Picking one series out of dozens, from a long schedule, is hard work for a model, and small models do it poorly. The model vendors’ own long-context tests show models with under about 10 billion parameters finding the right detail in long text far less often than models with 27 to 31 billion. Use the largest model your hardware runs comfortably, and don’t use models smaller than the ones listed here.

Choose by how much memory the GPU on your model server has:

GPU memory First choice Second choice Use
16 GB Gemma 4 12B
ollama pull gemma4:12b-it-q4_K_M
Qwen 3.5 9B
ollama pull qwen3.5:9b-q4_K_M
Option B, or Option A for a flat schedule. Expect more mistakes than with a larger model, and check more documents.
32 GB Qwen 3.8 27B
ollama pull qwen3.8:27b-q4_K_M
Gemma 4 31B
ollama pull gemma4:31b-it-q4_K_M
Option A or Option B, as Step 4 says.
64 GB or more Qwen 3.8 27B, 8-bit
ollama pull qwen3.8:27b-q8_0
Gemma 4 31B, 8-bit
ollama pull gemma4:31b-it-q8_0
Option A or Option B, as Step 4 says. The 8-bit versions are slightly more accurate and leave memory to spare.

Start with the first choice. If its answers are still poor after you’ve worked through Improve the answers, add the second choice as another model, choose it in your prompts and compare the scores.

  • Run them on Ollama 0.31.2 or later. Earlier versions could ignore the answer format for some Qwen models when thinking was off. See the Ollama Quick-Start Guide for installing it and pulling models.
  • With LM Studio, download the same models from its search instead.
  • Add the model in Shinydocs Pro under Settings > Intelligence, on the Models tab, as a model that Generates text. See the Intelligence Configuration Guide (for Search and AI Enrichment).
  • Nothing else should share the GPU while AI analysis runs, including other models. If the model doesn’t fit in GPU memory, part of it runs on the CPU and every document takes many times longer. On the model server, ollama ps shows 100% GPU under PROCESSOR when it fits.

These models were current in November 2026. Model names and sizes are set by their vendors and by Ollama, and newer models come out often; see Ollama’s model library.

Step 2: Turn your schedule into an outline

The model only knows your schedule from what you paste into the prompt, so this step decides how good the answers are. Write one line per function, activity and series, in this form:

FUNCTION <code>: <name>. <what it covers>
ACTIVITY <code>: <name>. <what it covers>
SERIES <code>: <title>. Includes: <kinds of documents>. Excludes: <kinds of documents> (use <other code>).

Indent each activity by two spaces and each series by four.

Here’s the outline for Contoso Bank’s schedule, which the examples in this guide use:

FUNCTION ADM: Corporate administration. Running the bank as an organization: governance, policies, internal advice and general enquiries.
ACTIVITY ADM-ADV: Advice and assistance. Answering questions from staff, customers and the public.
SERIES CB2020-011: Provision of advice, assistance or information. Includes: routine replies to enquiries, how-to answers, information requests that need no further action. Excludes: customer complaints (use CB2020-311).
ACTIVITY ADM-POL: Policies and procedures.
SERIES CB2020-020: Approved policies and procedures. Includes: approved policies, final procedures and standards. Excludes: drafts (use CB2020-021).
SERIES CB2020-021: Policy development. Includes: drafts, consultation comments and working papers for a policy.
ACTIVITY ADM-TRN: Transitory records.
SERIES CB2020-090: Transitory records. Includes: convenience copies, meeting reminders, out-of-office notices and routine notices with no lasting value.
FUNCTION LND: Lending. Credit for customers: mortgages, personal and business loans, lines of credit.
ACTIVITY LND-ORG: Loan origination. Deciding whether to lend.
SERIES CB2020-101: Approved loan files. Includes: applications that were approved, credit reports, property appraisals, approval memos, signed loan agreements. Excludes: declined or withdrawn applications (use CB2020-102).
SERIES CB2020-102: Declined and withdrawn applications. Includes: applications that were declined or withdrawn, decline letters.
ACTIVITY LND-SRV: Loan servicing. Managing loans after they are made.
SERIES CB2020-110: Loan payment records. Includes: payment histories, loan statements, payout letters, mortgage discharges.
SERIES CB2020-111: Collections and recovery. Includes: arrears notices, payment arrangements, demand letters, write-off approvals.
FUNCTION DEP: Deposit accounts. Customers' chequing, savings and term deposit accounts.
ACTIVITY DEP-ACC: Account opening and maintenance.
SERIES CB2020-301: Account opening records. Includes: account applications, signature cards, account agreements, identification collected at opening. Excludes: anti-money laundering reviews (use CB2020-201).
SERIES CB2020-302: Account statements and transactions. Includes: statements, deposit and withdrawal records, cheque images, wire transfer records.
ACTIVITY DEP-SVC: Customer service.
SERIES CB2020-311: Customer complaints. Includes: complaint letters and emails, investigation notes, resolution letters.
FUNCTION CMP: Compliance and risk. Meeting regulatory obligations and managing risk.
ACTIVITY CMP-AML: Anti-money laundering.
SERIES CB2020-201: Customer due diligence. Includes: know-your-customer reviews, beneficial ownership records, enhanced due diligence. Excludes: forms completed only to open an account (use CB2020-301).
SERIES CB2020-202: Suspicious transaction reporting. Includes: internal referrals, investigation files, reports filed with the regulator.
ACTIVITY CMP-REG: Regulatory reporting.
SERIES CB2020-210: Regulatory returns and filings. Includes: periodic returns, capital and liquidity reports, correspondence with the regulator about filings.
FUNCTION FIN: Finance. The bank's own accounts, not customer accounts.
ACTIVITY FIN-AP: Accounts payable.
SERIES CB2020-401: Supplier invoices and payments. Includes: invoices, credit notes, payment approvals, remittance advice. Excludes: supplier contracts (use CB2020-601).
ACTIVITY FIN-BUD: Budgeting and planning.
SERIES CB2020-410: Budgets and forecasts. Includes: annual budgets, forecasts, variance reports.
FUNCTION HRM: Human resources. The bank's own employees.
ACTIVITY HRM-EMP: Employee files.
SERIES CB2020-501: Personnel files. Includes: offer letters, employment contracts, performance reviews, disciplinary and termination records.
ACTIVITY HRM-REC: Recruitment.
SERIES CB2020-510: Unsuccessful candidates. Includes: resumes, interview notes and reference checks for people who weren't hired. Excludes: records of people who were hired (use CB2020-501).
FUNCTION LEG: Legal. Legal matters, and agreements with other organizations.
ACTIVITY LEG-CON: Contracts.
SERIES CB2020-601: Contracts with suppliers and partners. Includes: signed contracts, amendments, statements of work, non-disclosure agreements. Excludes: customer loan and account agreements (use CB2020-101 or CB2020-301).
ACTIVITY LEG-LIT: Litigation.
SERIES CB2020-610: Litigation files. Includes: claims, pleadings, legal opinions and settlement agreements for a lawsuit or legal dispute.

Follow these rules:

  • Give every level a short code. If your schedule has codes only for series, make up short codes for functions and activities, such as LND and LND-ORG. The model answers with codes, and short codes are easier to answer exactly.
  • Use the series code exactly as it appears in your schedule, such as CB2020-101. That’s the code your records team will look for.
  • Write Includes and Excludes notes that name kinds of documents, such as credit reports, property appraisals and signed loan agreements. These notes matter more than the series title. Most schedules already have scope notes or examples; turn them into these lines.
  • Point an Excludes note at the right series, such as (use CB2020-102), wherever two series are easy to confuse.
  • Leave out retention periods, triggers and legal citations. They don’t help the model choose and make every request longer.
  • No names of people, customers or clients. The outline is sent with every document and saved in the settings.

If your schedule is flat, write only the series lines, without indenting them:

SERIES CB2020-011: Provision of advice, assistance or information. Includes: routine replies to enquiries, how-to answers. Excludes: customer complaints (use CB2020-311).
SERIES CB2020-101: Approved loan files. Includes: approved applications, credit reports, appraisals, signed loan agreements. Excludes: declined applications (use CB2020-102).
SERIES CB2020-102: Declined and withdrawn applications. Includes: declined or withdrawn applications, decline letters.
SERIES CB2020-311: Customer complaints. Includes: complaint letters and emails, investigation notes, resolution letters.

If your schedule has two levels, such as functions and series, leave out the activity lines. In Option A, also delete the activity line and the rule that mentions the activity from the system prompt, and don’t add the activity field.

Step 3: Set how much the model reads

For every document, the model has to hold three things at once: your instructions (including the schedule), the document’s text, and its answer. Together they must fit in the model’s context window, or the document fails with no answer. Two settings control this.

How much text the model reads from each document. When Shinydocs Pro reads a file, it keeps up to 30,000 characters of its text by default (Settings > Analysis, Extraction tab, Text kept per file, which can be raised to 2,000,000). A prompt’s Document text limit then decides how much of that is sent to the model. Set it to 12000. The first 12,000 characters, about four pages, are nearly always enough to tell what a document is, and sending less makes every document quicker. Don’t leave it at 0: that sends everything the file has, which can be far more than any context window holds.

How much the model can hold. A model’s context window is its Max Supported Tokens. Go to Settings > Intelligence, open the Models tab, select the pencil next to the model and turn on Advanced Options. A model starts at 16,384 when it’s added. If the box is empty and shows Auto, enter a number from the table below. See Intelligence Configuration Guide (for Search and AI Enrichment). A token is roughly 3 to 4 characters of English text, and fewer with codes and numbers.

Set it from the length of your schedule outline (Step 2), with the document text limit at 12,000, then select Save:

Schedule outline Max Supported Tokens
Up to 15,000 characters 16384 (the default)
15,000 to 40,000 characters 32768
More than 40,000 characters Use Option B in Step 4, so each prompt holds only part of the schedule. Leave it at 16384.

A larger context window takes more of the GPU’s memory. If the model no longer fits after you raise it, use Option B instead.

Don’t clear Max Supported Tokens. Cleared, it reads Auto, and Ollama chooses the context window from the GPU’s memory, which is only 4,096 tokens on a GPU with less than 24 GB.

Step 4: Choose Option A or Option B

To find the length of your schedule outline from Step 2, paste it into Word and select Review > Word Count. Use the Characters (with spaces) figure.

Your situation Use
The outline is 40,000 characters or less, and your GPU has 32 GB of memory or more Option A: one prompt. The whole schedule is in one prompt, and the model answers every level in one go.
The outline is longer than 40,000 characters, or your GPU has 16 GB of memory Option B: one prompt per function. The first prompt chooses the function. A prompt for each function then sees only that function’s part of the schedule.
The schedule is flat (a list of series with no levels) Option A, with the flat version of the prompt.

Option A is quicker to set up and asks the model once per document. Option B takes more setting up, one prompt per function, and asks twice per document, but each request is shorter, which helps smaller models and long schedules.

Option A: one prompt

  1. Go to Settings > Analysis, open the AI tab and select Add prompt. Enter the Name Records classification.
  2. Under Documents, open Sources, tick the sources to classify and select Apply.
  3. Under Conditions, keep the two conditions the prompt starts with. Select Add condition and set parent is your test folder, for example \\fs01\shares\Records\AI-test. Copy the path from the parent column in the Catalog to get it exactly right. You’ll remove this condition once the answers are good.

  1. Under Model, choose the Model to use from Step 1. If a Thinking setting appears, set it to Off: thinking makes every document much slower.

  1. Under Instructions, paste this System prompt, then paste your outline on the line after RETENTION SCHEDULE:
You are a records analyst at Contoso Bank. Classify each document against the bank's records retention schedule, which is at the end of these instructions.

Answer the fields in order, from the most general to the most specific:
document_type: what kind of document this is, in 2 to 6 words, such as "signed loan agreement" or "supplier invoice". No names, account numbers or amounts.
function: the code of the one FUNCTION the document belongs to, such as LND.
activity: the code of one ACTIVITY under that function, such as LND-ORG.
record_series: the code of one SERIES under that activity, exactly as written, such as CB2020-101.

Rules:
- Use only codes that appear in the schedule. Never make up a code.
- Choose the activity and the series from under the function you chose.
- Classify by what the document is and why it was created, not by words it happens to mention.
- Follow the Includes and Excludes notes. They decide between similar series.
- If no series fits, or there isn't enough text to tell, answer UNCLASSIFIED for function, activity and record_series.

RETENTION SCHEDULE

For a flat schedule, use this System prompt instead, with your series lines after RETENTION SCHEDULE:

You are a records analyst at Contoso Bank. Classify each document against the bank's records retention schedule, which is at the end of these instructions.

Answer the fields in order:
document_type: what kind of document this is, in 2 to 6 words, such as "signed loan agreement" or "supplier invoice". No names, account numbers or amounts.
record_series: the code of the one SERIES the document belongs to, exactly as written, such as CB2020-101.

Rules:
- Use only codes that appear in the schedule. Never make up a code.
- Classify by what the document is and why it was created, not by words it happens to mention.
- Follow the Includes and Excludes notes. They decide between similar series.
- If no series fits, or there isn't enough text to tell, answer UNCLASSIFIED.

RETENTION SCHEDULE
  1. Replace the User prompt with this. The starting user prompt repeats the whole system prompt after the document, which would send your schedule twice:
Document name: kb-article-module-5
Document location:
Document text:


Classify this document against the retention schedule in your instructions. Work from the most general level to the most specific, and use only codes from the schedule.
  1. Set Document text limit to 12000.

  1. Under Answer, add these Fields, in this order. Shinydocs Pro asks for the fields in the order they’re listed, so list them from the most general to the most specific:
Field name Type Required What it holds
document_type Text Ticked What kind of document it is, such as signed loan agreement
function Text Ticked A function code, such as LND
activity Text Ticked An activity code, such as LND-ORG
record_series Text Ticked A series code, such as CB2020-101, or UNCLASSIFIED

For a flat schedule, add only document_type and record_series. Leave Answers to ignore as it is, and select Save changes at the bottom of the tab.

Option B: one prompt per function

Option B uses one prompt that chooses the function, then one prompt for each function. Contoso Bank’s schedule has seven functions, so it needs eight prompts. Because each function’s prompt has a condition on the first prompt’s answer, Shinydocs Pro always runs the first prompt before them, and sends each document only to the prompt for its function.

Prompt 1: the function

  1. On the AI tab, select Add prompt and enter the Name Records - function.
  2. Choose the Sources, add the parent is condition for your test folder, and choose the Model to use and Thinking, as in Option A.
  3. Paste this System prompt. Under FUNCTIONS, list each function on one line, with a description that names the kinds of documents under it:
You are a records analyst at Contoso Bank. Decide which function of the bank's records retention schedule each document belongs to. The functions are listed at the end of these instructions.

Answer the fields in order:
document_type: what kind of document this is, in 2 to 6 words, such as "signed loan agreement" or "supplier invoice". No names, account numbers or amounts.
function: the code of the one FUNCTION the document belongs to, such as LND.

Rules:
- Use only the codes listed below. Never make up a code.
- Classify by what the document is and why it was created, not by words it happens to mention.
- If no function fits, or there isn't enough text to tell, answer UNCLASSIFIED.

FUNCTIONS
FUNCTION ADM: Corporate administration. Governance, policies and procedures, advice and general enquiries, transitory records.
FUNCTION LND: Lending. Mortgages, personal and business loans, lines of credit: applications, credit decisions, loan payments, collections.
FUNCTION DEP: Deposit accounts. Customers' chequing, savings and term deposit accounts: account opening, statements, transactions, customer complaints.
FUNCTION CMP: Compliance and risk. Anti-money laundering, know-your-customer reviews, suspicious transaction reports, regulatory returns.
FUNCTION FIN: Finance. The bank's own accounts: supplier invoices and payments, budgets and forecasts.
FUNCTION HRM: Human resources. The bank's own employees: personnel files, recruitment.
FUNCTION LEG: Legal. Contracts with suppliers and partners, lawsuits and legal disputes.
  1. Replace the User prompt with the one from Option A, and set Document text limit to 12000.
  2. Add the Fields document_type and then function, both Text and both Required.

A prompt for each function

This is the prompt for Lending. Repeat it for each function, changing the name, the condition and the part of the schedule.

  1. Select Add prompt and enter the Name Records - LND.
  2. Choose the same Sources, the same Model to use and the same Thinking setting. Prompts that use the same model run together, so the model is loaded once.
  3. Under Conditions, keep the starting conditions and the parent condition. Select Add condition and open the field list. Other prompts’ answers are at the top, each marked with the prompt that gives it: choose ai-text-analysis-function (answered by Records - function). Choose is and type LND.

  1. Paste this System prompt, with the function’s own activities and series under its name:
You are a records analyst at Contoso Bank. The document belongs to the Lending function of the bank's records retention schedule. Choose its activity and series from the Lending part of the schedule, at the end of these instructions.

Answer the fields in order:
activity: the code of one ACTIVITY listed below, such as LND-ORG.
record_series: the code of one SERIES under that activity, exactly as written, such as CB2020-101.

Rules:
- Use only the codes listed below. Never make up a code.
- Classify by what the document is and why it was created, not by words it happens to mention.
- Follow the Includes and Excludes notes. They decide between similar series.
- If the document doesn't belong to Lending at all, or no series fits, answer UNCLASSIFIED for both.

LENDING
ACTIVITY LND-ORG: Loan origination. Deciding whether to lend.
SERIES CB2020-101: Approved loan files. Includes: applications that were approved, credit reports, property appraisals, approval memos, signed loan agreements. Excludes: declined or withdrawn applications (use CB2020-102).
SERIES CB2020-102: Declined and withdrawn applications. Includes: applications that were declined or withdrawn, decline letters.
ACTIVITY LND-SRV: Loan servicing. Managing loans after they are made.
SERIES CB2020-110: Loan payment records. Includes: payment histories, loan statements, payout letters, mortgage discharges.
SERIES CB2020-111: Collections and recovery. Includes: arrears notices, payment arrangements, demand letters, write-off approvals.
  1. Replace the User prompt with the one from Option A, and set Document text limit to 12000.
  2. Add the Fields activity and then record_series, both Text and both Required. Use the same field names in every function’s prompt, so all the answers land in the same two fields.

When every function has a prompt, select Save changes. For Contoso Bank, the AI tab then lists eight prompts:

A document the first prompt answers with UNCLASSIFIED isn’t sent to any function’s prompt, so its ai-text-analysis-record_series stays empty.

Step 5: Test on your test folder

  1. Go to Sources and open the source that holds your test folder. In its Analysis panel, select AI analysis, then Switch on and start (or Start, if it’s already on).
  2. When the card shows the run has finished, open the Catalog. Select Columns, the icon at the right end of the column headings, type ai-text-analysis and tick ai-text-analysis-document_type, ai-text-analysis-function, ai-text-analysis-activity and ai-text-analysis-record_series.
  3. To see only the answered documents, on the ai-text-analysis-document_type column, choose Filter by condition > Is not empty.
  4. Check each answer against what you know about the documents. Expect some mistakes at this point: you fix them in the next two sections.
  5. Add the ai-text-analysis-error column too. A document with an error there wasn’t answered. If it says the document didn’t fit, raise Max Supported Tokens or lower the Document text limit (Step 3).

Work through Check and correct the answers and Improve the answers on the test folder until its score reaches your target. Then, on the AI tab, remove the parent condition from every prompt with the × at the end of its row, select Save changes, and select Run again on each source’s AI analysis card. The rest of each source is sent, and after that each update sends only new and changed documents.

A full run takes a long time: every document waits for the model. Start with one source, and leave the others until its answers are good.

Check and correct the answers

The model’s answers are suggestions. A person checks a sample of them and records the right code with the tag Records-class. Tags are saved as tag-Records-class, separately from the model’s answers, so asking the model again never changes them.

Leave the model’s answer in place when it’s wrong. The difference between the answer and the tag is what Improve the answers works from.

Check one series at a time

  1. In the Catalog, add the column tag-Records-class once at least one document has the tag. Until then, it isn’t listed.
  2. On the ai-text-analysis-record_series column, choose Filter by values > Is any of… and type one code, such as CB2020-101.
  3. Once the tag exists, on the tag-Records-class column, choose Filter by condition > Is empty, so you see only documents nobody has checked.
  4. Check about 10 documents from different folders. Use the name, the location and ai-text-analysis-document_type, and open the file from its location when they aren’t enough.
  5. Tick the documents the model got right. Select Action > Tag, choose Add tag, enter the Tag name Records-class and the Value to assign CB2020-101, and select Start tagging.

  1. For each document it got wrong, tick it and tag it the same way with the right code.
  2. Untick everything and move on to the next code.

Check UNCLASSIFIED the same way. In Option B, a document whose function is UNCLASSIFIED has no series answer, so filter ai-text-analysis-function for UNCLASSIFIED instead. If many unclassified documents are of the same kind, your outline needs a note for them, or your schedule is missing a series: ask your records team.


Tick the documents before you tag. With no documents ticked, an action covers every document that matches your filters, so a tag would record the model’s answer as checked on documents nobody looked at.

Change a code someone recorded

A tag holds a list of values, so adding a second code keeps the first. To change one, tick the document, select Action > Tag, choose Remove tag and remove the Records-class value that’s wrong. Then add the right one.

Improve the answers

The model doesn’t learn from your tags. Answers only get better when you change what the model is told: your outline, its notes and the rules in the prompt. Your checked documents tell you what to change, and then act as a test to show whether the change helped.

Agree a target score with your records team before you start, for example 90%: 9 in every 10 checked documents right. Until the score reaches it, keep the answers as suggestions for people to check.

1. Score the answers and find the mistakes

  1. In the Catalog, on the tag-Records-class column, choose Filter by condition > Is not empty.
  2. Show only these columns: Name, ai-text-analysis-document_type, ai-text-analysis-record_series and tag-Records-class.
  3. Select Action > Report, untick Export all fields and start the report. Download it from View activity > Remediation.
  4. Open the report in Excel. In the first empty column, enter this formula in row 2 and fill it down, changing C and D to the columns that hold the model’s answer and the tag. A document with no answer counts as wrong:
=IF(C2=D2, "Right", "Wrong")
  1. Your score is the number of Right rows divided by the number of rows. Write it down with today’s date.
  2. Filter the new column to Wrong and sort by the model’s answer, then by the tag. Pairs that repeat, such as CB2020-110 where the tag says CB2020-101, are the mistakes to fix first.
  3. Look down the model’s answers for codes that aren’t in your schedule at all. A model can make up a code; if it does often, use a larger model or Option B.

2. Change the outline

Before you change anything, copy the whole System prompt into a text file named with today’s date and score. Prompts have no version history, so this is how you go back if a change makes things worse.

Then, for the two or three mistakes that repeat most:

  • Add what the model missed to the right series. Put the ai-text-analysis-document_type of the missed documents in its Includes note.
  • Add an Excludes note to the series the model chose by mistake, pointing at the right one.
  • If the function was wrong, add the same kinds of documents to the right function’s description. In Option B, that’s in Records - function.
  • If one kind of mistake happens across many series, add one rule to the Rules list instead.

For example, Contoso Bank’s model kept putting commitment letters under loan payments, and mortgage renewals under approved loans. Before:

SERIES CB2020-101: Approved loan files. Includes: applications that were approved, credit reports, property appraisals, approval memos, signed loan agreements. Excludes: declined or withdrawn applications (use CB2020-102).

After:

SERIES CB2020-101: Approved loan files. Includes: applications that were approved, credit reports, property appraisals, approval memos, signed loan agreements, commitment letters, loan conditions checklists. Excludes: declined or withdrawn applications (use CB2020-102); mortgage renewal and payout letters (use CB2020-110).

And a rule for a mistake that kept happening across functions:

- A signed agreement with a customer belongs with that customer's loan or account, not with Legal.

Describe kinds of documents in a few words. Don’t paste text from real documents into the prompt: it would be sent with every document and saved in the settings, and a model copies from examples too closely. Change a few things at a time, so you can tell which change helped. Select Save changes.

3. Ask again for the checked documents

  1. In the Catalog, filter tag-Records-class with Is not empty again. Don’t tick anything.
  2. Select Action > Tag, choose Remove tag, select ai-text-analysis-document_type and ai-text-analysis-record_series (AI analysis fields are shown in green) and remove them. This takes the model’s answers off the checked documents only, and marks them to be asked again. Their Records-class tags stay.
  3. On each source’s AI analysis card, select Run again. Only the documents without an answer are sent, so this is quick.
  4. Score the answers again, as in part 1.

If the score went up and no new mistakes appeared, keep the change. If it went down, paste back the system prompt you saved and try a different change. Repeat until the score stops improving.

If the score stops improving and still isn’t good enough, try these, one at a time, scoring after each: set Thinking to Low on the prompts, which is slower but more careful; use the second-choice model from Step 1; or, if you’re on Option A, move to Option B.

4. Ask again for everything else

When you’re happy with the score, ask the model again about the documents nobody has checked, so they get the improved answers too. On each source’s AI analysis card, select the arrow next to Run again and choose Re-run. This asks every prompt again on every document it applies to, so it takes as long as the first full run.

Keep checking a sample from time to time, especially of new documents. Each check adds to the documents your score is based on, and makes it more reliable.

What this can’t do

  • It can’t limit answers to your codes. The model is told to use only codes from the schedule, but it can still make one up. Check the report for codes that aren’t in your schedule.
  • It doesn’t learn by itself. Tags record what’s right, but the model’s answers only change when you change the prompt and ask again.
  • It reads only the start of each document, up to the Document text limit, and only the text Shinydocs Pro extracted. Scans with no readable text get no answer.
  • It judges each document on its own, from its name, location and text. It doesn’t see the other documents in the folder.
  • It doesn’t work out retention periods or disposal dates. It suggests a series; applying the schedule’s retention rules is up to your records program.


Keep a person in the loop. Treat the answers as suggestions. Before you report on, move or dispose of records based on them, have your records team confirm them. Only Control Center administrators can dispose of files, and a disposal can’t be undone. See Disposal in Shinydocs Pro.

Let’s review

By classifying against your retention schedule with AI analysis, you can:

  • Suggest a records series for every document, working from function to activity to series as a records analyst would.
  • Use one prompt for a flat or short schedule, or one prompt per function for a long one.
  • Record the right code with the Records-class tag, separately from the model’s answer.
  • Score the model on the documents you’ve checked, and improve the schedule’s notes until the score is good enough to rely on.