struct Meilisearch::Crystal::Embedder

Overview

Configuration for one named document embedder.

Defined in:

meilisearch/crystal/settings.cr

Constructors

Instance Method Summary

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(pull : JSON::PullParser) #

Configuration for one named document embedder.


[View source]
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) #

[View source]

Instance Method Detail

def api_key : String | Nil #

def dimensions : Int32 | Nil #

def document_template : String | Nil #

def document_template_max_bytes : Int32 | Nil #

def headers : Hash(String, String) | Nil #

def model : String | Nil #

def pooling : String | Nil #

def request : JSON::Any | Nil #

def response : JSON::Any | Nil #

def revision : String | Nil #

def source : EmbedderSource #

[View source]
def url : String | Nil #