fix: model dump issue

This commit is contained in:
Timothy J. Baek 2024-10-08 11:05:57 -07:00
parent 457360dae7
commit dcab991d44

View File

@ -193,7 +193,8 @@ def query_collection(
k=k,
query_embedding=query_embedding,
)
results.append(result.model_dump())
if result is not None:
results.append(result.model_dump())
except Exception as e:
log.exception(f"Error when querying the collection: {e}")
else: