Error creating vector store from exception when executing agent (.../step10_assistant_tool_file_search.py) #9002
-
Please what should be the resource to make the python/samples/getting_started_with_agents/step10_assistant_tool_file_search.py run?
I get the following error:
I would appreciate any help you can provide. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Hi @selfishark, this looks to be related to an incompatible Azure OpenAI model deployment / Azure OpenAI API version. In the first stack trace, a 404 is present. In the second stack trace, it says unable to create the vector store. I've just tested running it, and I am using a gpt-4o-mini deployment (model version 2024-07-18) with an AZURE_OPENAI_API_VERSION = "2024-08-01-preview". Can you try adjusting your model and settings, please? Per Azure's documentation, it looks like even a 2024-05-01-preview API VERSION would work... https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-reference?tabs=python |
Beta Was this translation helpful? Give feedback.
@selfishark there are two ways to have the OpenAI Assistant handle files -- via the vector store (like you've been working with recently) or via the code interpreter (as shown in this example: https://github.com/microsoft/semantic-kernel/blob/ae29d8735ad2c756135fa2a9de4baa70b250c760/python/samples/concepts/agents/assistant_agent_file_manipulation.py#L62C9-L63C52.py#L63). By passing in a file to the code interpreter it is able to use it during its analysis.