Dateien nach "app/core" hochladen
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
This commit is contained in:
parent
62f8f4b313
commit
b8126e00c4
|
|
@ -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, vectors={primary: vec}, payload=pt.payload))
|
||||
fixed.append(rest.PointStruct(id=pt.id, vector={primary: vec}, payload=pt.payload))
|
||||
else:
|
||||
fixed.append(pt) # edges with no vector (shouldn't happen) or already correct
|
||||
return fixed
|
||||
|
|
@ -159,7 +159,7 @@ def _try_upsert_with_names(client: QdrantClient, collection: str, points: List[r
|
|||
if isinstance(vec, dict) and name in vec:
|
||||
converted.append(pt)
|
||||
elif vec is not None:
|
||||
converted.append(rest.PointStruct(id=pt.id, vectors={name: vec}, payload=pt.payload))
|
||||
converted.append(rest.PointStruct(id=pt.id, vector={name: vec}, payload=pt.payload))
|
||||
else:
|
||||
converted.append(pt)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user