9 Commits

Author SHA1 Message Date
Julian Risch
30fdf2b5df
feat!: Add extra for inference dependencies such as torch (#5147)
* feat!: add extra for inference dependencies such as torch

* add inference extra to 'all' and 'all-gpu' extra

* install inference extra in selected integration tests

* import LazyImport

* review feedback

* add import error messages and update readme

* remove extra dot
2023-06-20 09:54:10 +02:00
erwanlc
97f136b901
Added fix when using Azure OpenAI with gpt-4 (#5105) 2023-06-19 10:17:58 +02:00
ZanSara
20c1f23fff
feat: optional transformers (#5101)
* generalimport -> lazy-imports

* remove generalimport

* fix pdftotextconverter import check

* customize error messages

* pylint

* fix sql.py

* pylint

* Update haystack/document_stores/sql.py

Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>

* make contextmanager less verbose

* do not catch syntax errors

* review feedback

* make all torch and transformers import lazy

* fix environment.py

* mypy

* merge leftovers

* fix schema

* pylint

* review feedback

---------

Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
2023-06-14 12:00:20 +02:00
Vladimir Blagojevic
edc328e21a
Remove instruction following warning (#4942) 2023-05-18 15:55:18 +02:00
recrudesce
473152eb05
feat: Add AzureChatGPT Capability using new InvocationLayer style (#4675) 2023-04-20 16:27:07 +02:00
Agnieszka Marzec
4aca24c845
Docs: Add max length unit to PromptNode API docs (#4601)
* Add max length unit

* Update to token

* Update invocation layers

---------

Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
2023-04-13 16:48:32 +02:00
ZanSara
1ac9ca7fac
merge (#4620) 2023-04-12 09:38:04 +02:00
Silvano Cerza
5baf2f5930
refactor: Rework invocation layers (#4615)
* Move invocation layers into separate package

* Fix circular imports

* Fix import
2023-04-11 11:04:29 +02:00
Silvano Cerza
1cc4c9c651
refactor: Refactor prompt node (#4580)
* Refactor prompt structure

* Refactor prompt tests structure

* Fix pylint

* Move TestPromptTemplateSyntax to test_prompt_template.py
2023-04-03 11:49:49 +02:00