Skip to content

Conversation

@arnavsinghvi11
Copy link
Collaborator

No description provided.

dspy.Suggest(
len(query) <= 100,
"Query should be short and less than 100 characters",
target_module=self.generate_query
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait I don't think we want the examples to be verbose like this. It's nice that they were implicit some of the time.


if dspy.settings.backtrack_to is None:
dspy.logger.error("Specified module not found in trace")
dspy.logger.error("Module not found in trace. If passing a DSPy Signature, please specify the intended module for the assertion (e.g., use `dspy.ChainOfThought(GenerateAnswer)` instead of `GenerateAnswer`).")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is good except the example, I think you wanna say use self.my_module. With the current error, people may pass a new object of dspy.ChainOfThought literally.

@arnavsinghvi11 arnavsinghvi11 merged commit 38c7867 into main Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants