def test_search_score(self):
        """Test to ensure that the score is the same for the same query with different context vectors combinations."""
        for index_name in [self.structured_index_with_random_model, self.unstructured_index_with_random_model]:
            tensor_fields = ["text_field_1"] if index_name == self.unstructured_index_with_random_model else None
            self.add_documents(config=self.config, add_docs_params=
                                        AddDocsParams(index_name=index_name,
                                                      docs=[{"text_field_1": "A rider", "_id": "1"}],
                                                      tensor_fields=tensor_fields
                                                      )
                               )
            with self.subTest(msg=index_name):
                query = {
                    "A rider is riding a horse jumping over the barrier": 1,
                }

                res_1 = tensor_search.search(config=self.config, index_name=index_name, text=query)
                res_2 = tensor_search.search(config=self.config, index_name=index_name, text=query, context=
                SearchContext(**{"tensor": [{"vector": [1, ] * self.DIMENSION, "weight": 0}, {"vector": [2, ] * self.DIMENSION, "weight": 0}], }))
                res_3 = tensor_search.search(config=self.config, index_name=index_name, text=query, context=
                SearchContext(**{"tensor": [{"vector": [1, ] * self.DIMENSION, "weight": -1}, {"vector": [1, ] * self.DIMENSION, "weight": 1}], }))

                self.assertEqual(res_1["hits"][0]["_score"], res_2["hits"][0]["_score"])
                self.assertEqual(res_1["hits"][0]["_score"], res_3["hits"][0]["_score"])
Test to ensure that the score is the same for the same query with different context vectors combinations.
tests/integ_tests/tensor_search/test_context_vectors_search.py