This commit is contained in:
1 parent
197242ca42
commit
21924541dc
1 file changed
+1
-1
@@ -136,7 +136,7 @@ def _coerce_for_collection(client: QdrantClient, collection_name: str, points: L
|
||||
if isinstance(vec, dict):
|
||||
fixed.append(pt) # already named
|
||||
elif vec is not None:
|
||||
fixed.append(rest.PointStruct(id=pt.id, vector={primary: vec}, payload=pt.payload))
|
||||
fixed.append(rest.PointStruct(id=pt.id, vectors={primary: vec}, payload=pt.payload))
|
||||
else:
|
||||
fixed.append(pt) # edges with no vector (shouldn't happen) or already correct
|
||||
return fixed
|
||||
|
||||
Reference in new issue
Block a user