QuestionQ99

VerifiedImplement AI capabilities in database solutions

You have an Azure AI Search service and an index named hotels that includes a vector field named DescriptionVector.

You query hotels by using the Search Documents REST API.

You need to implement a hybrid search query that uses DescriptionVector and includes captions.

How should you complete the REST request body? Each value may be used once, more than once, or not at all.

Drag & Drop
{
  "search": "ocean view",
  "queryType": ,
  "semanticConfiguration": ,
  "captions": ,
  "top": 10,
  "hybridSearch": { "maxTextRecallSize": 50 },
  "vectorQueries": [
    {
      "kind": "vector",
      "vector": [/* embedding array */],
      "fields": "DescriptionVector",
      "k": 50
    }
  ]
}
Explanation

Hybrid search sends text and vector queries together. Semantic captions are returned only for semantic queries, so queryType is "semantic" and the request must specify the applicable semantic configuration. "extractive" requests captions consisting of relevant passages extracted from the highest-ranked documents.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!