def test_no_model_work_with_context_vectors_in_search(self):
        """Test to ensure that context vectors work with no_model by setting query as None
        Tests tensor search
        """

        custom_vector = [0.655 for _ in range(self.DIMENSION)]

        docs = [
            {
                "_id": "1",
                "custom_field_1":
                    {
                        "content": "test custom field content_1",
                        "vector": np.random.rand(self.DIMENSION).tolist()
                    }
            },
            {
                "_id": "2",
                "custom_field_1":
                    {
                        "content": "test custom field content_2",
                        "vector": custom_vector
                    }
            }
        ]

        for index_name in [self.structured_index_with_no_model, self.unstructured_index_with_no_model]:
            with (self.subTest(index_name=index_name)):
                tensor_fields = ["custom_field_1"] if \
                    index_name == self.unstructured_index_with_no_model else None

                mappings = {"custom_field_1": {"type": "custom_vector"}} if \
                    index_name == self.unstructured_index_with_no_model else None
                add_docs_params = AddDocsParams(index_name=index_name,
                                                docs=docs,
                                                tensor_fields=tensor_fields,
                                                mappings=mappings)
                _ = self.add_documents(config=self.config,
                                       add_docs_params=add_docs_params)

                r = tensor_search.search(config=self.config, index_name=index_name, text=None,
                                         search_method="tensor",
                                         context=SearchContext(**{"tensor": [{"vector": custom_vector,
                                                                              "weight": 1}], }))
                self.assertEqual(2, len(r["hits"]))
                self.assertEqual("2", r["hits"][0]["_id"])
                self.assertAlmostEqual(1, r["hits"][0]["_score"], places=1)

                self.assertEqual("1", r["hits"][1]["_id"])
                self.assertTrue(r["hits"][1]["_score"], r["hits"][0]["_score"])
Test to ensure that context vectors work with no_model by setting query as None
        Tests tensor search
        
tests/integ_tests/tensor_search/integ_tests/test_no_model.py