Releases: explosion/spacy-llm
Releases · explosion/spacy-llm
v0.7.3: Sandbox Jinja to prevent code execution from untrusted configs
The jinja
templating library allows arbitrary code execution unless run within a sandbox. This could allow arbitrary code execution if an untrusted config file were used to load the pipeline.
v0.7.2: Support for Python 3.12 and a Torch-related bugfix
v0.7.1: Update `langchain` integration; fix EL task, model endpoints
🔴 Bug fixes
- Remove misguided check for fixed endpoints in OpenAI REST implementation (#429)
- Fix bug in EL task if non-highlighted entities are in text (#375)
- Update
langchain
integration to supportlangchain
>= 0.1, < 0.2 (#433)
⚠️ Backwards incompatibilities
No backwards incompatibilities w.r.t. v0.7.0.
📖 Documentation and examples
- Link task mentions in readme to docs (#421)
👥 Contributors
v0.7.0: Supporting arbitrarily long docs and various new tasks
✨ New features and improvements
- NEW: Support arbitrarily long docs leveraging map-reduce and document sharding. Read more here (#332)
- NEW: New tasks -
EntityLinkingTask
: use LLMs to link entity mentions in texts to entities in a custom knowledge base. Read more here (#241)TranslationTask
: translate documents from and to arbitrary languages. Read more here (#396)RawTask
: prompt models with only doc content, no prompt scaffolding, for a maximum of flexibility. Read more here (#395)
- Allow custom endpoints for all models to support usage of fine-tuned models (#390)
🔴 Bug fixes
- Fix issues with previously incomplete integration of LangChain objects (#417)
⚠️ Backwards incompatibilities
No backwards incompatibilities w.r.t. v0.6.x.
📖 Documentation and examples
- Descriptions of
EntityLinkingTask
,TranslationTask
andRawTask
(explosion/spaCy#12988, explosion/spaCy#13183, explosion/spaCy#13180) - Introduction to and description of doc sharding/map-reduce for the support of infinitely long docs (explosion/spaCy#13214)
👥 Contributors
v0.6.4: Fix `langchain` model init
v0.6.3: Improved device handling for HF models, new OpenAI models, various fixes, etc.
✨ New features and improvements
- Scoring support for sentiment task (#331)
- Add label definitions for
LabeledTasks
(#340) - Support
langchain
0.0.335 (#365) - Support new OpenAI models by allowing arbitrary model names for existing model families (#356)
🔴 Bug fixes
- Fix REL prompt generation outputting internal IDs instead of string values for labels (#367)
- Fix device handling for HF models, allow passing
torch_dtype
in config (#359) - Fix incorrect base URL for Azure OpenAI models (#337)
⚠️ Backwards incompatibilities
No backwards incompatibilities w.r.t. v0.6.0.
👥 Contributors
@habibhaidari1, @honnibal, @ines, @shadeMe, @rmitsch, @svlandeg, @viveksilimkhan1
v0.6.2: Patch anthropic-version header
v0.6.1: Fix model initialization for Llama 2 and requests for Anthropic
🔴 Bug fixes
- Llama 2 init doesn't use
use_auth_token=True
by default anymore (#325) - Anthropic requests include a
anthropic_version
header (#325)
Both bugs couldn't be reproduced on our end, so we can't guarantee that these bugs are fixed now. #323 and #324 for a follow-up.
⚠️ Backwards incompatibilities
No backwards incompatibilities w.r.t. v0.6.0.
👥 Contributors
v0.6.0: PaLM, Azure OpenAI, Mistral & fixed OS model responses
✨ New features and improvements
- NEW: Native REST support for...
- Support
langchain==0.0.302
(#308)
🔴 Bug fixes
- Hugging Face models return just the prompt response instead of prompt + prompt response (#315)
⚠️ Backwards incompatibilities
No backwards incompatibilities w.r.t. v0.5.x.
📖 Documentation and examples
- New usage example for
spacy.NER.v3
with Dolly (#302)
👥 Contributors
v0.5.1: Fix `confection` dependency pin
🔴 Bug fixes
- Fix Fix
confection
dependency pin (#290)