QuestionQ33
Implement AI capabilities in database solutionsYou have an Azure AI Search service with an index named hotels that contains a vector field named DescriptionVector. You query hotels by using the Search Documents REST API.
You add semantic ranking to a hybrid search query and find that some queries return fewer results than expected, with captions and answers missing.
Complete the hybrid search request to meet these requirements:
- Include more documents when ranking.
- Always include captions and answers.
How should you complete the REST request body?
Select
{ "search": "ocean view", "vectorQueries": [ { "vector": [/* embedding array */], "fields": "DescriptionVector", "k": "kind": "vector" } ], "queryType": "semanticConfiguration": "hotels", "captions": "answers": "top": 10, "hybridSearch": { "maxTextRecallSize": 50 } }
Community Discussion