haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Support gRPC interface of TEI

Open mhillebrand opened this issue 2 years ago • 4 comments

The gRPC interface of HuggingFace's Text Embeddings Inference (TEI) library is much, much faster than its HTTP interface. It would be fantastic to see Haystack add support for it.

https://github.com/huggingface/text-embeddings-inference?tab=readme-ov-file#grpc

mhillebrand avatar Apr 09 '24 20:04 mhillebrand

Nice idea!

I had a look and seems non-trivial because we are currently using the huggingface_hub library to send requests to TEI and this library does not seem to support gRPC.

Let's see if they will introduce this feature...

anakin87 avatar Apr 10 '24 06:04 anakin87

Let's check https://github.com/huggingface/text-embeddings-inference?tab=readme-ov-file#grpc

julian-risch avatar Apr 04 '25 13:04 julian-risch

Hi @julian-risch, is this issue open to contributions? I plan on working on it after #10673 is merged.

maxdswain avatar Mar 09 '26 17:03 maxdswain

Implemented in https://github.com/deepset-ai/haystack-core-integrations/pull/3870. Docs are coming.

anakin87 avatar Oct 02 '26 10:10 anakin87