Find answers from the community

Updated 8 months ago

hello .. am trying to understand how to

hello .. am trying to understand how to add custom metadata to a pdf document parsed with llamaparse and MarkdownElementNodeParser (i followed the demo) ... but not sure how to add custom metadata?
W
g
2 comments
Once you get the document from LlamaParse, You can add your custom metadata there directly!
Plain Text
for doc in documents:
  doc.metadata["key"] = "value"
thanks.... this works... any thoughts on how to use the metadata extractors to accomplish this ... where i'm getting confused is that all examples suggest splitting the document into nodes while with Llamaparse it seems easier to use MarkdownElementNodeParser and i'm not sure how use it in a pipeline
Add a reply
Sign up and join the conversation on Discord