Current service limits for Azure OpenAI S0 make Embedding API unusable for the purposes of this demo. Instead, if OPENAI_API_TYPE=azure is detected - the demo would load and use HugginFace HuggingFace all-MiniLM-L6-v2 embedding, which can be considerably slower then remote OpenAI embeddings.
This pull request adds Azure OpenAI support to the demo.
In addition to all the standard OpenAI parameters it requires:
Current service limits for Azure OpenAI S0 make Embedding API unusable for the purposes of this demo. Instead, if
OPENAI_API_TYPE=azure
is detected - the demo would load and use HugginFace HuggingFaceall-MiniLM-L6-v2
embedding, which can be considerably slower then remote OpenAI embeddings.