Skip to main content
MarkItDown is built by the AutoGen team at Microsoft, making it a natural fit for AutoGen-powered multi-agent applications. Use MarkItDown to convert documents into LLM-friendly Markdown that AutoGen agents can process and reason about.

Overview

AutoGen is a framework for building multi-agent conversational systems. MarkItDown enhances AutoGen applications by:
  • Converting diverse document formats into clean Markdown for agent consumption
  • Enabling agents to work with PDFs, Office documents, images, and more
  • Providing structured document content that agents can analyze and discuss
  • Supporting document Q&A, summarization, and collaborative analysis workflows
MarkItDown is officially maintained by the AutoGen team and designed specifically for LLM workflows.

Installation

Install both MarkItDown and AutoGen:

Basic Integration

Document Analysis with UserProxyAgent

Convert documents before passing them to AutoGen agents:

Document Q&A System

Build a multi-agent document Q&A system:

Multi-Document Analysis

Process multiple documents with collaborative agents:

RAG with AutoGen

Combine MarkItDown with Retrieval-Augmented Generation:

Automated Document Processing Pipeline

Build an automated pipeline with function calling:

Best Practices

1. Chunk Large Documents

2. Preserve Document Structure

MarkItDown’s Markdown output preserves headers, lists, and tables - use this structure:

3. Handle Multiple File Types

4. Combine with Image Descriptions

Integration Patterns

Pattern 1: Sequential Agent Processing

Pattern 2: Parallel Document Processing

Pattern 3: Interactive Document Exploration

Resources

Example: Complete Document Intelligence System