How we can use the "@search.score" and "@search.rerankerScore" response in ai search api call

lakshmi 716 Reputation points
2024-05-25T17:50:43.72+00:00

Hi Team,

We are using ai search document Nuget package to find the confidence score and the file paths which has generated the answer. Below is a sample question I have tried in AI search index search query,

User's image

Tried the same questions in Open ai studio and below is the result,

User's image

If you verify both the results, in open ai its showing only the exact file which has the data and search client shows all most all files which has this keyword.

Using score or rankings core we are unable to filter it out whether the query is actually found in that specific document.

Same we are seeing in Open ai package response also where citations contain may of the documents details even if the actual data is not there also,

User's image

Is there any possible ways to fetch the exact confidence score and files which contain the query. whether its possible to use score and rank score value. As in this example case the document which has data and not has data also has a score with 2.0..

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.
994 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,042 questions
{count} votes

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.