Skip to content

Production Extraction: Batch Processing, Polling, and Latency Management

This Extract v1 cookbook has been retired. Its examples targeted an interim SDK release that no longer exists; use the Extract v2 batch extraction cookbook instead.



The v1 edition of this cookbook has been retired. Its examples were written for an interim release of the llama-cloud SDK that is no longer published: they called client.extract.create(document_input_value=..., config=...) under a llama-cloud<2.0 pin, but the 1.x series exposes Extract v1 only as client.extraction, and current releases take file_input and configuration instead. The code would not run on any installable version, so it has been removed rather than left to fail.

  • Building something new, or migrating: every pattern this page covered (single-file extraction, concurrent batches with a semaphore, parse-then-extract reuse, timeouts, webhooks, schema generation and saved configurations) is maintained in the Extract v2 batch extraction cookbook. The v1 to v2 migration guide maps the old calls to the new ones.
  • Still on Extract v1: the v1 SDK guide shows the client.extraction calls for Python (llama-cloud<2.0) and TypeScript (@llamaindex/llama-cloud@1), and the other v1 examples still run against those pins.
Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/