All skills
vincentkoc avatar

/opik-optimizer

@e0b7247
by Vincent Kocvincentkoc/dotskills108 stars
9

Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.

Use this Skill: https://skilld.dev/gh/vincentkoc/dotskills/opik-optimizer

This session only. Nothing lands on disk.

referencesdatasets_and_setup.md

≈349 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Datasets and environment setup

Dataset helpers

opik_optimizer.datasets exports built-in loaders used across examples:

ai2_arc, arc_agi2, cnn_dailymail, context7_eval, driving_hazard, election_questions, gsm8k, halu_eval, hover, hotpot, ifbench, medhallu, rag_hallucinations, ragbench_sentence_relevance, tiny_test, truthful_qa, pupa.

Each dataset helper typically accepts count, split, and dataset-specific kwargs.

Installation and runtime

  • Install: pip install opik-optimizer.
  • Configure provider keys as expected by LiteLLM (e.g., OpenAI, Anthropic).
  • Optional Opik tracking:
    • opik configure to set platform project credentials.
    • project_name / OPIK_PROJECT_NAME controls tracing project context.

Useful limits and defaults

  • Default thread cap from SDK helpers:
    • minimum 1, maximum 32.
  • Default thread fallback for omitted values derives from CPU count, clamped to [1, 32].
  • ParameterOptimizer default trials: 20.
  • Few-shot Bayesian defaults:
    • min examples 2, max examples 8.
  • Evolutionary defaults:
    • population 30, generations 15, mutation 0.2, crossover 0.8.

Validation and reproducibility

  • Set seed in optimizer constructor for deterministic behavior.
  • Use max_trials, n_threads, and fixed dataset splits (train, test style dataset args) for run reproducibility.

Source: SKILL.md on GitHub

2 warnings6mo4 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    The skill provides comprehensive documentation and implementation patterns for using the Opik Optimizer SDK to tune LLM prompts, parameters, and tools. It follows security best practices for credential handling and references legitimate external resources for the Opik observability platform.

  • Socket6mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · No issues

  • Runlayer7mo

    6/6 files flagged

Signed by skilld at e0b7247. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 3 weeks ago
metadata
{
  "source": "https://github.com/vincentkoc/dotskills"
}

README badge

README badge for vincentkoc/dotskills/opik-optimizer