Class: Mindee::Parsing::V2::RAGMetadata
- Inherits:
-
Object
- Object
- Mindee::Parsing::V2::RAGMetadata
- Defined in:
- lib/mindee/parsing/v2/rag_metadata.rb
Overview
Metadata about the RAG operation.
Instance Attribute Summary collapse
-
#retrieved_document_id ⇒ Object
The UUID of the matched document used during the RAG operation.
Instance Method Summary collapse
-
#initialize(server_response) ⇒ RAGMetadata
constructor
A new instance of RAGMetadata.
Constructor Details
#initialize(server_response) ⇒ RAGMetadata
Returns a new instance of RAGMetadata.
11 12 13 |
# File 'lib/mindee/parsing/v2/rag_metadata.rb', line 11 def initialize(server_response) @retrieved_document_id = server_response.fetch('retrieved_document_id', nil) end |
Instance Attribute Details
#retrieved_document_id ⇒ Object
The UUID of the matched document used during the RAG operation.
9 10 11 |
# File 'lib/mindee/parsing/v2/rag_metadata.rb', line 9 def retrieved_document_id @retrieved_document_id end |