def test_recommend_defaults(self):
        """
        Test recommend with only required fields provided
        """
        docs = [
            {
                "_id": "1",
                "title": "Red orchid",
                "tags": ["flower", "orchid"],
            },
            {
                "_id": "2",
                "title": "Red rose",
                "tags": ["flower"],
            },
            {
                "_id": "3",
                "title": "Europe",
                "tags": ["continent"],
            },
        ]

        for index_name in [self.structured_index_name, self.unstructured_index_name]:
            with self.subTest(index_name):
                tensor_fields = ["title"] if index_name == self.unstructured_index_name else None
                add_docs_results = self.client.index(index_name).add_documents(docs, tensor_fields=tensor_fields)

                if add_docs_results["errors"]:
                    raise Exception(f"Failed to add documents to index {index_name}")

                res = self.client.index(index_name).recommend(
                    documents=['1', '2']
                )

                ids = [doc["_id"] for doc in res["hits"]]
                self.assertEqual(set(ids), {"3"})

        Test recommend with only required fields provided
        
tests/api_tests/v1/tests/api_tests/test_recommend.py