Skip to content

Commit

Permalink
New Ada Similarity (sashabaranov#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrefilek authored Dec 15, 2022
1 parent 23925ad commit 9ada7ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const (
AdaCodeSearchText
BabbageCodeSearchCode
BabbageCodeSearchText
AdaSimilarityV2
)

var enumToString = map[EmbeddingModel]string{
Expand All @@ -71,6 +72,7 @@ var enumToString = map[EmbeddingModel]string{
AdaCodeSearchText: "code-search-ada-text-001",
BabbageCodeSearchCode: "code-search-babbage-code-001",
BabbageCodeSearchText: "code-search-babbage-text-001",
AdaSimilarityV2: "text-similarity-ada-002",
}

var stringToEnum = map[string]EmbeddingModel{
Expand All @@ -90,6 +92,7 @@ var stringToEnum = map[string]EmbeddingModel{
"code-search-ada-text-001": AdaCodeSearchText,
"code-search-babbage-code-001": BabbageCodeSearchCode,
"code-search-babbage-text-001": BabbageCodeSearchText,
"text-similarity-ada-002": AdaSimilarityV2,
}

// Embedding is a special format of data representation that can be easily utilized by machine
Expand Down

0 comments on commit 9ada7ea

Please sign in to comment.