struct
Meilisearch::Crystal::Embedder
- Meilisearch::Crystal::Embedder
- Meilisearch::Crystal::Resource
- Struct
- Value
- Object
Overview
Configuration for one named document embedder.
Defined in:
meilisearch/crystal/settings.crConstructors
-
.new(pull : JSON::PullParser)
Configuration for one named document embedder.
- .new(source : EmbedderSource, model : String | Nil = nil, revision : String | Nil = nil, document_template : String | Nil = nil, document_template_max_bytes : Int32 | Nil = nil, dimensions : Int32 | Nil = nil, url : String | Nil = nil, api_key : String | Nil = nil, request : JSON::Any | Nil = nil, response : JSON::Any | Nil = nil, headers : Hash(String, String) | Nil = nil, pooling : String | Nil = nil)
Instance Method Summary
- #api_key : String | Nil
- #dimensions : Int32 | Nil
- #document_template : String | Nil
- #document_template_max_bytes : Int32 | Nil
- #headers : Hash(String, String) | Nil
- #model : String | Nil
- #pooling : String | Nil
- #request : JSON::Any | Nil
- #response : JSON::Any | Nil
- #revision : String | Nil
- #source : EmbedderSource
- #url : String | Nil
Constructor methods inherited from struct Meilisearch::Crystal::Resource
new(pull : JSON::PullParser)new(*, __pull_for_json_serializable pull : JSON::PullParser) new
Macros inherited from struct Meilisearch::Crystal::Resource
define(name, &block)
define,
field(declaration)
field,
field!(declaration)
field!,
field?(declaration)
field?
Constructor Detail
def self.new(source : EmbedderSource, model : String | Nil = nil, revision : String | Nil = nil, document_template : String | Nil = nil, document_template_max_bytes : Int32 | Nil = nil, dimensions : Int32 | Nil = nil, url : String | Nil = nil, api_key : String | Nil = nil, request : JSON::Any | Nil = nil, response : JSON::Any | Nil = nil, headers : Hash(String, String) | Nil = nil, pooling : String | Nil = nil)
#