79465227

Date: 2025-02-25 01:56:44
Score: 1.5
Natty:
Report link

change the query code from

results = collection.query(query_embeddings=[query_embedding], n_results=1)

to

results = collection.query(query_embeddings=[query_embedding], n_results=1, include=["embeddings"])

would fix the problem

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ethan