struct Memo::Config::EmbeddingService

Overview

AI embedding service configuration

Describes the provider/model used for embeddings. This gets stored in the services table to track which embeddings belong to which vector space.

Defined in:

memo/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(provider : String, model : String, dimensions : Int32, max_tokens : Int32 = 8191, version : String | Nil = nil, batch_size : Int32 = 100) #

[View source]

Instance Method Detail

def batch_size : Int32 #

[View source]
def dimensions : Int32 #

[View source]
def max_tokens : Int32 #

[View source]
def model : String #

[View source]
def provider : String #

[View source]
def version : String | Nil #

[View source]