DSPy: The framework for programming—not prompting—language models
Python
Update 8-typed_predictors.md
Bill Chambersbc3083c4fad5
diff --git a/docs/docs/building-blocks/8-typed_predictors.md b/docs/docs/building-blocks/8-typed_predictors.mdindex 9fe1785f8..7b0bd38fc 100644--- a/docs/docs/building-blocks/8-typed_predictors.md+++ b/docs/docs/building-blocks/8-typed_predictors.md@@ -67,8 +67,8 @@ prediction = predictor(input=doc_query_pair)Let's see the output and its type.```python-answer = prediction.answer-confidence_score = prediction.confidence+answer = prediction.output.answer+confidence_score = prediction.output.confidenceprint(f"Prediction: {prediction}\n\n")print(f"Answer: {answer}, Answer Type: {type(answer)}")