Class: Braintrust::Models::InsertDatasetEventReplace
- Defined in:
- lib/braintrust/models/insert_dataset_event_replace.rb
Instance Attribute Summary collapse
-
#_is_merge ⇒ Object
The
_is_merge
field controls how the row is merged with any existing row with the same id in the DB. -
#_object_delete ⇒ Boolean
Pass
_object_delete=true
to mark the dataset event deleted. -
#_parent_id ⇒ Object
Use the
_parent_id
field to create this row as a subspan of an existing row. -
#created ⇒ DateTime
The timestamp the dataset event was created.
-
#expected ⇒ Object
The output of your application, including post-processing (an arbitrary, JSON serializable object).
-
#id ⇒ String
A unique identifier for the dataset event.
-
#input ⇒ Object
The argument that uniquely define an input case (an arbitrary, JSON serializable object).
-
#metadata ⇒ Hash
A dictionary with additional data about the test example, model outputs, or just about anything else that's relevant, that you can use to help find and analyze examples later.
-
#tags ⇒ Array<String>
A list of tags to log.
Method Summary
Methods inherited from BaseModel
#[], #initialize, #inspect, #to_h, #to_s
Constructor Details
This class inherits a constructor from Braintrust::BaseModel
Instance Attribute Details
#_is_merge ⇒ Object
The _is_merge
field controls how the row is merged with any existing row with the same id in the DB. By default (or when set to false
), the existing row is completely replaced by the new row. When set to true
, the new row is deep-merged into the existing row
16 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 16 optional :_is_merge, Braintrust::BooleanModel |
#_object_delete ⇒ Boolean
Pass _object_delete=true
to mark the dataset event deleted. Deleted events will not show up in subsequent fetches for this dataset
21 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 21 optional :_object_delete, Braintrust::BooleanModel |
#_parent_id ⇒ Object
Use the _parent_id
field to create this row as a subspan of an existing row. It cannot be specified alongside _is_merge=true
. Tracking hierarchical relationships are important for tracing (see the guide for full details).
28 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 28 optional :_parent_id, String |
#created ⇒ DateTime
The timestamp the dataset event was created
33 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 33 optional :created, DateTime |
#expected ⇒ Object
The output of your application, including post-processing (an arbitrary, JSON serializable object)
38 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 38 optional :expected, Braintrust::Unknown |
#id ⇒ String
A unique identifier for the dataset event. If you don't provide one, BrainTrust will generate one for you
9 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 9 optional :id, String |
#input ⇒ Object
The argument that uniquely define an input case (an arbitrary, JSON serializable object)
43 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 43 optional :input, Braintrust::Unknown |
#metadata ⇒ Hash
A dictionary with additional data about the test example, model outputs, or just about anything else that's relevant, that you can use to help find and analyze examples later. For example, you could log the prompt
, example's id
, or anything else that would be useful to slice/dice later. The values in metadata
can be any JSON-serializable type, but its keys must be strings
48 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 48 optional :metadata, Hash |
#tags ⇒ Array<String>
A list of tags to log
53 |
# File 'lib/braintrust/models/insert_dataset_event_replace.rb', line 53 optional :tags, Braintrust::ArrayOf.new(String) |