Home/AI Document Prep
RAG & AI Guide

How to Convert Ami Pro Documents for RAG Pipelines and LLM Ingestion

A practical guide to turning a legacy .SAM archive into AI-ready text — locally, securely, and at scale.

TL;DR

Convert Ami Pro documents to Markdown for retrieval and plain text for triage. Avoid PDF as an intermediate — it converts structure into layout and then makes you guess the structure back with extraction heuristics. Ami Pro Converter does this locally in bulk, so confidential documents never leave your network on their way into your private AI system.

The Problem: Legacy Documents Are Invisible to AI

If your organisation has been around for thirty years, a meaningful slice of its institutional memory is in formats no ingestion pipeline can read. Ami Pro was widely used in law firms, government departments, universities, and hospitals through the 1990s, which means founding policies, original contracts, early technical specifications, and the reasoning behind decisions still in force today may all be sitting in .sam files.

The failure mode is subtle. A retrieval system missing its historical corpus does not say "I do not have that" — it answers confidently from what it has, and the answer omits the context that explains why things are the way they are. Nobody notices, because the gap is invisible from the outside.

Step-by-Step: Ami Pro to Vector Database

The workflow for making a legacy .SAM archive AI-ready:

1

Inventory Your Source Archives

Locate every .sam file, including uppercase .SAM variants left behind by DOS and OS/2 systems, and confirm the companion .STY style sheets came across with them. Ami Pro Converter scans entire folder trees recursively, so a single pass over a retired file server usually finds more than anyone expected.

2

Convert to Markdown (and TXT for triage)

Emit both formats in one pass. Markdown feeds the index because headings, lists, and tables survive as real structure. Plain text gives you a fast way to grep the corpus, hash for duplicates, and spot empty templates before you spend embedding budget on them.

3

Chunk by Heading, Not by Character Count

Fixed-size chunking cuts through the middle of arguments and separates a conclusion from its reasoning. Split on heading boundaries with a modest overlap, and carry the heading path into the chunk text so retrieval knows where each passage came from.

4

Attach Metadata for Filtering

Tag every chunk with source filename, document date, department, and folder path. Historical corpora make metadata filtering essential — "what did the 1996 policy say" is a filter plus a search, never a search alone.

5

Embed Locally

Run a local embedding model — BGE, E5, or a Sentence-Transformers variant — rather than a hosted API. If confidentiality is the reason you are building a private system, sending the corpus to a third-party embedding endpoint undoes the premise.

6

Load Into Your Vector Store and Query

Store vectors in pgvector, Chroma, Qdrant, or Weaviate. Instruct the model to state the date of any historical source, and inject a small glossary mapping superseded department names and product codes to current ones — recall on legacy corpora improves dramatically for almost no cost.

Format Comparison: Which Output is Best for AI?

Not all outputs are equal for LLM ingestion. Here is how the realistic targets compare:

FactorMarkdownTXTHTMLPDFRaw .sam
LLM ReadabilityExcellentGoodGood (tag noise)FairNone
Token EfficiencyHighHighestLow (markup overhead)Low (extraction noise)N/A
Structure for ChunkingReal headings and tablesNoneReal headings and tablesLayout-dependentUnreadable
TablesPipe tables keep header/value linksReadable rows onlyReal table elementsHeaders detach from valuesN/A
EquationsLaTeX — searchableLaTeX or droppedImages or MathMLImages onlyN/A
Processing ComplexityDirect ingestionDirect ingestionHTML strippingPDF parser / OCRNo parser exists in the stack
Best ForRAG over documents; docs-as-codeTriage, dedup, classificationIntranet publishing + crawlingHuman reading, retention recordsNothing (source of truth only)

What is the best format to feed legacy documents into an LLM?

Markdown, in almost every case. It keeps the heading hierarchy your chunker needs, preserves table structure, and carries equations as LaTeX rather than as pictures. Use plain text alongside it for triage and deduplication. Avoid PDF as an intermediate — PDF extraction reintroduces running headers, hyphenation, and column-order confusion as noise the model then has to reason through.

Why the .STY Style Sheet Decides Chunk Quality

Markdown has no concept of "16-point bold" — it has heading levels. The only way a converter can know a line is a level-two heading rather than an emphasised paragraph is by resolving the paragraph style against the companion .STY style sheet. With it, you get a real heading hierarchy to chunk on. Without it, you get a flat sequence of paragraphs and lose the single benefit you converted to Markdown for.

So before converting an archive for a retrieval pipeline, verify the .STY files came off the old server alongside the documents. It takes a minute and it determines the quality of everything downstream.

Why Local Processing Matters for AI Pipelines

Most teams build private RAG systems specifically to keep regulated material — contracts, case files, personnel records, patient correspondence — off third-party infrastructure. Using a cloud-based converter to prepare those documents defeats the purpose, and it is easy to miss because conversion gets treated as plumbing rather than as processing.

Ami Pro Converter processes everything on your machine, so the chain of custody runs unbroken from .sam file to vector store. Pair it with a local embedding model and a self-hosted vector database and you can state honestly in a compliance review that the corpus never left the network.

Related Reading

Ready to make your legacy documents AI-ready?

Download the free trial and convert up to 10 files. See how quickly Ami Pro documents become clean, structured Markdown for your RAG pipeline.

Free trial

Full app features — up to 10 files

Windows 10 or 11

Download the installer below for the full 10-file trial. Microsoft Store install will appear here once our listing is approved.

Same free trial: download the installer or install from the Microsoft Store
InstallerAvailable nowMicrosoft StoreComing soon
Download Installer

Same trial as Store

Microsoft Store

Coming soon — listing in review

More than Ami Pro files?

Legacy File Converter · from $99

Ami Pro documents are rarely alone. Convert WordPerfect, Lotus, Works, images, and 100+ legacy formats — fully offline.

Buy Lifetime License - $49.95