Log in
Log into community
Find answers from the community
s
F
Y
a
P
3,278
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated last year
0
Follow
For those pdf doc being embeddinged is
For those pdf doc being embeddinged is
0
Follow
a
autratec
last year
ยท
For those pdf /doc being embeddinged, is there any way to show the source of page numbers , apart from file name ? I saw one demo using langchain, can llamaindex support that feature ?
L
a
3 comments
Share
Open in Discord
L
Logan M
last year
If you set the metadata to include extra information, then that metadata will show up in the response source nodes
For example, if I have
Doucment(text=text, metadata={"page_number": 2})
-- that information will be inherited to any nodes created from that document
a
autratec
last year
Is it an auto process to get correct page number included in the meta data or it is manual page by page setup ? Any sample code can be shared ? Thx
L
Logan M
last year
It depends on the document loader. Off the top of my head, I know the pdf loader adds page numbers to the Metadata for you automatically.
Other document types, you'll have to manage it yourself I think
Add a reply
Sign up and join the conversation on Discord
Join on Discord