Class: Mindee::Parsing::Common::Extras::RAGExtra
- Inherits:
-
Object
- Object
- Mindee::Parsing::Common::Extras::RAGExtra
- Defined in:
- lib/mindee/parsing/common/extras/rag_extra.rb
Overview
Retrieval-Augmented Generation extra.
Instance Attribute Summary collapse
-
#matching_document_id ⇒ String?
readonly
ID of the matching document.
Instance Method Summary collapse
-
#initialize(raw_prediction) ⇒ RAGExtra
constructor
A new instance of RAGExtra.
- #to_s ⇒ Object
Constructor Details
#initialize(raw_prediction) ⇒ RAGExtra
Returns a new instance of RAGExtra.
13 14 15 |
# File 'lib/mindee/parsing/common/extras/rag_extra.rb', line 13 def initialize(raw_prediction) @matching_document_id = raw_prediction['matching_document_id'] if raw_prediction['matching_document_id'] end |
Instance Attribute Details
#matching_document_id ⇒ String? (readonly)
ID of the matching document
11 12 13 |
# File 'lib/mindee/parsing/common/extras/rag_extra.rb', line 11 def matching_document_id @matching_document_id end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/mindee/parsing/common/extras/rag_extra.rb', line 17 def to_s @matching_document_id || '' end |