Find answers from the community

Updated 2 months ago

what's the purpose of the `external_id` column in the PGVectorStore?

@kapa.ai what's the purpose of the external_id column in the PGVectorStore?
k
D
5 comments
Please stand by @DanielBank as I search the knowledge base. I normally take about 15 seconds or so. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not mention an external_id column in the PGVectorStore. For more detailed information, you may want to refer to the LlamaIndex documentation ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
@kapa.ai can I set the external_id for nodes when I insert them into embedding table?
Let me check the knowledge base for you again. One moment! :books:
----------------------
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 ():

Plain Text
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:
----------------------
Add a reply
Sign up and join the conversation on Discord