MCPcopy Create free account

hub / github.com/alphadl/AdaRubrics / types & classes

Types & classes73 in github.com/alphadl/AdaRubrics

↓ 23 callersClassTrajectoryStep
A single reasoning-action-observation step.
adarubric/core/models.py:42
↓ 14 callersClassEvalDimension
A single evaluation axis with a 5-point scoring rubric. Each dimension is task-specific and generated dynamically. The ``weight`` field allow
adarubric/core/models.py:83
↓ 14 callersClassLLMRubricGenerator
Generates evaluation rubrics by prompting an LLM. The generator constructs a carefully engineered prompt that instructs the LLM to produce ta
adarubric/generator/llm_generator.py:21
↓ 13 callersClassAbsoluteThresholdFilter
Pass trajectories whose global score ≥ a fixed threshold. Parameters ---------- min_score : float Minimum acceptable global score
adarubric/filter/threshold.py:25
↓ 12 callersClassDimensionScore
Score on a single dimension for a single trajectory step.
adarubric/core/models.py:143
↓ 10 callersClassWeightedMeanAggregator
Weighted arithmetic mean across dimensions, uniform across steps. Per-dimension global score = mean of that dimension's scores across steps.
adarubric/evaluator/aggregator.py:39
↓ 9 callersClassLLMTrajectoryEvaluator
Evaluates trajectories by prompting an LLM with the rubric. Parameters ---------- client : LLMClient LLM backend for evaluation.
adarubric/evaluator/trajectory_evaluator.py:61
↓ 9 callersClassStepEvaluation
Per-step evaluation across all applicable dimensions.
adarubric/core/models.py:152
↓ 9 callersClassTrajectory
Complete multi-step agent trajectory.
adarubric/core/models.py:59
↓ 8 callersClassAdaRubricConfig
Top-level configuration for the AdaRubric pipeline.
adarubric/config.py:84
↓ 8 callersClassDimensionAwareFilter
Per-dimension minimum thresholds. A trajectory passes only if *every* dimension's global score meets its respective threshold. This prevents
adarubric/filter/threshold.py:104
↓ 8 callersClassLLMClientError
Raised when LLM API interaction fails.
adarubric/core/exceptions.py:24
↓ 8 callersClassTaskDescription
An agentic task whose trajectory will be evaluated.
adarubric/core/models.py:26
↓ 7 callersClassAdaRubricPipeline
Orchestrates rubric generation → trajectory evaluation → filtering. Parameters ---------- generator : RubricGenerator Produces ta
adarubric/pipeline.py:134
↓ 7 callersClassDynamicRubric
Task-adaptive evaluation rubric containing N dimensions. Generated by a ``RubricGenerator`` based on the task description. Typically contains
adarubric/core/models.py:109
↓ 6 callersClassTrajectoryEvaluation
Complete evaluation result for one trajectory. Contains step-level scores, per-dimension global scores, an overall global score, and a surviv
adarubric/core/models.py:172
↓ 4 callersClassAdvantageScaler
Reward = score - baseline, centering rewards around zero. This produces positive rewards for above-average trajectories and negative rewards
adarubric/reward/scalers.py:88
↓ 4 callersClassCompositeFilter
Logical AND of multiple filters. A trajectory must pass ALL constituent filters to survive. Filters are applied in order; early rejection ski
adarubric/filter/threshold.py:163
↓ 4 callersClassConsistencyReport
Results from multi-run consistency analysis.
adarubric/analysis/reliability.py:104
↓ 4 callersClassDPOPairGenerator
Generates (chosen, rejected) pairs from trajectory evaluations. For a batch of N evaluations, this produces up to N*(N-1)/2 pairs (all combin
adarubric/reward/scalers.py:210
↓ 4 callersClassLinearScaler
Affine mapping: raw ∈ [raw_min, raw_max] → scaled ∈ [low, high]. Scores outside the raw range are clamped before scaling. Parameters ---
adarubric/reward/scalers.py:47
↓ 4 callersClassPercentileFilter
Keep the top-k percentile of trajectories by global score. Parameters ---------- percentile : float Percentile threshold in [0, 1
adarubric/filter/threshold.py:56
↓ 4 callersClassStepRewardAssigner
Assigns per-step dense rewards from step-level evaluations. Useful for RL training where credit assignment at each step matters (e.g., PPO wi
adarubric/reward/scalers.py:122
↓ 3 callersClassConfigurationError
Raised when configuration is invalid or missing.
adarubric/core/exceptions.py:28
↓ 3 callersClassGeometricMeanAggregator
Weighted geometric mean — penalizes low-scoring dimensions. A single dimension scoring 1/5 will drag the overall score down much more than wi
adarubric/evaluator/aggregator.py:104
↓ 3 callersClassMinScoreAggregator
Overall score = minimum per-dimension global score. Useful for safety-critical evaluations where one failing dimension should veto the entire
adarubric/evaluator/aggregator.py:146
↓ 2 callersClassDPODataset
Collection of DPO pairs with metadata.
adarubric/reward/scalers.py:194
↓ 2 callersClassDPOPair
A (chosen, rejected) trajectory pair for DPO training.
adarubric/reward/scalers.py:179
↓ 2 callersClassMockLLMClient
Deterministic LLM client for testing. Returns pre-configured responses based on the response_model type.
tests/conftest.py:31
↓ 2 callersClassOpenAIClient
LLM client for OpenAI-compatible APIs. Parameters ---------- model : str Model identifier (e.g. ``"gpt-4o"``). api_key : str
adarubric/llm/openai_client.py:43
↓ 2 callersClassRubricGenerationError
Raised when dynamic rubric generation fails.
adarubric/core/exceptions.py:16
↓ 1 callersClassEvaluationError
Raised when trajectory evaluation fails.
adarubric/core/exceptions.py:20
↓ 1 callersClassPipelineResult
Result of a full pipeline run.
adarubric/pipeline.py:67
↓ 1 callersClassVLLMClient
Client for self-hosted vLLM inference servers. Parameters ---------- model : str Model identifier as served by vLLM. base_url
adarubric/llm/vllm_client.py:40
ClassAdaRubricError
Base exception for all AdaRubric errors.
adarubric/core/exceptions.py:8
ClassAggregationStrategy
Computes global scores from step-level dimension scores.
adarubric/evaluator/aggregator.py:21
ClassEvaluatorConfig
Trajectory evaluator configuration.
adarubric/config.py:50
ClassFilterConfig
Trajectory filter configuration.
adarubric/config.py:71
ClassFilterError
Raised when trajectory filtering encounters an error.
adarubric/core/exceptions.py:32
ClassGeneratorConfig
Rubric generator configuration.
adarubric/config.py:37
ClassLLMClient
Protocol for LLM backends used by generators and evaluators.
adarubric/llm/base.py:18
ClassLLMConfig
LLM backend configuration.
adarubric/config.py:21
ClassRewardScaler
Maps trajectory evaluations to scalar reward signals.
adarubric/reward/scalers.py:28
ClassRubricGenerator
Generates a task-specific :class:`DynamicRubric` from a task description. Subclasses implement the actual generation logic (LLM-based, rule-based
adarubric/generator/base.py:10
ClassTaskComplexity
adarubric/core/models.py:20
ClassTestAbsoluteThresholdFilter
tests/test_filter.py:46
ClassTestAdvantageScaler
tests/test_reward.py:98
ClassTestCompositeFilter
tests/test_filter.py:147
ClassTestConfigFromFile
tests/test_config.py:11
ClassTestConsistencyReport
tests/test_analysis.py:62
ClassTestDPOExport
tests/test_io.py:95
ClassTestDPOPairGenerator
tests/test_reward.py:152
ClassTestDimensionAwareFilter
tests/test_filter.py:105
ClassTestDynamicRubric
tests/test_models.py:120
ClassTestEvalDimension
tests/test_models.py:94
ClassTestEvaluationIO
tests/test_io.py:85
ClassTestGeometricMeanAggregator
tests/test_evaluator.py:118
ClassTestKrippendorffsAlpha
tests/test_analysis.py:11
ClassTestLinearScaler
tests/test_reward.py:74
ClassTestMinScoreAggregator
tests/test_evaluator.py:144
ClassTestPercentileFilter
tests/test_filter.py:65
ClassTestStepEvaluation
tests/test_models.py:138
ClassTestStepRewardAssigner
tests/test_reward.py:126
ClassTestTaskDescription
tests/test_models.py:18
ClassTestTrajectory
tests/test_models.py:58
ClassTestTrajectoryIO
tests/test_io.py:64
ClassTestTrajectoryStep
tests/test_models.py:39
ClassTestWeightedMeanAggregator
tests/test_evaluator.py:49
ClassTrajectoryEvaluatorBase
Evaluates an agent trajectory against a dynamic rubric. Subclasses implement the scoring logic. The evaluator produces step-level scores, per
adarubric/evaluator/base.py:10
ClassTrajectoryFilter
Decides which evaluated trajectories survive for downstream use. Filters implement the "Survival of the Fittest" mechanism, dropping low-qual
adarubric/filter/base.py:10
Class_DimensionScoreRaw
adarubric/evaluator/trajectory_evaluator.py:37
Class_EvaluationResponse
adarubric/evaluator/trajectory_evaluator.py:50
Class_StepEvalRaw
adarubric/evaluator/trajectory_evaluator.py:44