Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: <Issue related to /docs/integrations/llms/huggingface_inference/> - missing llms directory #7476

Closed
2 tasks done
dmitry-yudakov opened this issue Jan 7, 2025 · 2 comments · Fixed by #7506
Closed
2 tasks done
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

Comments

@dmitry-yudakov
Copy link

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

The path "langchain/llms/hf" that this doc gives in the example doesn't seem to be valid - there's no llms directory under node_modules/langchain. It might be obsolete or moved to another path.

Idea or request for content:

The path needs to be fixed or the whole example removed (if it's obsolete)

Copy link

dosubot bot commented Jan 7, 2025

Hello @dmitry-yudakov! I'm here to help you with any bugs, questions, or contributions. I'm a bot designed to assist you while waiting for a human maintainer.

The path for Hugging Face inference integration has indeed changed in the latest version of LangChain. The correct import path is now:

import { HuggingFaceInference } from "@langchain/community/llms/hf";

This update reflects the restructuring of the directory and import paths. The documentation should be updated to reflect this change [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Jan 7, 2025
@dmitry-yudakov
Copy link
Author

Unfortunately node_modules/@langchain/community doesn't exist either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant