Class: Ollama::Documents::Record
- Inherits:
-
JSON::GenericObject
- Object
- JSON::GenericObject
- Ollama::Documents::Record
- Defined in:
- lib/ollama/documents.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
- #tags_set ⇒ Object
- #to_s ⇒ Object (also: #inspect)
Instance Method Details
#==(other) ⇒ Object
31 32 33 |
# File 'lib/ollama/documents.rb', line 31 def ==(other) text == other.text end |
#tags_set ⇒ Object
27 28 29 |
# File 'lib/ollama/documents.rb', line 27 def Ollama::Utils::Tags.new(, source:) end |
#to_s ⇒ Object Also known as: inspect
21 22 23 24 25 |
# File 'lib/ollama/documents.rb', line 21 def to_s = .empty? or = " #{}" "#<#{self.class} #{text.inspect}#{} #{similarity || 'n/a'}>" end |