in code/embedding-function/utilities/helpers/llm_helper.py [0:0]
def get_embedding_model(self):
if self.auth_type_keys:
return AzureOpenAIEmbeddings(
azure_endpoint=self.env_helper.AZURE_OPENAI_ENDPOINT,
api_key=self.env_helper.OPENAI_API_KEY,
azure_deployment=self.embedding_model,
chunk_size=1,
)
else:
return AzureOpenAIEmbeddings(
azure_endpoint=self.env_helper.AZURE_OPENAI_ENDPOINT,
azure_deployment=self.embedding_model,
chunk_size=1,
azure_ad_token_provider=self.token_provider,
)