Find answers from the community

Home
Members
noequal
n
noequal
Offline, last seen 3 months ago
Joined September 25, 2024
n
noequal
·

`

def _delete(self, doc_id: str, **delete_kwargs: Any) -> None: """Delete a document.""" self._index_struct.delete(doc_id) self._vector_store.delete(doc_id) def delete(self, doc_id: str) -> None: """Delete a Node.""" if doc_id not in self.doc_id_dict: raise ValueError("doc_id not found in doc_id_dict") for vector_id in self.doc_id_dict[doc_id]: del self.nodes_dict[vector_id] del self.doc_id_dict[doc_id
I don't think an exception should be thrown when doc_id is not in self.doc_id_dict, because it's possible that my index is constructed like this:
return GPTQdrantIndex( nodes=[], client=qdrant_client_instance, service_context=service_context, collection_name=self._collection_name, )

I only use the client to operate on the index without loading data into memory. This used to work fine in older versions.
11 comments
L
n
n
noequal
·

Refine bug?

the refine template not update in the iteration, i debuged it,so i think refine template not re use previous answer
8 comments
L
n