Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alphadl/AdaRubrics
/ types & classes
Types & classes
73 in github.com/alphadl/AdaRubrics
⨍
Functions
213
◇
Types & classes
73
↓ 23 callers
Class
TrajectoryStep
A single reasoning-action-observation step.
adarubric/core/models.py:42
↓ 14 callers
Class
EvalDimension
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 callers
Class
LLMRubricGenerator
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 callers
Class
AbsoluteThresholdFilter
Pass trajectories whose global score ≥ a fixed threshold. Parameters ---------- min_score : float Minimum acceptable global score
adarubric/filter/threshold.py:25
↓ 12 callers
Class
DimensionScore
Score on a single dimension for a single trajectory step.
adarubric/core/models.py:143
↓ 10 callers
Class
WeightedMeanAggregator
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 callers
Class
LLMTrajectoryEvaluator
Evaluates trajectories by prompting an LLM with the rubric. Parameters ---------- client : LLMClient LLM backend for evaluation.
adarubric/evaluator/trajectory_evaluator.py:61
↓ 9 callers
Class
StepEvaluation
Per-step evaluation across all applicable dimensions.
adarubric/core/models.py:152
↓ 9 callers
Class
Trajectory
Complete multi-step agent trajectory.
adarubric/core/models.py:59
↓ 8 callers
Class
AdaRubricConfig
Top-level configuration for the AdaRubric pipeline.
adarubric/config.py:84
↓ 8 callers
Class
DimensionAwareFilter
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 callers
Class
LLMClientError
Raised when LLM API interaction fails.
adarubric/core/exceptions.py:24
↓ 8 callers
Class
TaskDescription
An agentic task whose trajectory will be evaluated.
adarubric/core/models.py:26
↓ 7 callers
Class
AdaRubricPipeline
Orchestrates rubric generation → trajectory evaluation → filtering. Parameters ---------- generator : RubricGenerator Produces ta
adarubric/pipeline.py:134
↓ 7 callers
Class
DynamicRubric
Task-adaptive evaluation rubric containing N dimensions. Generated by a ``RubricGenerator`` based on the task description. Typically contains
adarubric/core/models.py:109
↓ 6 callers
Class
TrajectoryEvaluation
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 callers
Class
AdvantageScaler
Reward = score - baseline, centering rewards around zero. This produces positive rewards for above-average trajectories and negative rewards
adarubric/reward/scalers.py:88
↓ 4 callers
Class
CompositeFilter
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 callers
Class
ConsistencyReport
Results from multi-run consistency analysis.
adarubric/analysis/reliability.py:104
↓ 4 callers
Class
DPOPairGenerator
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 callers
Class
LinearScaler
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 callers
Class
PercentileFilter
Keep the top-k percentile of trajectories by global score. Parameters ---------- percentile : float Percentile threshold in [0, 1
adarubric/filter/threshold.py:56
↓ 4 callers
Class
StepRewardAssigner
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 callers
Class
ConfigurationError
Raised when configuration is invalid or missing.
adarubric/core/exceptions.py:28
↓ 3 callers
Class
GeometricMeanAggregator
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 callers
Class
MinScoreAggregator
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 callers
Class
DPODataset
Collection of DPO pairs with metadata.
adarubric/reward/scalers.py:194
↓ 2 callers
Class
DPOPair
A (chosen, rejected) trajectory pair for DPO training.
adarubric/reward/scalers.py:179
↓ 2 callers
Class
MockLLMClient
Deterministic LLM client for testing. Returns pre-configured responses based on the response_model type.
tests/conftest.py:31
↓ 2 callers
Class
OpenAIClient
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 callers
Class
RubricGenerationError
Raised when dynamic rubric generation fails.
adarubric/core/exceptions.py:16
↓ 1 callers
Class
EvaluationError
Raised when trajectory evaluation fails.
adarubric/core/exceptions.py:20
↓ 1 callers
Class
PipelineResult
Result of a full pipeline run.
adarubric/pipeline.py:67
↓ 1 callers
Class
VLLMClient
Client for self-hosted vLLM inference servers. Parameters ---------- model : str Model identifier as served by vLLM. base_url
adarubric/llm/vllm_client.py:40
Class
AdaRubricError
Base exception for all AdaRubric errors.
adarubric/core/exceptions.py:8
Class
AggregationStrategy
Computes global scores from step-level dimension scores.
adarubric/evaluator/aggregator.py:21
Class
EvaluatorConfig
Trajectory evaluator configuration.
adarubric/config.py:50
Class
FilterConfig
Trajectory filter configuration.
adarubric/config.py:71
Class
FilterError
Raised when trajectory filtering encounters an error.
adarubric/core/exceptions.py:32
Class
GeneratorConfig
Rubric generator configuration.
adarubric/config.py:37
Class
LLMClient
Protocol for LLM backends used by generators and evaluators.
adarubric/llm/base.py:18
Class
LLMConfig
LLM backend configuration.
adarubric/config.py:21
Class
RewardScaler
Maps trajectory evaluations to scalar reward signals.
adarubric/reward/scalers.py:28
Class
RubricGenerator
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
Class
TaskComplexity
adarubric/core/models.py:20
Class
TestAbsoluteThresholdFilter
tests/test_filter.py:46
Class
TestAdvantageScaler
tests/test_reward.py:98
Class
TestCompositeFilter
tests/test_filter.py:147
Class
TestConfigFromFile
tests/test_config.py:11
Class
TestConsistencyReport
tests/test_analysis.py:62
Class
TestDPOExport
tests/test_io.py:95
Class
TestDPOPairGenerator
tests/test_reward.py:152
Class
TestDimensionAwareFilter
tests/test_filter.py:105
Class
TestDynamicRubric
tests/test_models.py:120
Class
TestEvalDimension
tests/test_models.py:94
Class
TestEvaluationIO
tests/test_io.py:85
Class
TestGeometricMeanAggregator
tests/test_evaluator.py:118
Class
TestKrippendorffsAlpha
tests/test_analysis.py:11
Class
TestLinearScaler
tests/test_reward.py:74
Class
TestMinScoreAggregator
tests/test_evaluator.py:144
Class
TestPercentileFilter
tests/test_filter.py:65
Class
TestStepEvaluation
tests/test_models.py:138
Class
TestStepRewardAssigner
tests/test_reward.py:126
Class
TestTaskDescription
tests/test_models.py:18
Class
TestTrajectory
tests/test_models.py:58
Class
TestTrajectoryIO
tests/test_io.py:64
Class
TestTrajectoryStep
tests/test_models.py:39
Class
TestWeightedMeanAggregator
tests/test_evaluator.py:49
Class
TrajectoryEvaluatorBase
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
Class
TrajectoryFilter
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