langchain/libs/partners/huggingface/langchain_huggingface/embeddings
Ella Charlaix c401254770
huggingface: Add ipex support to HuggingFaceEmbeddings (#29386)
ONNX and OpenVINO models are available by specifying the `backend`
argument (the model is loaded using `optimum`
https://github.com/huggingface/optimum)

```python
from langchain_huggingface import HuggingFaceEmbeddings

embedding = HuggingFaceEmbeddings(
    model_name=model_id,
    model_kwargs={"backend": "onnx"},
)
```

With this PR we also enable the IPEX backend 



```python
from langchain_huggingface import HuggingFaceEmbeddings

embedding = HuggingFaceEmbeddings(
    model_name=model_id,
    model_kwargs={"backend": "ipex"},
)
```
2025-02-07 15:21:09 -08:00
..
__init__.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
huggingface_endpoint.py huggingface[fix]: HuggingFaceEndpointEmbeddings model parameter passing error when async embed (#27953) 2024-11-20 19:08:56 +00:00
huggingface.py huggingface: Add ipex support to HuggingFaceEmbeddings (#29386) 2025-02-07 15:21:09 -08:00