Closed HallerPatrick closed 1 year ago
This PR contains following:
Introduction of a logging file, that is created for every generation run (call to generator.generate)
generator.generate
<log_dir>/<timestamp>_<prompt_class_name>.jsonl
jsonl
I also don't think that we have to run everything in a try/except block to catch every possible error
try/except
dry_run option for generate method. Instead of calling the ´HaystackNode`, a default value is return
dry_run
generate
ClassLabelPrompt
<some id>
GenerateUnlabeledDataPrompt
<some_string>
Minor fixes
This PR contains following:
Introduction of a logging file, that is created for every generation run (call to
generator.generate
)<log_dir>/<timestamp>_<prompt_class_name>.jsonl
jsonl
, so logs are structured and it's easy to append to. Might be more verbose, but is also easily parseableI also don't think that we have to run everything in a
try/except
block to catch every possible errordry_run
option forgenerate
method. Instead of calling the ´HaystackNode`, a default value is returnClassLabelPrompt
-><some id>
,GenerateUnlabeledDataPrompt
-><some_string>
Minor fixes