The `llama-index-readers-llama-parse` library provides a LlamaIndex reader that integrates with LlamaParse. It enables parsing of various complex file types (like PDFs, PPTs, etc.) into structured markdown, which can then be easily ingested and processed by LlamaIndex for RAG and other LLM applications. The current version is 0.6.1, and it's part of the broader LlamaIndex ecosystem, implying a regular release cadence with LlamaIndex.
pip install llama-index-readers-llama-parse llama-parseVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `LlamaParseReader` and load data from a local file. It highlights the mandatory `LLAMAPARSE_API_KEY` and shows how to access the parsed documents. Remember to replace 'path/to/your/document.pdf' with an actual file path.
Set `os.environ['LLAMAPARSE_API_KEY'] = 'your_key_here'` or pass `api_key='your_key_here'` to the `LlamaParseReader` constructor.
Monitor your LlamaParse usage and consult the LlamaParse documentation for pricing and rate limit details.
Ensure both `llama-index-readers-llama-parse` and `llama-parse` are installed using `pip install llama-index-readers-llama-parse llama-parse`.
For improved responsiveness in asynchronous applications, use `await parser.load_data_async(...)`.