def test_tensor_search_with_custom_vector_query(self):
        """
        Tests that using a custom vector works as expected with marqo
        """
        # test with no context and context
        docs = [
                   {"text_field_1": "some text", "text_field_2": "Close match hehehe", "int_field_1": 1},
               ] * 10
        self.add_documents(
            config=self.config,
            add_docs_params=AddDocsParams(
                index_name=self.default_text_index,
                docs=docs,
            )
        )

        res = tensor_search.search(
            text=CustomVectorQuery(
                customVector=CustomVectorQuery.CustomVector(content="This text is ignored", vector=[1, ] * 384)
            ),
            config=self.config,
            index_name=self.default_text_index,
            result_count=5
        )
        self.assertIn("hits", res)
        self.assertEqual(5, len(res["hits"]))

        # text with context and content
        res = tensor_search.search(
            text=CustomVectorQuery(
                customVector=CustomVectorQuery.CustomVector(content="This text is ignored", vector=[1, ] * 384)
            ),
            config=self.config,
            index_name=self.default_text_index,
            context=SearchContext(
                **{
                    "tensor": [
                        {"vector": [1, ] * 384, "weight": 1},
                        {"vector": [2, ] * 384, "weight": 2}
                    ]
                }
            ),
            result_count=5
        )
        self.assertIn("hits", res)
        self.assertEqual(5, len(res["hits"]))

        # test not context and no content
        res = tensor_search.search(
            text=CustomVectorQuery(
                customVector=CustomVectorQuery.CustomVector(vector=[1, ] * 384)
            ), config=self.config,
            index_name=self.default_text_index,
            result_count=5
        )
        self.assertIn("hits", res)
        self.assertEqual(5, len(res["hits"]))

        Tests that using a custom vector works as expected with marqo
        
tests/integ_tests/tensor_search/integ_tests/test_search_structured.py