LlamaParse
Lost points on 2 checks
- time6/10
- efficiency6/10
The agent successfully completed all task requirements: (1) downloaded the IRS Form W-9 PDF using curl, (2) installed llama-parse CLI via pip, (3) used the llama-parse CLI binary (not SDK or raw API) to parse the PDF with `llama-parse fw9.pdf --result-type markdown --output-file fw9.md`, (4) printed the parsed output showing extracted text content including the form title, field names, tables with structured data (Social security number, Employer identification number fields), and certification text. The CLI properly authenticated using the LLAMA_CLOUD_API_KEY environment variable. Output was saved to fw9.md (468 lines, ~50KB) and the first 180 lines were displayed showing well-structured markdown content with headers, tables, and text extraction from the PDF.
env_var auth + non-interactive + JSON output = best, browser-only auth = poor
Using the llama-parse CLI (LlamaParse), parse a document:
1. Download this sample PDF: https://www.irs.gov/pub/irs-pdf/fw9.pdf
2. Use the llama-parse CLI to parse the PDF into structured output (markdown, JSON, or text)
3. Print the parsed output showing extracted text content, tables, or structure
Use ONLY the llama-parse CLI for all operations. Do NOT use the Python SDK or raw API calls.
You MUST use the `llama-parse` CLI to accomplish this task.
Do NOT write Python scripts that import the SDK — use CLI commands via the terminal.
If you need help with CLI commands, check the documentation: https://pypi.org/project/llama-parse/
You can also use `llama-parse --help` and `llama-parse <command> --help` to discover available commands.
## Setup
You need to install and authenticate the `llama-parse` CLI yourself.
### Installation
Run: `pip install llama-parse`
### Authentication
The following environment variables are already set in this environment: `LLAMA_CLOUD_API_KEY`
The CLI should pick these up automatically, or pass them to commands as needed.
## Summary
When you are done, write a JSON summary file to results.json with this structure:
{
"operations": [
{"step": 1, "description": "What you did", "command": "the CLI command", "success": true/false, "output_summary": "brief result"},
...
],
"overall_success": true/false,
"notes": ["any relevant notes about the execution"]
}Unlock analytics
See LlamaParse's score trend, layer rankings, and competitive position.
Run completed Sep 27, 2026, 2:17 PM