PR introduces a dummy_response option. Can be used instead of actual response of prompt node. Good for testing as user and developer.
I chose a more flexibel approach, such that the user can decide what value is returned.
Can be a callable lambda prompt: "Dummy movie response" or a string value. Open for alternatives.
Also adjusted the tests for DatasetGenerator in test_dataset_generator.py to not use a actual HF model. Can also be applied in other tests.
PR introduces a
dummy_response
option. Can be used instead of actual response of prompt node. Good for testing as user and developer.I chose a more flexibel approach, such that the user can decide what value is returned. Can be a callable
lambda prompt: "Dummy movie response"
or a string value. Open for alternatives.Also adjusted the tests for
DatasetGenerator
intest_dataset_generator.py
to not use a actual HF model. Can also be applied in other tests.