Skip to main content
Loading navigation
Back to prompt library

Implement DSPy for Information Extraction

Linked challenge: Supply Chain Compliance Agent with Adaptive Budgets

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Using DSPy, create a robust pipeline for one of your agents (e.g., Data Gatherer or Risk Analyst) to extract key entities (vendor names, item types, countries, owner entities) and relationships from unstructured text (news articles, incident reports). Optimize the GPT-5 prompts programmatically to ensure high accuracy and resilience to variations in input data.