Optimize Debit Card Interchange Routing with DSPy and Compiled Prompts
Shifting debit interchange regulations require dynamic routing choices across Visa, Mastercard, and regional EFT networks. Create a compiled DSPy optimization agent that minimizes transaction processing fees while adhering to federal routing mandate constraints.
What you are building
The core problem, expected build, and operating context for this challenge.
Use DSPy to compile and optimize multi-stage debit card interchange routing prompts to lower processing fees.
How work is evaluated
Evaluates processing fee reduction and regulatory compliance across payment streams.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
Durbin Compliance Test
Selection must be compliant with Durbin dual-network rules.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Interchange Cost Reduction
Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Define DSPy Signatures and Modules for multi-network debit routing logic.
Compile DSPy signatures using Teleprompter modules to maximize routing cost savings.
Enforce Durbin Amendment dual-network routing compliance automatically.
Achieve fee reductions of over 12% across synthetic merchant processing workloads.
Reference links and supporting material
Synthetic debit transaction stream labeled with network interchange schedule rates.
Challenge setup
Evaluates processing fee reduction and regulatory compliance across payment streams.
Challenge input
JSON with ticket_size, card_bin, available_networks, merchant_mcc
DSPy
Compiles structured routing modules into optimal few-shot prompts.
Evaluated output
JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)
- Selection must be compliant with Durbin dual-network rules.
- Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25
- Benchmark: DebitRoutingBench
- Interchange Cost Reduction target: 0.15
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- DSPy · Required
- DSPy · Required
- DSPy · Required
Evaluation contract
- Durbin Compliance Test · Weight 1
- Interchange Cost Reduction · Weight 1
Metrics
- Interchange Cost Reduction · Target 0.15
Benchmarks
- DebitRoutingBench
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with ticket_size, card_bin, available_networks, merchant_mcc
Output: JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)
Execution harness: Python
Evaluation tools
- DSPy · Prompt Optimization Framework
Recipe freeze marker
No recipe freeze time is recorded.