TrainingExample
public struct TrainingExample : Codable, Equatable
Object that contains example response details for a training query.
-
The document ID associated with this training example.
Declaration
Swift
public var documentID: String -
The collection ID associated with this training example.
Declaration
Swift
public var collectionID: String -
The relevance of the training example.
Declaration
Swift
public var relevance: Int -
The date and time the example was created.
Declaration
Swift
public var created: Date? -
The date and time the example was updated.
Declaration
Swift
public var updated: Date? -
Initialize a
TrainingExamplewith member variables.Declaration
Swift
public init( documentID: String, collectionID: String, relevance: Int )Parameters
documentIDThe document ID associated with this training example.
collectionIDThe collection ID associated with this training example.
relevanceThe relevance of the training example.
Return Value
An initialized
TrainingExample.
View on GitHub
TrainingExample Structure Reference