In Azure AI Search, how can I use average aggregation with a scoring profile using tag functions?

Ed Ball 0 Reputation points
2025-07-31T17:12:11.8066667+00:00

If I set functionAggregation to average with a scoring profile that uses one or more tag functions, the tag functions have no effect. Using sum, minimum, or maximum works fine. But sum makes no sense with two tag functions, whereas average is exactly what one would want. How can I use average aggregation with a scoring profile using tag functions?

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 5,480 Reputation points Microsoft External Staff Moderator
    2025-07-31T19:13:35.77+00:00

    Hi @Ed Ball
    In Azure AI Search, when using a scoring profile with tag functions, setting functionAggregation to average may not yield the expected results because it seems that the tag functions do not contribute to the scoring when average aggregation is applied. This behavior is noted in the context where using sum, minimum, or maximum works correctly, but average does not seem to take effect with tag functions.

    Unfortunately, there isn't a specific workaround mentioned in the provided context to enable average aggregation with tag functions. You might want to consider using sum, minimum, or maximum as alternatives, or check if there are updates or changes in the Azure documentation or forums that address this issue.

    References:

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.