dspy-haystack-integration

Community

Automate prompt optimization in Haystack pipelines.

AuthorOmidZamani
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables DSPy-driven prompt optimization within Haystack pipelines, reducing manual tuning and enabling data-driven improvements.

Core Features & Use Cases

  • Haystack integration: Wrap a Haystack retriever into a DSPy module for end-to-end optimization.
  • Custom metric: Combine semantic similarity with conciseness to guide improvements.
  • End-to-end DSPy optimization: Use BootstrapFewShot to compile an optimized pipeline and prompts.

Quick Start

Build a Haystack pipeline, define a mixed_metric that blends semantic accuracy with conciseness, configure DSPy LM, then run BootstrapFewShot to obtain an optimized prompt and pipeline.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dspy-haystack-integration
Download link: https://github.com/OmidZamani/dspy-skills/archive/main.zip#dspy-haystack-integration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.