semantic reranker of azureaisearch #29974
Replies: 1 comment 2 replies
-
To use the def search_with_reranker_score(query: str, k: int, score_threshold: float):
# Assuming `azure_search` is an instance of AzureSearch
results = azure_search.semantic_hybrid_search_with_score(
query=query,
k=k,
score_type="reranker_score",
score_threshold=score_threshold
)
return results This function will return a list of documents and their reranker scores, filtered by the specified threshold [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use semantic reranker of azure ai search to search from Azure AI search vector store and use threshold to use most relevant documents. How can I use search.reranker score?
Beta Was this translation helpful? Give feedback.
All reactions