Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
I am unable to get the page label and
I am unable to get the page label and
Inactive
0
Follow
d
datadaba
9 months ago
Β·
I am unable to get the page label and file name in for PDFs in llamaparse
W
v
d
10 comments
Share
Open in Discord
W
WhiteFang_Jr
9 months ago
Did you try the JSON mode?
W
WhiteFang_Jr
9 months ago
https://github.com/run-llama/llama_parse/blob/main/examples/demo_json.ipynb
v
verdverm
9 months ago
Is there a similar method for getting json response back (with the used document details) from
query()
?
W
WhiteFang_Jr
9 months ago
I don't think so! All the used nodes can be accessed via source nodes in the response object itself.
v
verdverm
9 months ago
ok, that sounds familiar. Those source nodes will contain the various metadata, document details, and segmentation (where in file) information?
v
verdverm
9 months ago
Is there a reference to what the response object looks like? Does it depend on the LLM / Vector DB?
W
WhiteFang_Jr
9 months ago
Yes
W
WhiteFang_Jr
9 months ago
When you do
.query()
and get response you can check all the retrieved source nodes like this:
print(response.source_nodes)
d
datadaba
9 months ago
Thanks guys
d
datadaba
9 months ago
It worked for me
Add a reply
Sign up and join the conversation on Discord
Join on Discord