github deepset-ai/haystack v1.14.0

latest releases: v1.26.4, v2.7.0, v2.7.0-rc1...
20 months ago

⭐ Highlights

PromptNode enhancements

PromptNode just rolled out prompt logging (pipeline debug), run_batch, and model_kwargs support. More updates to PromptNode and PromptTemplates coming soon!

Shaper

We're introducing the Shaper, PromptNode's helper. Shaper unlocks the full potential of PromptNode and ensures its seamless integration with Haystack. But Shaper's scope and functionality are not limited to PromptNode; you can also use it independently, opening up a whole new world of possibilities.

IVF and Product Quantization support for OpenSearchDocumentStore

We've added support for IVF and IVF with Product Quantization to OpenSearchDocumentStore. You can train the IVF index by calling train_index method (same as in FAISSDocumentStore) or by setting ivf_train_size when initializing OpenSearchDocumentStore and take your search to the next level.

What's Changed

Breaking Changes

  • refactor: Updated rest_api schema for tables to be consistent with Document.to_dict by @sjrl in #3872
  • feat: Support multiple document_ids in Answer object (for generative QA) by @tstadel in #4062
  • feat: Update OpenAIAnswerGenerator defaults and with learnings from PromptNode by @sjrl in #4038
  • build: cache nltk models into the docker image by @mayankjobanputra in #4118
  • feat: Add IVF and Product Quantization support for OpenSearchDocumentStore by @bogdankostic in #3850

Pipeline

DocumentStores

  • refactor: use weaviate client to build BM25 query by @hsm207 in #3939
  • fix: fixed InMemoryDocumentStore.get_embedding_count to return correct number by @sjrl in #3980
  • fix: Add inner query for mysql compatibility by @julian-risch in #4068
  • feat: add support for custom headers by @hsm207 in #4040
  • feat: Add BM25 support for tables in InMemoryDocumentStore by @bogdankostic in #4090
  • refactor: InMemoryDocumentStore - manage documents without embedding & fix mypy errors by @anakin87 in #4113
  • refactor: complete the document stores test refactoring by @masci in #4125
  • feat: include testing facilities into haystack package by @masci in #4182

Documentation

  • Align with the docs install guide + correct lg by @agnieszka-m in #3950
  • docs: Update Crawler docstring for correct usage in Google colab by @silvanocerza in #3979
  • Docs: Update docstrings by @agnieszka-m in #4119
  • docs: Update Annotation Tool README.md by @bogdankostic in #4123
  • feat: Add model_kwargs option to PromptNode by @sjrl in #4151
  • fix: Remove logging statement of setting ID manually in Document by @bogdankostic in #4129
  • chore: Fixing PromptNode .prompt() docstring to include the PromptTemplate object as an option by @TuanaCelik in #4135
  • chore: de-couple the telemetry events for each tutorial from the dataset on AWS that is used by @TuanaCelik in #4155
  • feat: Implement run_batch for PromptNode by @sjrl in #4072

Other Changes

New Contributors

Full Changelog: v1.13.2...v1.14.0

Don't miss a new haystack release

NewReleases is sending notifications on new releases.