[GH-ISSUE #4323] [langchain]: <Text embeddings inference integration> #2796

Open
opened 2026-06-05 17:26:49 -04:00 by yindo · 0 comments
Owner

Originally created by @imxlaoxin on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/4323

Type of issue

issue / bug

Language

Python

Description

The official documentation uses HuggingFaceEndpointEmbeddings (model= "http://localhost:8080") with URL-based connections, but the latest version of langchain_huggingface no longer supports this method.

Traceback (most recent call last):
File "G:\project\python\AI-Model\project\data-agent\app\clients\embedding_client_manager.py", line 25, in
embedding_client_manager.init()
File "G:\project\python\AI-Model\project\data-agent\app\clients\embedding_client_manager.py", line 14, in init
self.embedding_client = HuggingFaceEndpointEmbeddings(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\project\python\AI-Model\project\data-agent.venv\Lib\site-packages\pydantic\main.py", line 263, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for HuggingFaceEndpointEmbeddings
Value error, model must be a HuggingFace repo ID, not a URL. [type=value_error, input_value={'model': 'http://localhost:9100'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.13/v/value_error

Process finished with exit code 1

Originally created by @imxlaoxin on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/langchain-ai/docs/issues/4323 ### Type of issue issue / bug ### Language Python ### Description The official documentation uses HuggingFaceEndpointEmbeddings (model= "http://localhost:8080") with URL-based connections, but the latest version of langchain_huggingface no longer supports this method. Traceback (most recent call last): File "G:\project\python\AI-Model\project\data-agent\app\clients\embedding_client_manager.py", line 25, in <module> embedding_client_manager.init() File "G:\project\python\AI-Model\project\data-agent\app\clients\embedding_client_manager.py", line 14, in init self.embedding_client = HuggingFaceEndpointEmbeddings( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\project\python\AI-Model\project\data-agent\.venv\Lib\site-packages\pydantic\main.py", line 263, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for HuggingFaceEndpointEmbeddings Value error, `model` must be a HuggingFace repo ID, not a URL. [type=value_error, input_value={'model': 'http://localhost:9100'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.13/v/value_error Process finished with exit code 1
yindo added the langchainexternal labels 2026-06-05 17:26:49 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2796