def test_query_tensor_as_string_equivalent_to_single_query(self):
        """String tensor query should work like dict with one key."""
        for index in [self.structured_text_index_score_modifiers, self.semi_structured_default_text_index]:
            with self.subTest(index=index.type):
                self.add_documents(
                    config=self.config, add_docs_params=AddDocsParams(
                        index_name=index.name, docs=self.docs_list,
                        tensor_fields=["text_field_1"] if isinstance(index, UnstructuredMarqoIndex) else None
                    )
                )

                string_query = "dogs"
                dict_query = {
                    "dogs": 1.0
                }

                str_res = tensor_search.search(
                    config=self.config, index_name=index.name, search_method="HYBRID", text=None,
                    hybrid_parameters=HybridParameters(
                        queryTensor=string_query,
                        rankingMethod=RankingMethod.Tensor,
                        retrievalMethod=RetrievalMethod.Tensor
                    ), result_count=5
                )

                dict_res = tensor_search.search(
                    config=self.config, index_name=index.name, search_method="HYBRID", text=None,
                    hybrid_parameters=HybridParameters(
                        queryTensor=dict_query,
                        rankingMethod=RankingMethod.Tensor,
                        retrievalMethod=RetrievalMethod.Tensor
                    ), result_count=5
                )

                self.assertEqual(
                    [hit["_id"] for hit in str_res["hits"]], [hit["_id"] for hit in dict_res["hits"]],
                    "String queryTensor should behave like single-entry dict"
                )
String tensor query should work like dict with one key.
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py