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
Julian Risch
b86490bb5a
docs: Update ExtractiveReader
docstrings ( #7308 )
...
* format reader docstrings and update usage example
* add output to usage example
2024-03-05 11:52:56 +01:00
Julian Risch
c1c0cbfde4
docs: Update docs of MetaFieldRanker, TransformersSimilarityRanker ( #7301 )
...
* docs: Update docstrings of MetaFieldRanker and TransformersSimilarityRanker
* add warm_up() call to usage example
* Apply suggestions from code review
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* show result of usage example
---------
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2024-03-05 10:20:18 +01:00
Julian Risch
f0fb71da6f
docs: Add LostInTheMiddleRanker to API docs ( #7302 )
2024-03-05 09:49:46 +01:00
dependabot[bot]
312ba9ebf0
chore(deps): bump dorny/paths-filter from 3.0.1 to 3.0.2 ( #7300 )
...
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/dorny/paths-filter/releases )
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md )
- [Commits](ebc4d7e9eb...de90cc6fb3
)
---
updated-dependencies:
- dependency-name: dorny/paths-filter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 17:08:17 +01:00
Julian Risch
15373de114
chore: Update ruff pre-commit version ( #7293 )
2024-03-04 16:02:35 +01:00
Julian Risch
9a0e2e58fd
docs: Added LostInTheMiddleRanker usage example and updated docstrings ( #7294 )
...
* docs: Added LostInTheMiddleRanker usage example
* remove to_dict test
* explain LITM in more detail
2024-03-04 15:42:51 +01:00
Vladimir Blagojevic
0e7c41be5e
feat: Improve OpenAPIServiceToFunctions signature ( #7257 )
...
* Convert OpenAPIServiceToFunctions run interface
---------
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
2024-03-04 14:38:58 +01:00
Stefano Fiorucci
721691c036
replace flaky with pytest-rerunfailures ( #7298 )
2024-03-04 12:26:40 +01:00
David S. Batista
f49dbdc5a7
docs: last fixes on non-chat generators ( #7287 )
...
* last fixes on non-chat generators
2024-03-04 11:36:05 +01:00
Stefano Fiorucci
727794cb70
pin pytest ( #7295 )
2024-03-04 10:14:39 +01:00
Silvano Cerza
72d776c390
fix: Fix run order of variadic greedy components in Pipeline.run() ( #7258 )
...
* Fix run order of variadic greedy components in Pipeline.run()
* Add release notes
2024-03-01 17:39:13 +01:00
Vladimir Blagojevic
3077a08c60
docs: Update docstrings for haystack.utils
( #7269 )
...
* Update docstrings for haystack.utils
* Update haystack/utils/requests_utils.py
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
* Update haystack/utils/requests_utils.py
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
* Update haystack/utils/requests_utils.py
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
---------
Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
2024-03-01 17:25:12 +01:00
Silvano Cerza
247716f008
docs: Update joiners
docstrings and configs ( #7280 )
...
* Update joiners docstrings
* Update joiners docs config
2024-03-01 17:08:57 +01:00
Vladimir Blagojevic
9ab5c95c19
docs: Multiplexer - review and normalize docstrings for component.others
( #7276 )
...
* Multiplexer - review and normalize docstrings
* Update PR - Stefano
* simplify language
* re-generation
---------
Co-authored-by: Daria Fokina <daria.fokina@deepset.ai>
2024-03-01 16:44:39 +01:00
Julian Risch
d17f180dd2
docs: Add warmup() call to HuggingFaceLocalGenerator usage example ( #7282 )
...
Co-authored-by: David S. Batista <dsbatista@gmail.com>
2024-03-01 15:09:01 +01:00
Julian Risch
6325015367
docs: Update docstrings for haystack.components.retrievers ( #7252 )
2024-03-01 15:08:36 +01:00
Massimiliano Pippi
34dac5f86f
Update test_pipeline.py ( #7284 )
2024-03-01 14:20:15 +01:00
Vladimir Blagojevic
7ffb21d1b8
docs: Update docstrings for haystack.components.connectors
( #7267 )
...
* OpenAPIServiceConnector review and normalize docstrings
* PR feedback Stefano
2024-03-01 12:57:04 +01:00
Madeesh Kannan
b554e4cd49
docs: Update docstrings and API doc config for haystack.components.extractors
( #7251 )
...
* docs: Update docstrings and API doc config for `haystack.components.extractors`
* Review comments
2024-03-01 12:45:26 +01:00
Julian Risch
a57ed6dafe
docs: Update docstrings for haystack.core
( #7263 )
...
* core docstrings
* remove reference to marshaller from docstrings
2024-03-01 12:44:06 +01:00
Stefano Fiorucci
4eced4422a
fix output types in WebSearch components ( #7274 )
2024-03-01 12:42:48 +01:00
Massimiliano Pippi
221bfb012c
fix: Update pyproject.toml ( #7281 )
...
* Update pyproject.toml
* make tests run on templates changes
---------
Co-authored-by: anakin87 <stefanofiorucci@gmail.com>
2024-03-01 12:40:24 +01:00
Massimiliano Pippi
b011bfcc9c
chore: update the INDEXING and RAG pipeline templates ( #7272 )
...
* update the index pipeline
* amend relnote
* update the RAG template
2024-03-01 11:55:44 +01:00
Tobias Wochinger
9fe2aae758
ci: add ruff to CI + bring config up to date ( #7266 )
...
* ci: add ruff to CI
* chore: fix ruff issues
* ci: fix ruff deprecation warnings
* ci: add ruff as dependency
2024-03-01 11:08:51 +01:00
Silvano Cerza
d6597952a2
fix: Update Component
protocol to fix some type checking issues ( #7270 )
...
* Update Component protocol to fix some type checking issues
* Add release notes
* Fix logline in test
* Fix run type definition
2024-03-01 10:56:47 +01:00
Silvano Cerza
408be735e5
Update embedders docstrings ( #7268 )
2024-02-29 17:59:42 +01:00
Silvano Cerza
4065a755c1
Update converters docstrings ( #7250 )
2024-02-29 16:18:32 +01:00
Tobias Wochinger
69d5438d6e
tests: make 3.12 compatible ( #7265 )
2024-02-29 16:11:14 +01:00
Massimiliano Pippi
232544472f
feat: Add new predefined template: chat with website ( #7259 )
...
* add new predefined template: chat with website
* fix raw prompts
* Fix raw prompt
* fix typos in tempalte
2024-02-29 15:55:53 +01:00
Tobias Wochinger
ee4d47952e
chore: run ruff with fix during precommit hook ( #7264 )
2024-02-29 15:14:10 +01:00
Tobias Wochinger
fe0ac5c4a2
chore: enforce kwarg logging ( #7207 )
...
* chore: add logger which eases logging of extras
* chore: start migrating to key value
* fix: import fixes
* tests: temporarily comment out breaking test
* refactor: move to kwarg based logging
* style: fix import order
* chore: implement self-review comments
* test: drop failing test
* chore: fix more import orders
* docs: add changelog
* tests: fix broken tests
* chore: fix getting the frames
* chore: add comment
* chore: cleanup
* chore: adapt remaining `%s` usages
2024-02-29 14:31:20 +01:00
Massimiliano Pippi
25a1a97be0
restore to_dict method ( #7261 )
2024-02-29 14:30:06 +01:00
Julian Risch
14191deefa
docs: Update docstrings for haystack.components.writers
( #7260 )
2024-02-29 14:09:37 +01:00
Massimiliano Pippi
e7809b6fea
feat: Add from_template
class method to Pipeline
( #7240 )
...
* move templating code under the core package
* make from_predefined part of the Pipeline API
* add tests
* amend release notes
* import under haystack package
* Apply suggestions from code review
Co-authored-by: David S. Batista <dsbatista@gmail.com>
* from_predefined -> from_template
* remove template inheritance for more readability
---------
Co-authored-by: David S. Batista <dsbatista@gmail.com>
2024-02-29 12:23:32 +01:00
David S. Batista
4766efbf19
adding missing imports in __init__.py
2024-02-29 11:10:02 +01:00
Massimiliano Pippi
cf1e28431a
fix docstrings for the builder package ( #7248 )
...
* fix docstrings for the builder package
* remove dead test
* Apply suggestions from code review
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* review feedback
* pylint
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-02-28 18:22:29 +01:00
Massimiliano Pippi
890c613a2c
chore: adjust docstrings in the audio package ( #7246 )
...
* adjust docstrings in the audio package
* Apply suggestions from code review
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* Update haystack/components/audio/whisper_remote.py
* black complaining for apparently no reason
---------
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2024-02-28 18:22:03 +01:00
Tobias Wochinger
e5f0e248b6
docs: review docstrings in haystack.components.validators
( #7238 )
...
* chore: make private
* docs: review and normalize docstrings
* docs: fix format and unused import
2024-02-28 17:46:30 +01:00
Madeesh Kannan
c4b54bcac0
docs: Update docstrings for haystack.components.caching
( #7247 )
...
* docs: Update docstrings for `haystack.components.caching`
* Update cache_checker.py
* `black`
2024-02-28 17:35:16 +01:00
David S. Batista
f4928360a0
fixing docstrings ( #7249 )
2024-02-28 17:34:30 +01:00
David S. Batista
0ddb48b70f
docs: docstrings - generators.chat
( #7239 )
...
* fixing docstrings
* Update haystack/components/generators/chat/azure.py
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* Update haystack/components/generators/chat/openai.py
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* Update haystack/components/generators/chat/hugging_face_tgi.py
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
* fixing docstrings
---------
Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2024-02-28 17:33:47 +01:00
Tobias Wochinger
f22d49944d
docs: review and normalize haystack.components.websearch
( #7236 )
...
* docs: review and normalize `haystack.components.websearch`
* fix: use correct type annotations
* refactor: use type from protocol
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
* Revert "refactor: use type from protocol"
This reverts commit 23d6f45cd763c39b98be1bff03639a90f2a01fac.
* docs: refactor according to comments
* build: correctly pin to 4.7
---------
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
2024-02-28 16:43:08 +01:00
David S. Batista
20ebb46fa5
Fix/docstrings dataclasses ( #7221 )
...
* wip
* fixing docstrings
* Update haystack/dataclasses/document.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/dataclasses/document.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-02-28 15:35:25 +01:00
Tobias Wochinger
c2a9528595
build: pin typing-extensions ( #7245 )
...
https://community.openai.com/t/error-while-importing-openai-from-open-import-openai/578166/26
2024-02-28 14:34:41 +01:00
Silvano Cerza
2fea67d4a9
Fix delete_outdated_docs.py to get the correct api key ( #7242 )
2024-02-28 12:52:13 +01:00
Silvano Cerza
61eb143905
Fix delete outdated docs job in readme_sync.yml ( #7241 )
2024-02-28 12:41:10 +01:00
Massimiliano Pippi
f812048713
remove the override feature ( #7227 )
2024-02-28 11:33:40 +01:00
Stefano Fiorucci
7b9704a93a
docs: review Routers
docstrings ( #7234 )
...
* wip
* review routers
* small fixes
* Update haystack/components/routers/conditional_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/conditional_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/file_type_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/file_type_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/file_type_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/file_type_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/metadata_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/metadata_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/text_language_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/text_language_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/routers/text_language_router.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-02-28 11:26:22 +01:00
Tobias Wochinger
ac4f458e2b
docs: review and normalize haystack.components.fetchers
( #7232 )
...
* docs: review and normalize `haystack.components.fetchers`
* docs: drop defaults
2024-02-28 11:24:12 +01:00