hello there, i have some questions about preparing your knowledge base for a multimodal rag application.
referencing from this guide -
https://github.com/run-llama/llama_parse/blob/main/examples/multimodal/multimodal_rag_slide_deck.ipynbit iterates through each page and creates a
TextNode
, and at the same time, adds the page number and image path of the image as metadata.
For my case, I am using
MarkdownElementNodeParser
which separates texts and tables into
IndexNode
and
BaseNode
. Similarly I will like to add page number and image path into these nodes' metadata. But the sequence of the nodes are already jumbled up from line 2 onwards. So how can I still add the page number and image path in them? Thanks
[1] node_parser = MarkdownElementNodeParser(llm=llm)
[2] nodes = node_parser.get_nodes_from_documents([document])
[3] base_nodes, objects = node_parser.get_nodes_and_objects(nodes)