forked from microsoft/sample-app-aoai-chatGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Cohere embedding model support to allow users to create embedding…
… indexes using cohere models (microsoft#829) Co-authored-by: Sophie Chen <sophiechen@microsoft.com>
- Loading branch information
1 parent
08f75ac
commit acf6d79
Showing
4 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# resource switch | ||
FLAG_EMBEDDING_MODEL = "AOAI" # "AOAI" or "COHERE" | ||
FLAG_COHERE = "ENGLISH" # "MULTILINGUAL" or "ENGLISH" options for Cohere embedding models | ||
|
||
# update vector dimension based on model chosen | ||
VECTOR_DIMENSION = 1536 # change it to desired, e.g., 1536 for AOAI ada 002, 1024 for COHERE | ||
|
||
# AOAI resource | ||
AZURE_OPENAI_API_VERSION = '2023-05-15' | ||
AZURE_OPENAI_ENDPOINT = "" | ||
AZURE_OPENAI_API_KEY = "" | ||
|
||
# Cohere multilingual resource | ||
COHERE_MULTILINGUAL_ENDPOINT = "" | ||
COHERE_MULTILINGUAL_API_KEY = "" | ||
|
||
# Cohere English resource | ||
COHERE_ENGLISH_ENDPOINT = "" | ||
COHERE_ENGLISH_API_KEY = "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters