Share via

Issue with SemanticSettings class

Eli Rose 0 Reputation points
2023-06-06T16:37:05.68+00:00

I am trying to update the data in my local clone of https://github.com/Azure-Samples/azure-search-openai-demo with the prepdocs.py script. However, when I try to run it with appropriate flags, I get an exception that says the SemanticSettings class does not exist. The class is not found in the azure.search.documents.indexes.models module. However, there is nothing on the internet to imply the class is deprecated, and there is documentation to suggest the class should be in the module: azure.search.documents.indexes.models.SemanticSettings class | Microsoft Learn.

What am I missing?

Azure OpenAI in Foundry Models

1 answer

Sort by: Most helpful
  1. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2023-06-07T08:26:37.2566667+00:00

    @Eli Rose Referencing the issue created in the original repo.

    I think the import in your script failed causing this issue. Looking at requirements.txt file the package of azure search that is required is azure-search-documents==11.4.0b3

    As mentioned in the github issue did you try to run prepdocs.py directly? In that case, the environment would not have installed the package from requirements.txt as mentioned in prepdocs.sh file.

    ./scripts/.venv/bin/python -m pip install -r scripts/requirements.txt

    Also, Try to follow the steps in the readme page of the project to run ./start.sh if running locally and check if it works.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

Your answer

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