mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 12:07:04 +00:00
* Started to add CohereRanker node * Small refactoring of SentenceTransformersRanker node * Started to add predict_batch method * Simplified predict_batch code * Added missing imports * Undoing a change * Fix mypy * Adding unit tests using mocking * Updated truncation warning message. * Update doc strings * Update to docs * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Update haystack/nodes/ranker/cohere.py Co-authored-by: bogdankostic <bogdankostic@web.de> * Updating docs to reflect PR discussion * Update haystack/nodes/ranker/cohere.py Co-authored-by: Daria Fokina <daria.f93@gmail.com> --------- Co-authored-by: bogdankostic <bogdankostic@web.de> Co-authored-by: Daria Fokina <daria.f93@gmail.com>