Class: Parse::Retrieval::Profiles::Profile

Inherits:
Struct
  • Object
show all
Defined in:
lib/parse/retrieval/profiles.rb

Overview

A validated, frozen profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hybrid ⇒ Object

Returns the value of attribute hybrid

Returns:

  • (Object) —

    the current value of hybrid



36
37
38
# File 'lib/parse/retrieval/profiles.rb', line 36

def hybrid
  @hybrid
end

#k ⇒ Object

Returns the value of attribute k

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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.

Returns:

  • (Boolean) —

    true when the profile reranks.



42
43
44
# File 'lib/parse/retrieval/profiles.rb', line 42

def rerank?
  !reranker.nil?
end