enum OpenAI::EmbeddingModel
Overview
Enumerates the models which can be used to generate Embedding vectors.
Defined in:
openai/api/embeddings.crEnum Members
-
Unknown =
0
-
AdaSimilarity =
1
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
BabbageSimilarity =
2
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
CurieSimilarity =
3
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
DavinciSimilarity =
4
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
AdaSearchDocument =
5
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
AdaSearchQuery =
6
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
BabbageSearchDocument =
7
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
BabbageSearchQuery =
8
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
CurieSearchDocument =
9
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
CurieSearchQuery =
10
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
DavinciSearchDocument =
11
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
DavinciSearchQuery =
12
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
AdaCodeSearchCode =
13
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
AdaCodeSearchText =
14
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
BabbageCodeSearchCode =
15
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
BabbageCodeSearchText =
16
-
Deprecated: Will be shut down on January 04, 2024. Use
AdaEmbeddingV2
instead -
AdaEmbeddingV2 =
17
Class Method Summary
Instance Method Summary
- #ada_code_search_code?
- #ada_code_search_text?
- #ada_embedding_v2?
- #ada_search_document?
- #ada_search_query?
- #ada_similarity?
- #babbage_code_search_code?
- #babbage_code_search_text?
- #babbage_search_document?
- #babbage_search_query?
- #babbage_similarity?
- #curie_search_document?
- #curie_search_query?
- #curie_similarity?
- #davinci_search_document?
- #davinci_search_query?
- #davinci_similarity?
-
#to_s(io : IO) : Nil
Appends a
String
representation of this enum member to the given io. -
#to_s
Returns a
String
representation of this enum member. - #unknown?
Class Method Detail
Instance Method Detail
Appends a String
representation of this enum member to the given io.
See also: #to_s
.
Returns a String
representation of this enum member.
In the case of regular enums, this is just the name of the member.
In the case of flag enums, it's the names joined by vertical bars, or "None",
if the value is zero.
If an enum's value doesn't match a member's value, the raw value is returned as a string.
Color::Red.to_s # => "Red"
IOMode::None.to_s # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"
Color.new(10).to_s # => "10"