microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.59k stars 2.48k forks source link

add Cohere embedding model support to allow users to create embedding indexes using cohere models #829

Closed SophieGarden closed 4 months ago

SophieGarden commented 5 months ago

Motivation and Context

add cohere embedding support, to allow users to create embedding indexes using cohere models

attention needed

since I am not able to use datautlil.py line 679 client = AzureOpenAI(api_version=api_version, azure_endpoint=base_url, azure_ad_token=api_key)

I am not sure how to test this line of code.