We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66573d6 + bc3083c commit d09d984Copy full SHA for d09d984
docs/docs/building-blocks/8-typed_predictors.md
@@ -67,8 +67,8 @@ prediction = predictor(input=doc_query_pair)
67
Let's see the output and its type.
68
69
```python
70
-answer = prediction.answer
71
-confidence_score = prediction.confidence
+answer = prediction.output.answer
+confidence_score = prediction.output.confidence
72
73
print(f"Prediction: {prediction}\n\n")
74
print(f"Answer: {answer}, Answer Type: {type(answer)}")
0 commit comments