Skip to content

Question Answer tutorial notebook error #382

@AbdelrahmanAhmed3

Description

@AbdelrahmanAhmed3

📚 Documentation


ValueError Traceback (most recent call last)
in <cell line: 0>()
----> 1 train(
2 debug=False,
3 max_steps=12,
4 strategy="constrained",
5 raw_shots=0,

9 frames
/usr/local/lib/python3.11/dist-packages/adalflow/optim/gradient.py in init(self, from_response, to_pred, id, score, data_id, data)
94 self.data_id = data_id
95 if self.data_id is None:
---> 96 raise ValueError("The data_id should not be None.")
97 self.data = data
98 self.order = None

ValueError: The data_id should not be None.

I get this error in the first train function in the built-in dataset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to /docs and /notebooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions