Find answers from the community

Updated 5 months ago

Can I edit the metadata of each chunk?

At a glance

The post asks if it is possible to edit the metadata of each chunk. The community members in the comments confirm that this is possible, using the syntax node.metadata["key"] = "val" to update the metadata of a node. They also suggest that updating a node that is already in the index may be more challenging. The community members indicate that this approach can be used to add information like the page URL or video URL to the metadata. However, there is no explicitly marked answer on whether this can be done at the llamacloud level.

Can I edit the metadata of each chunk?
L
p
4 comments
definitely, just node.metadata["key"] = "val"

Updating a node thats already in your index is a little more annoying though
But like if I want to add the page url, video url if in the page contents etc that's possible with node.metadata["key"] = "val"?
yea it is -- that code is just updating the metadata of a node
Can I do that in at the llamaclound level?
Add a reply
Sign up and join the conversation on Discord