I am currently using the Azure OpenAI Assistant API (2024-05-01-preview). I'm trying to use the File Search feature, but the ranking options
parameter does not seem to be working in the tools. Has it not been updated yet? Specifically, I want to set a threshold in ranking options
, but an error occurs. (No error occurs when using the OpenAI API directly.)
assistant = client.beta.assistants.update(
assistant_id=assistant_id,
description = description,
instructions = instructions,
tools=[{"type":"file_search",
"file_search":{
"max_num_results": 5,
"ranking_options" : {
"score_threshold" : 0.6
}
}}],
tool_resources={"file_search": {"vector_store_ids": [vector_store_id]}},
temperature=0.00001,
model="gpt-4o"
)
Additionally, when outputting the run step
, the applied ranking options
and the returned file search results were displayed when using the OpenAI API directly. However, in Azure OpenAI Assistant, it shows file_search=FileSearch(ranking_options=None, results=None)
, making it difficult to determine if the file search is functioning correctly.
What could be the issue?