langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
84.79k stars 13.1k forks source link

DOC: HuggingFaceEndpoint documentation incorrect for importing #20977

Open hdvsarm opened 2 weeks ago

hdvsarm commented 2 weeks ago

Checklist

Issue with current documentation:

The documentation here: https://python.langchain.com/docs/integrations/llms/huggingface_endpoint/ has incorrect import code (not sure if recent change caused it to not work).

Currently states: from langchain_community.llms import HuggingFaceEndpoint Correct: from langchain_community.llms.huggingface_endpoint import HuggingFaceEndpoint

Found while trying to follow the documentation

Idea or request for content:

A minor change needs to be made to first code block on page

jandevel commented 1 day ago

@hdvsarm please, close the issue. The import is correct, check the discussion for the related PR