Get high-fidelity result from one-shot prompts
If you want the highest-fidelity output from a single request, ask Transform to try multiple partitioning strategies and synthesize the best result. This works best when your AI tool or agent is backed by a strong vision-language model (VLM) model:This prompt can produce worse results if your AI tool or agent is backed by a weak vision-language model (VLM). A weak VLM may use its own flawed interpretation of the document, rather than favoring the stronger partitioning strategy outputs.
Chain prompts for incremental experimentation
Instead of parsing, enriching, chunking, and embedding your files in a single request, you can chain requests together. The output from one request becomes the input for the next. Chaining is useful when you want to experiment with different options at each stage without repeating earlier stages. The following three example prompts chain together to take a document from initial parsing, through enrichment, to a retrieval-augmented generation (RAG)-ready output.Step 1: Perform the initial file parsing
Start with parsing the file into JSON using the High Res partitioning strategy. Ask Transform what other options are available so you can experiment further:Step 2: Add enrichments to improve results
Using the JSON output from step 1 as input, add a few typical enrichments. Ask Transform what other enrichment options are available:Enrichments are only available if you used the hi-res partitioning strategy in the previous step. The VLM partitioning strategy already includes many of the same enrichment capabilities built in. The fast partitioning strategy does not support enrichments. For more information, see Partitioning.
Step 3: Prepare files for RAG
Using the enriched JSON output from step 2 as input, prepare the document for retrieval-augmented generation (RAG) by chunking it and adding embeddings. Ask Transform what other chunking and embedding options are available:- Chunking divides the text-based content in documents into manageable “chunks” of roughly the same size, in chronological order, to stay within the limits of an embedding model and to improve retrieval precision.
- Embedding generates vectors that represent the text extracted by Unstructured, and stores them next to the text itself.
Next steps
- Control Transform file parsing output: Control how the Unstructured Transform MCP server instructs Transform to partition, enrich, chunk, and embed the data based on your files.
- Control Transform generated sample code: Control how the Unstructured Transform MCP server generates sample curl or Python code that demonstrates how to use Transform to partition, enrich, chunk, and embed the data based on your files.
Questions? Need help?
- For technical support, request support.

