haystack/releasenotes/notes/adopt-hf-token-770edaccf6278ad9.yaml
Stefano Fiorucci 21d894d85a
refactor: adopt token instead of use_auth_token in HF components (#6040)
* move embedding backends

* use token in Sentence Transformers embeddings

* more compact token handling

* token parameter in reader

* add token to ranker

* release note

* add test for reader
2023-10-17 16:32:13 +02:00

9 lines
321 B
YAML

---
preview:
- |
Adopt Hugging Face `token` instead of the deprecated `use_auth_token`.
Add this parameter to `ExtractiveReader` and `SimilarityRanker` to allow
loading private models.
Proper handling of `token` during serialization: if it is a string (a possible valid token)
it is not serialized.