Stefano Fiorucci
41aa6f2b58
reorganize imports in hf utils ( #7414 )
2024-03-25 11:41:16 +01:00
Julian Risch
bfd0d3eacd
feat: Add new LLMEvaluator component ( #7401 )
...
* draft llm evaluator
* docstrings
* flexible inputs; validate inputs and outputs
* add tests
* add release note
* remove example
* docstrings
* make outputs parameter optional. default:
* validate init parameters
* linting
* remove mention of binary scores from template
* make examples and outputs params non-optional
* removed leftover from optional outputs param
* simplify building examples section for template
* validate inputs and outputs in examples are dict with str as key
* fix pylint too-many-boolean-expressions
* increase test coverage
2024-03-25 07:05:27 +01:00
dependabot[bot]
42b587ab55
chore(deps): bump actions/add-to-project from 0.5.0 to 0.6.1 ( #7388 )
...
Bumps [actions/add-to-project](https://github.com/actions/add-to-project ) from 0.5.0 to 0.6.1.
- [Release notes](https://github.com/actions/add-to-project/releases )
- [Commits](https://github.com/actions/add-to-project/compare/v0.5.0...v0.6.1 )
---
updated-dependencies:
- dependency-name: actions/add-to-project
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 09:26:50 +01:00
Stefano Fiorucci
d59444543a
fix: put HFTokenStreamingHandler in a lazy_import block ( #7403 )
...
* put HFTokenStreamingHandler in a lazy_import block
* fix pylint
2024-03-22 09:43:45 +01:00
Stefano Fiorucci
c789f905bc
refactor: pass a role string to OpenAI API ( #7404 )
...
* draft
* rm unused imports
2024-03-22 09:36:56 +01:00
Vladimir Blagojevic
e779d43384
feat: Add streaming to HuggingFaceLocalGenerator ( #7377 )
...
* Inital streaming impl
* Add unit tests
* Add release note
2024-03-21 15:49:18 +01:00
Stefano Fiorucci
6e69d4f188
fix: Pipeline - disable autoshow on Jupyter ( #7397 )
...
* try
* fix docstring
* simplify tests
* add release note
2024-03-21 12:55:06 +01:00
Stefano Fiorucci
b0a9508116
fix: add the @component decorator to HuggingFaceTGIChatGenerator ( #7396 )
...
* add component decorator
* reno
2024-03-21 09:28:21 +01:00
Kacper Łukawski
f7a2eebeae
Fix deepset logo rendering on pypi.org ( #7387 )
...
Rendering images on pypi.org does not work with relative URLs. I changed it to use an absolute link for Deepset's logo.
2024-03-20 17:23:07 +01:00
Stefano Fiorucci
dbfd351da7
feat: introduce SparseEmbedding ( #7382 )
...
* introduce SparseEmbedding
* reno
* add to pydoc config
2024-03-19 18:04:16 +01:00
Silvano Cerza
610ad6f6b2
Add AnswerExactMatchEvaluator ( #7381 )
...
* Add AnswerExactMatchEvaluator
* Add release notes
* Fix linting
* Update docstrings
* Update docstrings
* Remove to_dict and from_dict
* Fix linting
2024-03-19 16:58:01 +01:00
Christopher Keibel
f69c3e5cd2
refactor: default for max_new_tokens to 512 in Hugging Face generators ( #7370 )
...
* set default for max_new_tokens to 512 in Hugging Face generators
* add release notes
* fix tests
* remove issues from release note
---------
Co-authored-by: christopherkeibel <christopher.keibel@karakun.com>
Co-authored-by: Julian Risch <julian.risch@deepset.ai>
2024-03-19 08:47:53 +01:00
Mohit Lal
280719339c
bug: run parameter "ranking_mode" does not override init param in meta field ranker ( #7375 )
...
* bug: run parameter ranking_mode does not override init param in metafield ranker
* Added a release note
* Used pytest.approx for comparing floating point numbers in unit test
2024-03-19 07:53:26 +01:00
dependabot[bot]
d4df9c09b2
chore(deps): bump tj-actions/changed-files from 42 to 43 ( #7360 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 42 to 43.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v42...v43 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-18 13:35:20 +01:00
Massimiliano Pippi
3fcb4561eb
Unschedule benchmarks ( #7376 )
2024-03-18 09:49:48 +01:00
Sebastian Husch Lee
85c1e39fab
feat: Add Zero Shot Transformers Text Router ( #7018 )
...
* Starting to add TransformersTextRouter
* First pass at a TextRouter based off of the zero shot classification model on HuggingFace
* Fix pylint
* Remove unneeded imports
* Update documentation example
* Update error message strings
* Starting to add unit tests
* Release notes
* Fix pylint
* Add tests for to dict and from dict
* Update patches in tests to be correct with respect to changes
* Doc strings and fixes
* Adding more tests
* Change name
* Adding to init
* Use Haystack logger
* Beef up docstrings
* Make example runnable
* Rename to huggingface_pipeline_kwargs
* Fix example
2024-03-15 13:56:07 +01:00
Stefano Fiorucci
e793c718b6
chore: Upgrade transformers to 4.38.2 in test environment ( #7363 )
...
* upgrade transformers to 4.38.2 in test environment
* add pyproject to files to check in test workflow
2024-03-15 10:06:28 +01:00
Stefano Fiorucci
abda78c122
unpin OpenAI and fix problem with mock ( #7364 )
2024-03-15 08:32:28 +01:00
Vladimir Blagojevic
2aae8472e7
feat: Add trust_remote_code init param to SentenceTransformer embedders ( #7356 )
...
* Add trust_remote_code init param to SentenceTransformer embedders
* Add release note
* Go with no kwargs solution
* Update haystack/components/embedders/sentence_transformers_document_embedder.py
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* Pydoc fix
---------
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2024-03-14 11:14:04 +01:00
Vladimir Blagojevic
5b4f9f1cda
Pin openai to latest working version ( #7359 )
2024-03-14 10:47:28 +01:00
Stefano Fiorucci
4b814b2b28
remove references to test_requirements ( #7351 )
2024-03-13 17:29:32 +01:00
Silvano Cerza
de4fca4526
ci: Skip collection of test_json_schema.py to fix CI failures ( #7353 )
...
* Skip collection of test_json_schema.py to fix CI failures
* mock chroma instance
* revert
---------
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
2024-03-13 16:59:26 +01:00
Silvano Cerza
2a83eccf99
Update docs renderer ( #7349 )
2024-03-13 12:30:13 +01:00
Massimiliano Pippi
762e8c8e86
extend stalebot to community triage ( #7352 )
2024-03-13 12:08:39 +01:00
Silvano Cerza
5aee378baf
chore: Remove all examples and point to cookbooks repo ( #7350 )
...
* Remove all examples and point to cookbooks repo
* Remove workflow testing examples
2024-03-12 18:04:39 +01:00
Daniel Barker
e4f37e9460
Fixed pipeline import statement ( #7348 )
2024-03-12 15:12:35 +01:00
Massimiliano Pippi
2bb17429dd
add conda badge ( #7347 )
2024-03-12 12:55:04 +01:00
Yudhajit Sinha
41dbbdb3fc
feat: Add support for matching mime types using regex ( #7303 )
...
* feat: Add support for matching mime types using regex
---------
Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
2024-03-11 14:58:08 +01:00
Ashwin Mathur
38b3472bb2
feat: Add SentenceTransformersDiversityRanker ( #7095 )
...
* Add Diversity Ranker
* Update tests
* Add separate suffix, prefix params for query and documents; allow empty query
* Update docstrings
* Make changes based on review
* Add additional tests
* Add test for warm up
* Update release notes
---------
Co-authored-by: Sebastian Husch Lee <sjrl@users.noreply.github.com>
2024-03-11 13:14:59 +01:00
Bilge Yücel
6239b60814
Update README.md ( #7344 )
...
Change image link and add alt text
2024-03-11 15:05:35 +03:00
Stefano Fiorucci
f8b9f71b7a
make weight defined in run to be used even if 0 ( #7343 )
2024-03-11 12:52:55 +01:00
Massimiliano Pippi
ad2366cbe9
link using absolute URI ( #7342 )
2024-03-11 11:49:59 +01:00
Massimiliano Pippi
0beb6e1162
chore: update banner ( #7340 )
...
* update banner
* try relative
2024-03-11 11:08:58 +01:00
Ashwin Mathur
8d7a58347d
fix: HuggingFaceTEITextEmbedder returning embedding of incorrect shape when used with Docker endpoint ( #7319 )
...
* Fix HuggingFaceTEITextEmbedder
* Update haystack/components/embedders/hugging_face_tei_text_embedder.py
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* Improve imports; Add additional tests
---------
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2024-03-07 16:23:57 +01:00
Silvano Cerza
95837ab6b5
Fix readme sync workflow ( #7332 )
2024-03-07 16:04:54 +01:00
Tobias Wochinger
a3a21947a4
docs: disable class def rendering ( #7329 )
2024-03-07 15:54:16 +01:00
Silvano Cerza
bbdc52e8ba
Fix readme_sync.yml workflow to handle unstable 2.x versions ( #7330 )
2024-03-07 15:13:36 +01:00
Silvano Cerza
d5336e9f72
Fix pypi_release.yml workflow to skip rc0 versions ( #7327 )
2024-03-07 12:09:10 +01:00
Stefano Fiorucci
3dbde84a28
test: monkeypatch some env vars in Predefined Pipelines tests ( #7321 )
...
* ci: skip some tests if the OPENAI API key is not set
* better idea: monkeypatch the env var
2024-03-07 08:52:25 +01:00
Silvano Cerza
ede768a517
Fix VERSION.txt
2024-03-06 17:47:12 +01:00
Silvano Cerza
82cd3176ea
Update unstable to 2.1.0-rc0
2024-03-06 17:30:14 +01:00
Julian Risch
cfc5253651
docs: documentation search -> document search in Readme ( #7320 )
...
* docs: documentation search -> document search in Readme
* add links for "get started" and "what is haystack"
2024-03-06 17:26:46 +01:00
Massimiliano Pippi
13804293b1
docs: Prepare the readme for 2.0.0 ( #7314 )
...
* draft
* make the warning less prominent
* more compact
* better tip
* rewrite features
* downgrade to IMPORTANT
* avoid broken links to start
2024-03-06 16:51:04 +01:00
Madeesh Kannan
0db95fb7bd
docs: haystack.utils docfixes ( #7318 )
2024-03-06 16:11:17 +01:00
Daria Fokina
2c7d1ead06
docs: edit audio docstrings order ( #7317 )
...
* audio docstrings order
* trigger CI
---------
Co-authored-by: anakin87 <stefanofiorucci@gmail.com>
2024-03-06 15:05:55 +01:00
Vladimir Blagojevic
c3caadb234
Add haystack.utils API docs ( #7311 )
2024-03-05 14:17:52 +01:00
Tobias Wochinger
23c65c250f
chore: migrate ExtractiveReader to use secret management ( #7309 )
...
* chore: migrate `ExtractiveReader` to use secret management
* docs: add release notes
2024-03-05 13:04:53 +01:00
Julian Risch
50ad1fa2c4
fix: Remove pipeline serialization from telemetry code ( #7289 )
...
* remove pipeline serialization from telemetry
* simplify getting component instance from pipeline
* reno
* add unit test with non-serializable component
* generate qualified class names
* added pipeline.walk()
* fix imports
* sort Iterator import
* remove bfs
* add test for pipeline.walk() with cycles
* Apply suggestions from code review
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* raise TypeError if telemetry_data is no dict
* Update haystack/telemetry/_telemetry.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-03-05 12:45:53 +01:00
Tobias Wochinger
655d4a1a8d
test: test for missing dependencies ( #7278 )
...
* tests: import test for missing libraries
* build: add missing dependencies
* refactor: use glob instead of tree walk
* test: extract constants + more documentation
2024-03-05 12:14:10 +01:00
Stefano Fiorucci
38a80b0235
fix: MetaFieldRanker - use weight if passed in the run method ( #7305 )
...
* fix: - use if passed in the method
* reno
2024-03-05 12:13:56 +01:00