An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Hi dude95,
You are using the @azure/search-documents SDK with semantic search, but the reranker score (@search.rerankerScore) always shows as N/A in your bot or web client, even after disabling vector search. This causes the system to rely on the hybrid score, which works sometimes but misses relevant answers in complex queries.
The @azure/search-documents SDK (v12.1.0) has a known issue where it doesn't always return the @search.rerankerScore, even with correct semantic search setup. However, the Azure Portal Search Explorer works fine and returns the reranker score since it fully supports the semantic pipeline.
- Use the REST API directly for testing reranker scores. This avoids SDK issues and shows raw results, including fields like
@search.rerankerScore,@search.answers, and@search.captions. - https://learn.microsoft.com/en-us/azure/search/semantic-how-to-query-request?tabs=portal-query#set-up-the-query
- If you prefer using the SDK, check if a newer version of
@azure/search-documents(after v12.1.0) fixes the issue and correctly returns the@search.rerankerScore. - As a workaround, keep using the hybrid score fallback with a smart threshold, but note it's less accurate than semantic reranking.
Kindly refer to this document to understand how ranking is scored.
https://learn.microsoft.com/en-us/azure/search/semantic-search-overview#how-ranking-is-scored
Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.
Let me know if you have any further Queries.