Find answers from the community

Updated last year

Is there a quick way to grab nodes by

At a glance

The community member posted a question about quickly grabbing nodes by page number, as they have an array of page numbers and want to retrieve all the nodes associated with those pages. The comments suggest that this is not easily done, but one community member provided a solution using local storage, specifically by accessing index.docstore.docs().values() to find the nodes with the relevant metadata. Another community member confirmed that they were able to implement this solution using local storage.

Is there a quick way to grab nodes by page number? I have an array of page numbers and I'd like to grab all of the nodes associated with those pages.
L
P
3 comments
oof not easily
if you are using local storage, you can access index.docstore.docs().values() and find the nodes that have the metadata for your pages
I can do it with local storage! Thanks!
Add a reply
Sign up and join the conversation on Discord