Class: EmbeddingUtil::Profile
- Inherits:
-
Data
- Object
- Data
- EmbeddingUtil::Profile
- Defined in:
- lib/embedding_util/profile.rb
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#reranker ⇒ Object
readonly
Returns the value of attribute reranker.
Instance Method Summary collapse
-
#initialize(name:, embedding:, reranker:) ⇒ Profile
constructor
A new instance of Profile.
Constructor Details
#initialize(name:, embedding:, reranker:) ⇒ Profile
Returns a new instance of Profile.
5 6 7 |
# File 'lib/embedding_util/profile.rb', line 5 def initialize(name:, embedding:, reranker:) super(name: name.to_sym, embedding: deep_freeze(), reranker: deep_freeze(reranker)) end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding
4 5 6 |
# File 'lib/embedding_util/profile.rb', line 4 def @embedding end |
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/embedding_util/profile.rb', line 4 def name @name end |
#reranker ⇒ Object (readonly)
Returns the value of attribute reranker
4 5 6 |
# File 'lib/embedding_util/profile.rb', line 4 def reranker @reranker end |