v2.0.0-beta.7
版本发布时间: 2024-02-07 23:44:09
deepset-ai/haystack最新发布版本:v2.4.0(2024-08-15 17:39:00)
Release Notes
v2.0.0-beta.7
⬆️ Upgrade Notes
- Pipeline.connect() arguments have renamed for clarity. This is a breaking change if connect was called with keyword arguments only. connect_from and connect_to arguments have been renamed respectively to sender and receiver. The behaviour of Pipeline.connect() is not changed.
🚀 New Features
- Rename Pipeline.connect() arguments for clarity
⚡️ Enhancement Notes
- add dimensions parameter to OpenAI Embedders to fully support new embedding models like text-embedding-3-small, text-embedding-3-large and upcoming ones
- Change Pipeline.connect() to return the instance of Pipeline. This way we can chain multiple connect() like so:
pipeline.connect("fetcher", "converter").connect("converter", "splitter").connect("splitter", "ranker")\
.connect("ranker", "prompt_builder").connect("prompt_builder", "llm")
- Code from different "hf_utils.py" modules spread across different packages was merged into haystack.utils.hf.
🐛 Bug Fixes
- Resolves a bug where the HuggingFaceTGIGenerator and HuggingFaceTGIChatGenerator encountered issues if provided with valid models that were not available on the HuggingFace inference API rate-limited tier. The fix, detailed in GitHub issue #6816 and its GitHub PR, ensures these components now correctly handle model availability, eliminating previous limitations.
- Fix PromptBuilder missing input default values. These missing default value was causing the PromptBuilder to never run if certain inputs are not received.