----------------------
The error you're encountering is likely due to changes in the API. In the recent updates, the
Node
object has been renamed to
TextNode
and some of its properties have been changed. The
source_text
attribute is no longer available. Instead, you should use the
text
attribute to access the text content of a
TextNode
object.
Here is an example of how to instantiate a
TextNode
:
from llama_index.schema import TextNode
node = TextNode(text="<text_chunk>", id_="<node_id>")
You can find more details about these changes in the
changelog ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------