-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Hi there,
I am following the tutorial:
https://dspy-docs.vercel.app/building-blocks/2-signatures
but I get this error:
AttributeError: 'Prediction' object has no attribute 'rationale'
from:
# Example from the XSum dataset.
document = """The 21-year-old made seven appearances for the Hammers and netted his only goal for them in a Europa League qualification round match against Andorran side FC Lustrains last season. Lee had two loan spells in League One last term, with Blackpool and then Colchester United. He scored twice for the U's but was unable to save them from relegation. The length of Lee's contract with the promoted Tykes has not been revealed. Find all the latest football transfers on our dedicated page."""
summarize = dspy.ChainOfThought('document -> summary')
response = summarize(document=document)
print(response.summary)
print("Rationale:", response.rationale)
Maybe something has changed from the docs.
Cheers.
Metadata
Metadata
Assignees
Labels
No labels