MCPcopy Create free account

hub / github.com/alphadl/AdaRubrics / functions

Functions213 in github.com/alphadl/AdaRubrics

↓ 19 callersFunction_make_eval
Create a minimal TrajectoryEvaluation for filter testing.
tests/test_filter.py:16
↓ 18 callersFunction_make_eval
(tid: str, score: float)
tests/test_reward.py:22
↓ 11 callersMethodrun
Execute the full three-stage pipeline. Parameters ---------- task : TaskDescription The task being evaluated.
adarubric/pipeline.py:293
↓ 10 callersFunction_make_rubric
(weights: list[float] | None = None)
tests/test_evaluator.py:23
↓ 9 callersFunction_make_steps
(scores_per_step: list[list[tuple[str, int, float]]])
tests/test_evaluator.py:38
↓ 7 callersMethodaggregate_steps
( self, step_evaluations: list[StepEvaluation], rubric: DynamicRubric, )
adarubric/evaluator/aggregator.py:64
↓ 7 callersMethodfilter
Return only the evaluations that pass the filter criteria. This method also sets ``passed_threshold`` on each evaluation.
adarubric/filter/base.py:19
↓ 7 callersMethodgenerate
( self, task: TaskDescription, *, num_dimensions: int = 5, temperature
adarubric/generator/llm_generator.py:68
↓ 7 callersFunctionkrippendorffs_alpha
Compute Krippendorff's alpha for reliability estimation. Parameters ---------- ratings : np.ndarray Shape (n_raters, n_items). Us
adarubric/analysis/reliability.py:32
↓ 6 callersFunction_default_eval_max_tokens
Completion token budget for trajectory evaluation (long JSON).
adarubric/pipeline.py:57
↓ 6 callersFunctionextract_json_substring
Return the first JSON object or array substring from ``text``. Strips common markdown fences (``json ... ```) then scans for balanced ``{...}
adarubric/llm/json_extract.py:6
↓ 5 callersFunction_default_rubric_max_tokens
Completion token budget for rubric generation.
adarubric/pipeline.py:50
↓ 5 callersMethodassign
Compute a reward for each step in the trajectory. Returns ------- list[float] Per-step reward values, ordered by
adarubric/reward/scalers.py:145
↓ 3 callersFunction_make_eval_with_steps
(tid: str, step_scores: list[float])
tests/test_reward.py:42
↓ 3 callersFunction_make_trajectory
(tid: str = "t1")
tests/test_io.py:31
↓ 3 callersMethod_scale_one
(self, score: float)
adarubric/reward/scalers.py:79
↓ 3 callersMethodaggregate_steps
( self, step_evaluations: list[StepEvaluation], rubric: DynamicRubric, )
adarubric/evaluator/aggregator.py:153
↓ 3 callersMethodevaluate
( self, trajectory: Trajectory, rubric: DynamicRubric, *, temperature:
adarubric/evaluator/trajectory_evaluator.py:208
↓ 3 callersMethodfilter
(self, evaluations: list[TrajectoryEvaluation])
adarubric/filter/threshold.py:128
↓ 3 callersMethodfrom_json
Load config from a JSON file, with env var override for api_key.
adarubric/config.py:93
↓ 3 callersMethodgenerate
Generate DPO pairs from a batch of evaluations. Trajectories are compared pairwise. The higher-scoring one becomes "chosen" and the l
adarubric/reward/scalers.py:236
↓ 3 callersMethodscale
(self, evaluations: list[TrajectoryEvaluation])
adarubric/reward/scalers.py:114
↓ 3 callersMethodscore_for
(self, dimension_name: str)
adarubric/core/models.py:165
↓ 3 callersMethodto_json
Save config to a JSON file. By default ``llm.api_key`` is omitted so keys are not committed accidentally.
adarubric/config.py:114
↓ 2 callersFunction_apply_env_overrides
Override sensitive fields from environment variables. Returns a new config.
adarubric/config.py:127
↓ 2 callersMethod_chat
( self, messages: list[dict[str, str]], *, temperature: float, max_tok
adarubric/llm/vllm_client.py:73
↓ 2 callersMethod_chat
Chat completion with exponential backoff on transient errors.
adarubric/llm/openai_client.py:70
↓ 2 callersFunction_make_evaluation
(tid: str = "t1")
tests/test_io.py:54
↓ 2 callersFunction_two_dim_rubric
()
tests/test_filter.py:87
↓ 2 callersMethodaggregate_steps
( self, step_evaluations: list[StepEvaluation], rubric: DynamicRubric, )
adarubric/evaluator/aggregator.py:111
↓ 2 callersMethodevaluate
Score a trajectory against the given rubric. Parameters ---------- trajectory : Trajectory The agent's multi-step
adarubric/evaluator/base.py:18
↓ 2 callersMethodgenerate_rubric
Stage 1: Generate a dynamic rubric for the task.
adarubric/pipeline.py:222
↓ 2 callersMethodgenerate_structured
Generate a response and parse it into ``response_model``. Implementations should handle retries and JSON extraction internally.
adarubric/llm/base.py:22
↓ 2 callersMethodget_dimension
(self, name: str)
adarubric/core/models.py:131
↓ 2 callersFunctionload_trajectories
Load trajectories from a JSONL file.
adarubric/io/serialization.py:32
↓ 2 callersMethodscale
(self, evaluations: list[TrajectoryEvaluation])
adarubric/reward/scalers.py:84
↓ 1 callersFunction_build_aggregator
(config: AdaRubricConfig)
adarubric/pipeline.py:92
↓ 1 callersFunction_build_filter
(config: AdaRubricConfig)
adarubric/pipeline.py:108
↓ 1 callersMethod_build_messages
(self, task: TaskDescription, num_dimensions: int)
adarubric/generator/llm_generator.py:47
↓ 1 callersMethod_build_messages
( self, trajectory: Trajectory, rubric: DynamicRubric, task_instruction: str,
adarubric/evaluator/trajectory_evaluator.py:89
↓ 1 callersMethod_compute_baseline
(self, scores: list[float])
adarubric/reward/scalers.py:105
↓ 1 callersMethod_convert_raw
Convert parsed LLM output into the canonical evaluation model.
adarubric/evaluator/trajectory_evaluator.py:131
↓ 1 callersFunction_make_rubric
()
tests/test_io.py:41
↓ 1 callersMethod_step_weights
(self, n_steps: int)
adarubric/evaluator/aggregator.py:57
↓ 1 callersMethod_validate_rubric
Post-generation sanity checks; returns rubric with task_id corrected if needed.
adarubric/generator/llm_generator.py:103
↓ 1 callersMethodclose
Release any held resources (connection pools, etc.).
adarubric/llm/base.py:45
↓ 1 callersMethodevaluate_batch
Stage 2 (batch): Evaluate multiple trajectories concurrently.
adarubric/pipeline.py:265
↓ 1 callersFunctionexport_dpo_dataset
Export DPO pairs in HuggingFace-compatible JSONL format. Each line contains: - chosen: trajectory_id of the preferred trajectory - reject
adarubric/io/serialization.py:99
↓ 1 callersMethodfilter
(self, evaluations: list[TrajectoryEvaluation])
adarubric/filter/threshold.py:39
↓ 1 callersMethodfilter
(self, evaluations: list[TrajectoryEvaluation])
adarubric/filter/threshold.py:180
↓ 1 callersMethodfilter_evaluations
Stage 3: Apply survival-of-the-fittest filtering.
adarubric/pipeline.py:286
↓ 1 callersFunctionformat_trajectory_steps
Render trajectory steps as readable text for the LLM prompt.
adarubric/evaluator/prompts.py:58
↓ 1 callersMethodfrom_config
Build a pipeline from a configuration object.
adarubric/pipeline.py:177
↓ 1 callersMethodgenerate
Generate a dynamic rubric for the given task. Parameters ---------- task : TaskDescription The agentic task to cr
adarubric/generator/base.py:18
↓ 1 callersFunctionload_evaluations
Load evaluations from a JSONL file.
adarubric/io/serialization.py:72
↓ 1 callersFunctionmain
()
examples/supply_chain_eval.py:34
↓ 1 callersFunctionmain
()
examples/quickstart.py:21
↓ 1 callersFunctionsave_evaluations
Write evaluations to a JSONL file.
adarubric/io/serialization.py:59
↓ 1 callersFunctionsave_trajectories
Write trajectories to a JSONL file.
adarubric/io/serialization.py:19
↓ 1 callersMethodscale
Convert evaluations into reward values. Parameters ---------- evaluations : list[TrajectoryEvaluation] Evaluated
adarubric/reward/scalers.py:32
Method__aenter__
(self)
adarubric/llm/base.py:48
Method__aexit__
(self, *exc: Any)
adarubric/llm/base.py:51
Method__call__
( self, evaluations: list[TrajectoryEvaluation], )
adarubric/filter/base.py:28
Method__init__
( self, generator: RubricGenerator, evaluator: TrajectoryEvaluatorBase, filter
adarubric/pipeline.py:163
Method__init__
( self, client: LLMClient, *, include_few_shot: bool = True, max_token
adarubric/generator/llm_generator.py:36
Method__init__
( self, model: str, *, base_url: str = "http://localhost:8000/v1", api
adarubric/llm/vllm_client.py:57
Method__init__
( self, model: str = "gpt-4o", *, api_key: str | None = None, base_url
adarubric/llm/openai_client.py:58
Method__init__
(self, message: str, *, context: dict[str, Any] | None = None)
adarubric/core/exceptions.py:11
Method__init__
( self, low: float = 0.0, high: float = 1.0, *, raw_min: float = 1.0,
adarubric/reward/scalers.py:64
Method__init__
(self, baseline: Literal["mean", "median"] | float = "mean")
adarubric/reward/scalers.py:102
Method__init__
( self, *, normalize: bool = False, final_step_bonus: float = 0.0, )
adarubric/reward/scalers.py:136
Method__init__
( self, min_margin: float = 0.5, *, max_pairs_per_chosen: int | None = None,
adarubric/reward/scalers.py:225
Method__init__
( self, client: LLMClient, *, aggregator: AggregationStrategy | None = None,
adarubric/evaluator/trajectory_evaluator.py:75
Method__init__
Parameters ---------- recency_decay : float Exponential decay factor for step weighting. 0.0 = uniform weights.
adarubric/evaluator/aggregator.py:46
Method__init__
(self, min_score: float = 3.0)
adarubric/filter/threshold.py:34
Method__init__
(self, percentile: float = 75.0, *, min_survivors: int = 1)
adarubric/filter/threshold.py:67
Method__init__
( self, dimension_thresholds: dict[str, float] | None = None, *, default_thres
adarubric/filter/threshold.py:119
Method__init__
(self, filters: Sequence[TrajectoryFilter])
adarubric/filter/threshold.py:175
Method__init__
(self, responses: dict[str, str] | None = None)
tests/conftest.py:37
Method__len__
(self)
adarubric/reward/scalers.py:200
Method_action_non_empty
(cls, v: str)
adarubric/core/models.py:53
Method_eval_one
(traj: Trajectory)
adarubric/evaluator/trajectory_evaluator.py:264
Method_validate_criteria_keys
(cls, v: dict[int, str])
adarubric/core/models.py:100
Method_validate_step_ordering
(self)
adarubric/core/models.py:69
Methodaggregate_steps
Aggregate step-level scores into global scores. Returns ------- tuple[dict[str, float], float] (per-dimension glo
adarubric/evaluator/aggregator.py:25
Methodassign_batch
(self, evaluations: list[TrajectoryEvaluation])
adarubric/reward/scalers.py:169
Methodclose
(self)
adarubric/llm/vllm_client.py:188
Methodclose
(self)
adarubric/llm/openai_client.py:185
Methoddimension_names
(self)
adarubric/core/models.py:124
Methodevaluate
Stage 2: Evaluate a single trajectory against a rubric.
adarubric/pipeline.py:246
Methodevaluate_batch
Evaluate multiple trajectories concurrently with bounded parallelism.
adarubric/evaluator/trajectory_evaluator.py:247
Methodevaluate_batch
Evaluate multiple trajectories against the same rubric. Default implementation is sequential; subclasses may override with concurrent
adarubric/evaluator/base.py:49
Functionevaluate_consistency
Run evaluation N times and compute inter-rater reliability. Parameters ---------- evaluator : TrajectoryEvaluatorBase The evaluat
adarubric/analysis/reliability.py:141
Methodfilter
(self, evaluations: list[TrajectoryEvaluation])
adarubric/filter/threshold.py:73
Methodfrom_yaml
Load config from a YAML file (requires ``pyyaml``).
adarubric/config.py:100
Methodgenerate_structured
( self, messages: list[dict[str, str]], response_model: type[T], *, te
adarubric/llm/vllm_client.py:118
Methodgenerate_structured
( self, messages: list[dict[str, str]], response_model: type[T], *, te
adarubric/llm/openai_client.py:122
Methodgenerate_structured
( self, messages: list[dict[str, str]], response_model: type[T], *, te
tests/conftest.py:43
Methodgenerate_text
( self, messages: list[dict[str, str]], *, temperature: float = 0.0, m
adarubric/llm/vllm_client.py:173
Methodgenerate_text
Generate a plain-text response.
adarubric/llm/base.py:36
next →1–100 of 213, ranked by callers