Class: Xberg::EmbeddingModelTypeLlm
- Inherits:
-
Data
- Object
- Data
- Xberg::EmbeddingModelTypeLlm
- Extended by:
- T::Sig
- Includes:
- EmbeddingModelType
- Defined in:
- lib/xberg/native.rb
Overview
Provider-hosted embedding model via liter-llm.
Uses the model specified in the nested LlmConfig (e.g.,
"openai/text-embedding-3-small").
Instance Attribute Summary collapse
-
#llm ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#llm ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
513 514 515 |
# File 'lib/xberg/native.rb', line 513 def llm @llm end |
Class Method Details
.from_hash(hash) ⇒ Object
532 533 534 |
# File 'lib/xberg/native.rb', line 532 def self.from_hash(hash) new(llm: hash[:llm] || hash["llm"]) end |
Instance Method Details
#custom? ⇒ Boolean
524 |
# File 'lib/xberg/native.rb', line 524 def custom? = false |
#llm? ⇒ Boolean
526 |
# File 'lib/xberg/native.rb', line 526 def llm? = true |
#plugin? ⇒ Boolean
528 529 530 |
# File 'lib/xberg/native.rb', line 528 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
522 |
# File 'lib/xberg/native.rb', line 522 def preset? = false |