haystack/releasenotes/notes/hfapidocembedder-4c3970d002275edb.yaml
Stefano Fiorucci eff53a9131
feat: HuggingFaceAPIDocumentEmbedder (#7485)
* add HuggingFaceAPITextEmbedder

* add HuggingFaceAPITextEmbedder

* rm unneeded else

* wip

* small fixes

* deprecation; reno

* Apply suggestions from code review

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>

* make params mandatory

* changes requested

* fix test

* fix test

---------

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-04-08 15:06:26 +02:00

14 lines
534 B
YAML

---
features:
- |
Introduce `HuggingFaceAPIDocumentEmbedder`.
This component can be used to compute Document embeddings using different Hugging Face APIs:
- free Serverless Inference API
- paid Inference Endpoints
- self-hosted Text Embeddings Inference.
This embedder will replace the `HuggingFaceTEIDocumentEmbedder` in the future.
deprecations:
- |
Deprecate `HuggingFaceTEIDocumentEmbedder`. This component will be removed in Haystack 2.3.0.
Use `HuggingFaceAPIDocumentEmbedder` instead.