Replies: 1 comment
-
🤖 Hi, Thanks for your questions. Let's address them one by one:
As for your idea of assigning a unique random id/tag to each node's SOURCE relationship to delete specific nodes, unfortunately, the current version of LlamaIndex does not support the deletion of specific nodes individually. The However, each node does have a unique ID ( I hope this answers your questions. If you have any more questions or need further clarification, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
Hi
I'm building the nodes (TextNode) maually, I also setup the child/parent relationships for the node.
I want to know:
Will the relationships be used when building up the index ( embeedings ), like if I don't setup the relationships, will there be a big difference in query ?
Do I have to setup the SOURCE relationship as well? Will there be a difference if set/not set the SOURCE realtionship for the node?
Actually I'm using pinecode to hold the vector, I want to update just some nodes each time, I found the index.delete_nodes has been implemented yet, the only way to delele the node is to call delete_ref_doc, which will delete all the nodes belongs to the same doc_id, that' not what I want, I want to just delete specific nodes, not all of it, so my idea is that if I can assign the SOURCE relationship a unique random id/tag for each node, by doing this, the SOURCE realtionship will has nothing to do with the relationship, it will be just used for holding custom data). Later I can delete each node individually by calling the delete_ref_doc and passing the random id I generated, not sure if this will affect the query result ? )
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions