v0.5.0: Improved user API and novel Chain-of-Thought prompting for more accurate NER
✨ New features and improvements
- NEW: More accurate Chain-of-Thought (CoT) NER prompting with
spacy.NER.v3
(#180) - NEW: Task-specific component factories for
llm_ner
,llm_spancat
,llm_rel
,llm_textcat
,llm_sentiment
,llm_summarization
(#243, #283) - NEW: Implementation of
add_label
functionality to more easily work with anllm
component directly in Python code and not (necessarily) through the config system (#277) - New
v2
model versions for the OpenAI models that set reasonable defaults fortemperature
andmax_tokens
(#236) - Functionality to ignore occassional blocking errors from Cohere (#233)
- Support for Pydantic v1 and v2 (#261, #275)
- Internal refactoring, including renaming of v1 Jinja templates (#242)
- Empty the cache of
torch.cuda
in between calls (#242) - Various improvements to the test suite and CI
🔴 Bug fixes
- Fix Anthropic chat endpoints (#230)
⚠️ Backwards incompatibilities
- Though significant refactoring of internal modules has happened, this release should not introduce any backwards incompatibilities for user-facing functionality.
- Check our migration guide if you want to update the SpanCat or NER task from
v1
orv2
tov3
.
📖 Documentation and examples
- Updated usage documentation
- Updated API documentation
- New Chain-of-Though example with GPT 3.5
- New
textcat
example with Dolly
👥 Contributors
@adrianeboyd, @honnibal, @ines, @kabirkhan, @ljvmiranda921, @rmitsch, @svlandeg, @victorialslocum, @vinbo8