enum OpenAI::EmbeddingModel

Overview

Enumerates the models which can be used to generate Embedding vectors.

Defined in:

openai/api/embeddings.cr

Enum 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

Class Method Detail

def self.parse?(string : String) : self | Nil #

[View source]

Instance Method Detail

def ada_code_search_code? #

[View source]
def ada_code_search_text? #

[View source]
def ada_embedding_v2? #

[View source]
def ada_search_document? #

[View source]
def ada_search_query? #

[View source]
def ada_similarity? #

[View source]
def babbage_code_search_code? #

[View source]
def babbage_code_search_text? #

[View source]
def babbage_search_document? #

[View source]
def babbage_search_query? #

[View source]
def babbage_similarity? #

[View source]
def curie_search_document? #

[View source]
def curie_search_query? #

[View source]
def curie_similarity? #

[View source]
def davinci_search_document? #

[View source]
def davinci_search_query? #

[View source]
def davinci_similarity? #

[View source]
def to_s(io : IO) : Nil #
Description copied from struct Enum

Appends a String representation of this enum member to the given io.

See also: #to_s.


[View source]
def to_s #
Description copied from struct Enum

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"

[View source]
def unknown? #

[View source]