Instruction 02

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Exploring How Azure AI Search performs Hybrid Search

In Azure AI Search, the query for a hybrid search contains both search and vectors parameters. The query is converted to a hybrid query, allowing both types of searches to be executed in parallel. Their results are combined, reranked using Reciprocal Rank Fusion (RRF), and returned quickly and efficiently. Ultimately, you get the best of both worlds in a single search operation.

{
  "count": true,
  "search": "psychological thriller exploring technology's impact on society",
  "filters": [
    "category eq 'Thriller' and id eq '50'"
  ],
  "facets": [
    "category"
  ],
  "select": [
    "id",
    "title",
    "content",
    "category"
  ],
  "queryType": "full",
  "queryLanguage": "en-us",
  "semanticConfiguration": "default",
  "vectors": [
    {
      "value": [ <array of embeddings> ],
      "k": 7,
      "fields": "DescriptionVector"
    },
    {
      "value": [ <array of embeddings> ],
      "k": 7,
      "fields": "Description_frVector"
    }
  ]
}
See forum comments
Download course materials from Github
Previous: Instruction 01 Next: Demo