Skip to content

Commit bc3083c

Browse files
authored
Update 8-typed_predictors.md
have to get the output first!
1 parent 303c669 commit bc3083c

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)