----------------------
I'm sorry, but the knowledge sources provided do not mention the ability to set an
external_id
for nodes when inserting them into an embedding table. The examples provided show how to set a
node_id
for nodes, but not an
external_id
.
For instance, when defining nodes, you can set the
node_id
directly as shown in this
source ():
from llama_index.core.schema import TextNode, NodeRelationship, RelatedNodeInfo
node1 = TextNode(text="<text_chunk>", id_="<node_id>")
node2 = TextNode(text="<text_chunk>", id_="<node_id>")
For more specific information about setting an
external_id
, you may want to refer to the
LlamaIndex documentation ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------