LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithschemasComparativeExperiment
Class●Since v0.1

ComparativeExperiment

Represents a comparative experiment.

This information summarizes evaluation results comparing two or more models on a given dataset.

Copy
ComparativeExperiment()

Bases

BaseModel

Attributes

attribute
id: UUID

The unique identifier for the comparative experiment.

attribute
name: Optional[str]

The optional name of the comparative experiment.

attribute
description: Optional[str]

An optional description of the comparative experiment.

attribute
tenant_id: UUID

The identifier of the tenant associated with this experiment.

attribute
created_at: datetime

The timestamp when the comparative experiment was created.

attribute
modified_at: datetime

The timestamp when the comparative experiment was last modified.

attribute
reference_dataset_id: UUID

The identifier of the reference dataset used in this experiment.

attribute
extra: Optional[dict[str, Any]]

Optional additional information about the experiment.

attribute
experiments_info: Optional[list[dict]]

Optional list of dictionaries containing information about individual experiments.

attribute
feedback_stats: Optional[dict[str, Any]]

Optional dictionary containing feedback statistics for the experiment.

attribute
metadata: dict[str, Any]

Retrieve the metadata (if any).

View source on GitHub