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 TrainingExample with member variables.

    Declaration

    Swift

    public init(
        documentID: String,
        collectionID: String,
        relevance: Int
    )

    Parameters

    documentID

    The document ID associated with this training example.

    collectionID

    The collection ID associated with this training example.

    relevance

    The relevance of the training example.

    Return Value

    An initialized TrainingExample.