Laurian/context-compression-experiments-2508
prompt engineering experiments with DSPy GEPA and TextGrad
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.
Stars
68
Forks
8
Language
Python
License
—
Category
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.
Higher-rated alternatives
linshenkx/prompt-optimizer
一款提示词优化器,助力于编写高质量的提示词
Undertone0809/promptulate
🚀Lightweight Large language model automation and Autonomous Language Agents development...
CTLab-ITMO/CoolPrompt
Automatic Prompt Optimization Framework
microsoft/sammo
A library for prompt engineering and optimization (SAMMO = Structure-aware Multi-Objective...
Eladlev/AutoPrompt
A framework for prompt tuning using Intent-based Prompt Calibration