Class: Xberg::RerankerModelTypeLlm
- Inherits:
-
Data
- Object
- Data
- Xberg::RerankerModelTypeLlm
- Extended by:
- T::Sig
- Includes:
- RerankerModelType
- Defined in:
- lib/xberg/native.rb
Overview
Provider-hosted reranker via liter-llm (e.g. Cohere, Jina, Voyage).
The model in the nested LlmConfig must be a rerank-capable model ID
(e.g. "cohere/rerank-english-v3.0").
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
690 691 692 |
# File 'lib/xberg/native.rb', line 690 def llm @llm end |
Class Method Details
.from_hash(hash) ⇒ Object
709 710 711 |
# File 'lib/xberg/native.rb', line 709 def self.from_hash(hash) new(llm: hash[:llm] || hash["llm"]) end |
Instance Method Details
#custom? ⇒ Boolean
701 |
# File 'lib/xberg/native.rb', line 701 def custom? = false |
#llm? ⇒ Boolean
703 |
# File 'lib/xberg/native.rb', line 703 def llm? = true |
#plugin? ⇒ Boolean
705 706 707 |
# File 'lib/xberg/native.rb', line 705 def plugin? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#preset? ⇒ Boolean
699 |
# File 'lib/xberg/native.rb', line 699 def preset? = false |