Class: Parse::Retrieval::Profiles::Profile
- Inherits:
-
Struct
- Object
- Struct
- Parse::Retrieval::Profiles::Profile
- Defined in:
- lib/parse/retrieval/profiles.rb
Overview
A validated, frozen profile.
Instance Attribute Summary collapse
-
#hybrid ⇒ Object
Returns the value of attribute hybrid.
-
#k ⇒ Object
Returns the value of attribute k.
-
#max_k ⇒ Object
Returns the value of attribute max_k.
-
#max_total_tokens ⇒ Object
Returns the value of attribute max_total_tokens.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on_rerank_failure ⇒ Object
Returns the value of attribute on_rerank_failure.
-
#rerank_candidates ⇒ Object
Returns the value of attribute rerank_candidates.
-
#rerank_max_document_chars ⇒ Object
Returns the value of attribute rerank_max_document_chars.
-
#rerank_timeout ⇒ Object
Returns the value of attribute rerank_timeout.
-
#rerank_top_n ⇒ Object
Returns the value of attribute rerank_top_n.
-
#reranker ⇒ Object
Returns the value of attribute reranker.
Instance Method Summary collapse
-
#rerank? ⇒ Boolean
True when the profile reranks.
Instance Attribute Details
#hybrid ⇒ Object
Returns the value of attribute hybrid
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def hybrid @hybrid end |
#k ⇒ Object
Returns the value of attribute k
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def k @k end |
#max_k ⇒ Object
Returns the value of attribute max_k
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def max_k @max_k end |
#max_total_tokens ⇒ Object
Returns the value of attribute max_total_tokens
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def max_total_tokens @max_total_tokens end |
#name ⇒ Object
Returns the value of attribute name
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def name @name end |
#on_rerank_failure ⇒ Object
Returns the value of attribute on_rerank_failure
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def on_rerank_failure @on_rerank_failure end |
#rerank_candidates ⇒ Object
Returns the value of attribute rerank_candidates
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def rerank_candidates @rerank_candidates end |
#rerank_max_document_chars ⇒ Object
Returns the value of attribute rerank_max_document_chars
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def rerank_max_document_chars @rerank_max_document_chars end |
#rerank_timeout ⇒ Object
Returns the value of attribute rerank_timeout
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def rerank_timeout @rerank_timeout end |
#rerank_top_n ⇒ Object
Returns the value of attribute rerank_top_n
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def rerank_top_n @rerank_top_n end |
#reranker ⇒ Object
Returns the value of attribute reranker
36 37 38 |
# File 'lib/parse/retrieval/profiles.rb', line 36 def reranker @reranker end |
Instance Method Details
#rerank? ⇒ Boolean
Returns true when the profile reranks.
42 43 44 |
# File 'lib/parse/retrieval/profiles.rb', line 42 def rerank? !reranker.nil? end |