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
Returns the value of attribute llm.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#llm ⇒ Object (readonly)
Returns the value of attribute llm
1196 1197 1198 |
# File 'lib/xberg/native.rb', line 1196 def llm @llm end |
Class Method Details
.from_hash(hash) ⇒ Object
1218 1219 1220 |
# File 'lib/xberg/native.rb', line 1218 def self.from_hash(hash) new(llm: hash[:llm] || hash["llm"]) end |
Instance Method Details
#custom? ⇒ Boolean
1210 |
# File 'lib/xberg/native.rb', line 1210 def custom? = false |
#llm? ⇒ Boolean
1212 |
# File 'lib/xberg/native.rb', line 1212 def llm? = true |
#plugin? ⇒ Boolean
1214 1215 1216 |
# File 'lib/xberg/native.rb', line 1214 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
1208 |
# File 'lib/xberg/native.rb', line 1208 def preset? = false |