An AI tool in Foundry for analyzing documents and media to classify content, extract entities, and generate structured understanding
Hi Tyler Broudou,
Welcome to Microsoft Q&A,
In-context learning with a labeledData knowledge source is only supported when the base analyzer uses the Document Analysis template. An accepted community thread confirms that the Knowledge tab and labeled-data pipeline are not wired up for other templates. If your analyzer uses a different base (e.g., a custom or invoice template), the API will accept the knowledgeSources config without error, but the build pipeline silently fails, which matches exactly what you're seeing.
Verify your analyzer's baseAnalyzerId is prebuilt-document. If not, recreate the analyzer using Document Analysis as the base template and re-attach the labeled-data knowledge source.
Try substituting gpt-4.1 or gpt-4o as models.completion and rebuild. If the labeled-data build succeeds with an older model, that confirms a gpt-5.2 compatibility gap with the in-context learning pipeline.
Please upvote and accept the answer if it helps!!