dspy-optimization-not-improving

Sub-skill of dspy: Optimization Not Improving (+2).

5 stars

Best use case

dspy-optimization-not-improving is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of dspy: Optimization Not Improving (+2).

Teams using dspy-optimization-not-improving should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/optimization-not-improving/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/ai/prompting/dspy/optimization-not-improving/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/optimization-not-improving/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dspy-optimization-not-improving Compares

Feature / Agentdspy-optimization-not-improvingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of dspy: Optimization Not Improving (+2).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Optimization Not Improving (+2)

## Optimization Not Improving


```python
# Increase number of training examples
# Ensure diverse, high-quality examples
# Try different optimizer settings

optimizer = BootstrapFewShotWithRandomSearch(
    metric=metric,
    max_bootstrapped_demos=8,  # Increase
    num_candidate_programs=20,  # More search
    num_threads=8
)
```


## Module Too Slow


```python
# Use faster model for compilation
compile_lm = dspy.OpenAI(model="gpt-4.1-mini")
deploy_lm = dspy.OpenAI(model="gpt-4")

with dspy.settings.context(lm=compile_lm):
    optimized = optimizer.compile(module, trainset=data)

# Deploy with stronger model
dspy.settings.configure(lm=deploy_lm)
```


## Out of Memory


```python
# Process in batches
batch_size = 10
for i in range(0, len(trainset), batch_size):
    batch = trainset[i:i+batch_size]
    process_batch(batch)
```

Related Skills

skill-chain-context-optimization

5
from vamseeachanta/workspace-hub

Refactor large or frequently-run skills into context-efficient chains using isolated execution, file-backed handoffs, minimal summaries, and runtime-aware command substitution.

dspy

5
from vamseeachanta/workspace-hub

Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming

usage-optimization

5
from vamseeachanta/workspace-hub

Optimize AI usage efficiency through script-first patterns, batch operations, and input preparation

docker-1-image-optimization

5
from vamseeachanta/workspace-hub

Sub-skill of docker: 1. Image Optimization (+4).

orcaflex-mooring-iteration-1-scipy-optimization-recommended

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-mooring-iteration: 1. Scipy Optimization (Recommended) (+2).

drilling-drilling-optimization

5
from vamseeachanta/workspace-hub

Sub-skill of drilling: Drilling Optimization (+2).

polars-2-lazy-evaluation-and-query-optimization

5
from vamseeachanta/workspace-hub

Sub-skill of polars: 2. Lazy Evaluation and Query Optimization.

seo-optimizer-content-optimization-template

5
from vamseeachanta/workspace-hub

Sub-skill of seo-optimizer: Content Optimization Template.

self-improving-skills

5
from vamseeachanta/workspace-hub

Use after completing any complex task (5+ tool calls), fixing a tricky error, or discovering a non-trivial workflow. Also use when a loaded skill is outdated, incomplete, or wrong during execution.

dspy-integration-with-langchain

5
from vamseeachanta/workspace-hub

Sub-skill of dspy: Integration with LangChain (+1).

dspy-example-1-engineering-report-analysis-pipeline

5
from vamseeachanta/workspace-hub

Sub-skill of dspy: Example 1: Engineering Report Analysis Pipeline (+2).

dspy-dspy-philosophy

5
from vamseeachanta/workspace-hub

Sub-skill of dspy: DSPy Philosophy.