DSPy: The framework for programming—not prompting—language models
Python
Update cheatsheet.md
Omar Khattabf88098aea820
diff --git a/docs-page/docs/cheatsheet.md b/docs-page/docs/cheatsheet.mdindex 43e9ec734..31ed316d0 100644--- a/docs-page/docs/cheatsheet.md+++ b/docs-page/docs/cheatsheet.md@@ -139,7 +139,6 @@ generate_answer = dspy.ChainOfThought(BasicQA)# Call the predictor on a particular input alongside a hint.question='What is the color of the sky?'-hint = "It's what you often see during a sunny day."pred = generate_answer(question=question)```@@ -415,4 +414,4 @@ program_with_assertions = ProgramWithAssertions().activate_assertions()program_with_assertions = assert_transform_module(ProgramWithAssertions(), backtrack_handler)fewshot_optimizer = BootstrapFewShotWithRandomSearch(metric = your_defined_metric, max_bootstrapped_demos=2, num_candidate_programs=6)compiled_dspy_program_with_assertions = fewshot_optimizer.compile(student=program_with_assertions, teacher = program_with_assertions, trainset=trainset, valset=devset) #student can also be program_without_assertions-```\ No newline at end of file+```