The target_page parameter does not work correctly #173

Closed
opened 2026-02-16 00:17:03 -05:00 by yindo · 2 comments
Owner

Originally created by @KevinCaballeroCuriel on GitHub (Jul 4, 2024).

Originally assigned to: @hexapode on GitHub.

I only need to parse the first page:

I tried like this:

document = LlamaParse(
    language="es",
    result_type="markdown",
    target_page="0,",
    parsing_instruction=parsing_instruction
).load_data("path")

And I also tried like this:

document = LlamaParse(
    language="es",
    result_type="markdown",
    target_page="0",
    parsing_instruction=parsing_instruction
).load_data("path")

But neither of both worked, it continued parsing all the pages and spending tokens for each page

Originally created by @KevinCaballeroCuriel on GitHub (Jul 4, 2024). Originally assigned to: @hexapode on GitHub. I only need to parse the first page: I tried like this: ``` document = LlamaParse( language="es", result_type="markdown", target_page="0,", parsing_instruction=parsing_instruction ).load_data("path") ``` And I also tried like this: ``` document = LlamaParse( language="es", result_type="markdown", target_page="0", parsing_instruction=parsing_instruction ).load_data("path") ``` But neither of both worked, it continued parsing all the pages and spending tokens for each page
yindo added the bug label 2026-02-16 00:17:03 -05:00
yindo closed this issue 2026-02-16 00:17:03 -05:00
Author
Owner

@hexapode commented on GitHub (Jul 5, 2024):

The correct syntaxe is target_pages (with a s)

This should work

document = LlamaParse(
    language="es",
    result_type="markdown",
    target_pages="0",
    parsing_instruction=parsing_instruction
).load_data("path")

Let me know if this fix the issue for you

@hexapode commented on GitHub (Jul 5, 2024): The correct syntaxe is target_pages (with a s) This should work ``` document = LlamaParse( language="es", result_type="markdown", target_pages="0", parsing_instruction=parsing_instruction ).load_data("path") ``` Let me know if this fix the issue for you
Author
Owner

@hexapode commented on GitHub (Jul 5, 2024):

The doc is also updated, we were speaking about target_page instead of target_pages

https://docs.cloud.llamaindex.ai/llamaparse/features/parse_region

@hexapode commented on GitHub (Jul 5, 2024): The doc is also updated, we were speaking about `target_page` instead of `target_pages` https://docs.cloud.llamaindex.ai/llamaparse/features/parse_region
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#173