You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@abstractmethoddefinsert(self, name, vectors, payloads=None, ids=None):
"""Insert vectors into a collection."""pass
but acutal implemention is:
definsert(self, vectors: list, payloads: list=None, ids: list=None):
""" Insert vectors into a collection. Args: vectors (list): List of vectors to insert. payloads (list, optional): List of payloads corresponding to vectors. Defaults to None. ids (list, optional): List of IDs corresponding to vectors. Defaults to None. """logger.info(f"Inserting {len(vectors)} vectors into collection {self.collection_name}")
points= [
PointStruct(
id=idxifidsisNoneelseids[idx],
vector=vector,
payload=payloads[idx] ifpayloadselse {},
)
foridx, vectorinenumerate(vectors)
]
self.client.upsert(collection_name=self.collection_name, points=points)
with out name param.
name is not needed in abstract methods
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
for example:
but acutal implemention is:
with out name param.
name
is not needed in abstract methodsThe text was updated successfully, but these errors were encountered: