haystack/releasenotes/notes/hf-embedders-feature-extraction-ea0421a8f76052f0.yaml
Stefano Fiorucci 877f826da0
refactor: HF API Embedders - use InferenceClient.feature_extraction instead of InferenceClient.post (#8794)
* HF API Embedders: refactoring

* rename variables

* rm leftovers

* rm pin

* rm unused import

* relnote

* warning with truncate/normalize and serverless inference API

* test that warnings are raised
2025-02-03 15:11:16 +00:00

6 lines
237 B
YAML

---
fixes:
- |
In the Hugging Face API embedders, the `InferenceClient.feature_extraction` method is now used instead of
`InferenceClient.post` to compute embeddings. This ensures a more robust and future-proof implementation.