 Compute dot-product scores between the query and sentence embeddings query_embedding, sentence_embeddings = embeddings[0], embeddings[1:] scores = (query_embedding @ sentence_embeddings.transpose(0, 1)).cpu().tolist()  sentence_score_pairs = sorted(zip(sentences[1:], scores), reverse=True) print(f"Query: {sentences[0]}") for sentence, score in sentence_score_pairs:     print(f"\nSentence: {sentence}\nScore: {score:.4f}") ```   