Find answers from the community

Updated 3 months ago

After updating to the current version of llama_index, I get the error "'NodeWithScore' obj

After updating to the current version of llama_index, I get the error "'NodeWithScore' object has no attribute 'extra_info'". What is the correct attribute now?
k
2 comments
Please stand by @ethan0807 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
In the recent update (v0.6.34), the extra_info attribute has been replaced with a metadata property for TextNode and Document objects. You should use metadata instead of extra_info. Here is the relevant extract from the changelog:

  • TextNode and Document have a metadata property, which replaces the extra_info property (#6586)
You can find more details in the changelog ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Add a reply
Sign up and join the conversation on Discord