Issue with LlamaParse ... #391

Closed
opened 2026-02-16 00:17:42 -05:00 by yindo · 3 comments
Owner

Originally created by @sumit-codedino on GitHub (Dec 28, 2024).

Originally assigned to: @BinaryBrain on GitHub.

Describe the bug
I have been trying to use the structured output functionality. Whenever I provide a json schema I get an error message saying "Invalid structured output schema. Please provide a valid JSON schema."

[
{
"pageNumber": 1,
"pageTitle": "Introduction"
},
{
"pageNumber": 2,
"pageTitle": "Overview"
},
{
"pageNumber": 3,
"pageTitle": "Methodology"
},
{
"pageNumber": 4,
"pageTitle": "Conclusion"
}
]

Files
If possible, please provide the PDF file causing the issue.

Job ID
9362f2b8-e1d2-4d40-bbb9-07e31d9ecbe9
Uploading 7SAYGDEF9SA341565- Ronald Love.pdf…

Client:
Please remove untested options:

  • Python Library
  • API
  • Frontend (cloud.llamaindex.ai)
  • Typescript Library
  • Notebook

Additional context
Add any additional context about the problem here.
What options did you use? Premium mode, multimodal, fast mode, parsing instructions, etc.
Screenshots, code snippets, etc.

Originally created by @sumit-codedino on GitHub (Dec 28, 2024). Originally assigned to: @BinaryBrain on GitHub. **Describe the bug** I have been trying to use the structured output functionality. Whenever I provide a json schema I get an error message saying "Invalid structured output schema. Please provide a valid JSON schema." [ { "pageNumber": 1, "pageTitle": "Introduction" }, { "pageNumber": 2, "pageTitle": "Overview" }, { "pageNumber": 3, "pageTitle": "Methodology" }, { "pageNumber": 4, "pageTitle": "Conclusion" } ] **Files** If possible, please provide the PDF file causing the issue. **Job ID** 9362f2b8-e1d2-4d40-bbb9-07e31d9ecbe9 [Uploading 7SAYGDEF9SA341565- Ronald Love.pdf…]() **Client:** Please remove untested options: - Python Library - API - Frontend (cloud.llamaindex.ai) - Typescript Library - Notebook **Additional context** Add any additional context about the problem here. What options did you use? Premium mode, multimodal, fast mode, parsing instructions, etc. Screenshots, code snippets, etc.
yindo added the bug label 2026-02-16 00:17:42 -05:00
yindo closed this issue 2026-02-16 00:17:42 -05:00
Author
Owner

@logan-markewich commented on GitHub (Dec 28, 2024):

Is that the json you provided? Or part of the error message? (Can you provide the exact settings you used?)

@logan-markewich commented on GitHub (Dec 28, 2024): Is that the json you provided? Or part of the error message? (Can you provide the exact settings you used?)
Author
Owner

@BinaryBrain commented on GitHub (Jan 3, 2025):

Hi @sumit-codedino,
You need to provide a valid JSON Schema: https://json-schema.org/learn
It won't work with an array like this.

@BinaryBrain commented on GitHub (Jan 3, 2025): Hi @sumit-codedino, You need to provide a valid JSON Schema: https://json-schema.org/learn It won't work with an array like this.
Author
Owner

@sumit-codedino commented on GitHub (Jan 7, 2025):

@BinaryBrain thanks for the help, I thought a json structure would also do the job, my bad. Love this new update though.

@sumit-codedino commented on GitHub (Jan 7, 2025): @BinaryBrain thanks for the help, I thought a json structure would also do the job, my bad. Love this new update though.
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#391