Skip to content

Commit d09d984

Browse files
Merge pull request #901 from bllchmbrs/patch-4
Update 8-typed_predictors.md
2 parents 66573d6 + bc3083c commit d09d984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/building-blocks/8-typed_predictors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ prediction = predictor(input=doc_query_pair)
6767
Let's see the output and its type.
6868

6969
```python
70-
answer = prediction.answer
71-
confidence_score = prediction.confidence
70+
answer = prediction.output.answer
71+
confidence_score = prediction.output.confidence
7272

7373
print(f"Prediction: {prediction}\n\n")
7474
print(f"Answer: {answer}, Answer Type: {type(answer)}")

0 commit comments

Comments
 (0)