Skip to content

Suppose i have a retrieved node, how to access the metadata for the same #8632

Answered by dosubot bot
amitguptadumka asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

Hello @amitguptadumka,

It's good to see you again and I hope you're doing well.

From your question, it seems you're trying to access the relationships property of a NodeWithScore object, specifically the source_node.

In the LlamaIndex codebase, the relationships property of the NodeWithScore object is a dictionary that maps relationships to other node information. The keys of this dictionary are of the type NodeRelationship, which is an enumeration with the following possible values: SOURCE, PREVIOUS, NEXT, PARENT, and CHILD. The values associated with these keys are of the type RelatedNodeType, which can either be a single RelatedNodeInfo object or a list of RelatedNodeInfo objects.

To…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amitguptadumka
Comment options

Answer selected by amitguptadumka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant