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
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithevaluation_runnerComparativeExperimentResults
Classā—Since v0.1

ComparativeExperimentResults

Copy
ComparativeExperimentResults(
  self,
  results: dict,
  examples: Optional[dict[uuid.UUID

Constructors

Attributes

View source on GitHub
,
schemas
.
Example
]
]
=
None
,
comparative_experiment
:
Optional
[
schemas
.
ComparativeExperiment
]
=
None
,
url
:
Optional
[
str
]
=
None
)
constructor
__init__
NameType
resultsdict
examplesOptional[dict[uuid.UUID, schemas.Example]]
comparative_experimentOptional[schemas.ComparativeExperiment]
urlOptional[str]
attribute
comparative_experiment: Optional[schemas.ComparativeExperiment]

The comparative experiment, exposing its id, dataset, and metadata.

attribute
url: Optional[str]

URL of the pairwise comparison view in the LangSmith UI.

Represents the results of an evaluate_comparative() call.

This class provides an iterator interface to iterate over the comparison results, indexed access by example ID, and properties to access the pairwise comparison URL and the underlying comparative experiment.