Find answers from the community

Updated 6 months ago

Node and IndexNode

At a glance

The community member is asking about the difference between Node and IndexNode, and why IndexNode is specifically used when creating DocumentAgents. Another community member explains that Node is a fixed-size collection of document information and metadata, while IndexNode has the same functionality but can also reference indices, query engines, and retrievers, which may help the agent query better. However, the community member notes that a more detailed explanation on the second question will have to wait for Logan.

Useful resources
Need a little info pleasee.
What is the difference between Node and IndexNode. Why do we specifically use IndexNode when cretaing DocumentAgents?
W
r
2 comments
I can try to help you for the first query

Nodes is basically a fixed size collection of document information along with other details related to nodes like prev/next node infor, metadata etc

IndexNode works the same way but in addition to this it can have a reference to a indices, query engines, retrievers.

https://github.com/run-llama/llama_index/blob/cb8d1aa5ec767edc7f5be30e91122710eb08547d/llama_index/schema.py#L400

Maybe having this reference helps the agent to query better.

For better explanation on the second question we will have to wait for Logan πŸ˜…
Thankyou @WhiteFang_Jr !
Add a reply
Sign up and join the conversation on Discord