One of the following:
class Custom { item_schema, type, include_sample_schema }

A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs. This schema is used to define the shape of the data that will be:

  • Used to define your testing criteria and
  • What data is required when creating a run
item_schema: Hash[Symbol, untyped]

The json schema for each row in the data source.

type: :custom

The type of data source. Always custom.

include_sample_schema: bool

Whether the eval should expect you to populate the sample namespace (ie, by generating responses off of your data source)

class Logs { type, metadata }

A data source config which specifies the metadata property of your logs query. This is usually metadata like usecase=chatbot or prompt-version=v2, etc.

type: :logs

The type of data source. Always logs.

metadata: Hash[Symbol, untyped]

Metadata filters for the logs data source.

class StoredCompletions { type, metadata }

Deprecated in favor of LogsDataSourceConfig.

type: :stored_completions

The type of data source. Always stored_completions.

metadata: Hash[Symbol, untyped]

Metadata filters for the stored completions data source.