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
Silvano Cerza
85491433c6
ci: Add script to delete documentation that don't exist anymore ( #7209 )
...
* Add script to delete documentation that don't exist anymore
* Remove prints
2024-02-28 11:02:59 +01:00
Tobias Wochinger
419009b495
fix: move sensitive log to debug mode ( #7230 )
2024-02-28 09:45:50 +01:00
Stefano Fiorucci
380052a963
replace text with content ( #7211 )
2024-02-28 09:28:14 +01:00
David S. Batista
f9db75c497
Fix/docstrings generators ( #7218 )
...
* fixing azure
* fixing openai
* fixing remaining
* Update haystack/components/generators/openai.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/generators/hugging_face_local.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/generators/hugging_face_local.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* Update haystack/components/generators/hugging_face_local.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
* fixing docstrings
* fixing docstrings
* fixing docstrings
* Update haystack/components/generators/hugging_face_tgi.py
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
---------
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-02-27 20:14:58 +01:00
Tobias Wochinger
14f65d5a68
feat: check tty / jupyter availability for logging config detection ( #7226 )
...
* feat: check tty availability for logging config detection
* chore: support jupyter + lower env variable
* chore: also use jupyter util for check
* test: set right mode
2024-02-27 18:31:51 +01:00
Vladimir Blagojevic
d871bbbfbd
feat: Add complex types in OpenAPI support ( #7065 )
...
* Add complex types OpenAPI support
* Add release note
---------
Co-authored-by: Julian Risch <julian.risch@deepset.ai>
2024-02-27 18:11:06 +01:00
David S. Batista
3fc77979d8
fixing docstrings ( #7225 )
2024-02-27 17:50:36 +01:00
Massimiliano Pippi
93acdc1d3a
refactor: Refactor pipeline templates ( #7213 )
...
* merge template source into pipeline template
* docstrings
* rework pipeline templates using Jinja features
* amend release notes
* linting
* Apply suggestions from code review
Co-authored-by: Julian Risch <julian.risch@deepset.ai>
* specify QA is generative
* amend docstring
* review feedback
* forgot one comment
* add template source to the error message for easy debugging
* fix tests
* try
* annotate return type of build function
---------
Co-authored-by: Julian Risch <julian.risch@deepset.ai>
2024-02-27 17:39:23 +01:00
Stefano Fiorucci
e194c08316
docs: review DocumentLanguageClassifier
docstrings ( #7210 )
...
* review DocumentLanguageClassifier docstrings
* fix
* improve pydoc config
2024-02-27 16:02:53 +01:00
Stefano Fiorucci
2580e053ad
fix wrong docs config ( #7224 )
2024-02-27 16:00:44 +01:00
Stefano Fiorucci
9b1d7926ae
preprocessors: review docstrings ( #7219 )
2024-02-27 15:51:23 +01:00
dependabot[bot]
87727e4d5c
chore(deps): bump iterative/setup-cml from 2 to 3 ( #7223 )
...
Bumps [iterative/setup-cml](https://github.com/iterative/setup-cml ) from 2 to 3.
- [Release notes](https://github.com/iterative/setup-cml/releases )
- [Commits](https://github.com/iterative/setup-cml/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: iterative/setup-cml
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-02-27 15:49:48 +01:00
Tobias Wochinger
6fce2dbb11
feat: log trace correlation ( #7206 )
...
* feat: implement support for trace-log correlation
* docs: add release notes
2024-02-27 10:06:53 +01:00