Laurian/context-compression-experiments-2508

prompt engineering experiments with DSPy GEPA and TextGrad

30
/ 100
Emerging

Implements a practical prompt optimization pipeline for retrieval-augmented generation, using DSPy's GEPA (genetic algorithm) to evolve context-compression prompts that improve gpt-4o-mini performance on real production failures. The system extracts query-relevant document sections while preserving original formatting and structure, trained on 296 document-query pairs where gpt-4o succeeded but gpt-4o-mini initially failed, achieving measurable improvements in extraction accuracy across iterations.

No commits in the last 6 months.

No License Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 8 / 25
Maturity 7 / 25
Community 13 / 25

How are scores calculated?

Stars

68

Forks

8

Language

Python

License

Last pushed

Sep 02, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/Laurian/context-compression-experiments-2508"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.