I've been strugging to run prodigy with spacy-llm and few shot examples for an NER problem. I can't seem to resolve how to combine all the options needed at the command line.. but I stepped back to trying just the recipe code given in your folder here:
https://github.com/explosion/spacy-llm/tree/main/usage_examples/ner_v3_openai,
and that recipe fails for me with:
File "/home/lcherny/code/labeling/run_pipeline.py", line 29, in <module>
typer.run(run_pipeline)
File "/home/lcherny/code/labeling/run_pipeline.py", line 21, in run_pipeline
nlp = assemble(config_path, overrides={"paths.examples": str(examples_path)})
File "/opt/conda/envs/spacyllm/lib/python3.10/site-packages/spacy_llm/util.py", line 47, in assemble
config = load_config(config_path, overrides=overrides, interpolate=False)
File "/opt/conda/envs/spacyllm/lib/python3.10/site-packages/spacy/util.py", line 715, in load_config
return config.from_disk(
File "/opt/conda/envs/spacyllm/lib/python3.10/site-packages/confection/__init__.py", line 488, in from_disk
return self.from_str(text, interpolate=interpolate, overrides=overrides)
File "/opt/conda/envs/spacyllm/lib/python3.10/site-packages/confection/__init__.py", line 417, in from_str
self._set_overrides(config, overrides)
File "/opt/conda/envs/spacyllm/lib/python3.10/site-packages/confection/__init__.py", line 389, in _set_overrides
raise ConfigValidationError(errors=err, title=err_title)
confection.ConfigValidationError:
Error parsing config overrides
paths -> examples not a section value that can be overridden
My command line usage was > python run_pipeline.py "very long text string here" spacy-llm-config.cfg (pointing to gpt4 and few shot) ner-examples.json (as per the repo directions?). Spacy-llm 0.6.4