Skip to content

Commit c1b2ec1

Browse files
committed
Remove claim until we have public results / benchmarks
1 parent cfd51b5 commit c1b2ec1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/docs/api/optimizers/GEPA.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Consider implementing a custom instruction proposer when you need:
131131

132132
**Built-in Options:**
133133
- **Default Proposer**: The standard GEPA instruction proposer (used when `instruction_proposer=None`). The default instruction proposer IS an instruction proposer as well! It is the most general one, that was used for the diverse experiments reported in the GEPA paper and tutorials.
134-
- **MultiModalInstructionProposer**: Handles `dspy.Image` inputs and structured multimodal content. This proposer has been specifically optimized for tasks that include one or more `dspy.Image` inputs.
134+
- **MultiModalInstructionProposer**: Handles `dspy.Image` inputs and structured multimodal content.
135135

136136
```python
137137
from dspy.teleprompt.gepa.instruction_proposal import MultiModalInstructionProposer
@@ -272,16 +272,14 @@ class RAGInstructionImprover(dspy.Module):
272272
examples_with_feedback=component_examples
273273
)
274274

275-
# Retrieve relevant documentation using multiple queries
276275
results = self.retrieve.query(
277276
query_texts=query_result.retrieval_queries,
278277
n_results=3
279278
)
280279

281-
# Format retrieved documentation by query
282280
relevant_docs_parts = []
283281
for i, (query, query_docs) in enumerate(zip(query_result.retrieval_queries, results['documents'])):
284-
if query_docs: # Only include queries that found results
282+
if query_docs:
285283
docs_formatted = "\n".join([f" - {doc}" for doc in query_docs])
286284
relevant_docs_parts.append(
287285
f"**Search Query #{i+1}**: {query}\n"
@@ -320,7 +318,6 @@ class DocumentationEnhancedProposer(ProposalFn):
320318
current_instruction = candidate[component_name]
321319
component_examples = reflective_dataset[component_name]
322320

323-
# Use RAG-enhanced improvement
324321
result = self.instruction_improver(
325322
current_instruction=current_instruction,
326323
component_examples=component_examples
@@ -330,14 +327,11 @@ class DocumentationEnhancedProposer(ProposalFn):
330327

331328
return updated_components
332329

333-
# Usage - Connect to existing ChromaDB collection
334330
import chromadb
335331

336-
# Connect to existing ChromaDB collection with instruction guidelines
337332
client = chromadb.Client()
338333
collection = client.get_collection("instruction_guidelines")
339334

340-
# Configure the RAG-enhanced proposer
341335
gepa = dspy.GEPA(
342336
metric=task_specific_metric,
343337
reflection_lm=dspy.LM(model="gpt-5", temperature=1.0, max_tokens=32000, api_key=api_key),
@@ -366,7 +360,6 @@ class ExternalLMProposer(ProposalFn):
366360

367361
return updated_components
368362

369-
# Can work without GEPA's reflection_lm!
370363
gepa = dspy.GEPA(
371364
metric=my_metric,
372365
reflection_lm=None, # Optional when using custom proposer

0 commit comments

Comments
 (0)