ilariapet created SOLR-18000:
--------------------------------
Summary: HuggingFace Embedding Failure Due to Deprecated Endpoint
in langchain4j
Key: SOLR-18000
URL: https://issues.apache.org/jira/browse/SOLR-18000
Project: Solr
Issue Type: Bug
Affects Versions: 9.10
Reporter: ilariapet
When attempting to use any HuggingFace embedding model within Solr’s LLM
module, the request fails:
{code:java}
"error": {"msg": "status code: 410; body:
{\"error\":\"https://api-inference.huggingface.co is no longer supported.
Please use https://router.huggingface.co instead.\"}", {code}
A recent commit in langchain4j changed the {*}default BASE_URL{*}, switching
from the deprecated endpoint to the new one:
[https://github.com/langchain4j/langchain4j/commit/048b07a7ffd44932f9a8f9a7edc7a8d19d0d4c61]
However, this fix has not yet been included in an official langchain4j release.
Update the langchain4j dependency in Solr to a version that includes the
BASE_URL fix. This will ensure HuggingFace models correctly use
{{{}https://router.huggingface.co{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]