Class: Kreuzberg::VlmFallbackPolicyAlways

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
VlmFallbackPolicy
Defined in:
lib/kreuzberg/native.rb

Overview

Skip the classical OCR backend entirely. Every page is sent to the VLM.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



108
109
110
# File 'lib/kreuzberg/native.rb', line 108

def self.from_hash(hash)
  new
end

Instance Method Details

#always?Boolean

Returns:

  • (Boolean)


104
105
106
# File 'lib/kreuzberg/native.rb', line 104

def always? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]

#disabled?Boolean

Returns:

  • (Boolean)


100
# File 'lib/kreuzberg/native.rb', line 100

def disabled? = false

#on_low_quality?Boolean

Returns:

  • (Boolean)


102
# File 'lib/kreuzberg/native.rb', line 102

def on_low_quality? = false