From bc3083c4fad57852f05000fe9dd74243877c704c Mon Sep 17 00:00:00 2001 From: Bill Chambers Date: Wed, 24 Apr 2024 19:51:43 -0700 Subject: [PATCH] Update 8-typed_predictors.md have to get the output first! --- docs/docs/building-blocks/8-typed_predictors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/building-blocks/8-typed_predictors.md b/docs/docs/building-blocks/8-typed_predictors.md index 9fe1785f8c..7b0bd38fcb 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.confidence print(f"Prediction: {prediction}\n\n") print(f"Answer: {answer}, Answer Type: {type(answer)}")