Skip to content

Conversation

@akhilreddy097
Copy link
Contributor

Type: Update existing documentation

Related issues/PRs

Related to langchain-ai/langchain#28226

Description

Adds HuggingFace chat model integration examples to the chat-model-tabs.mdx snippet file.

Includes:

  • Installation instructions for langchain[huggingface]
  • init_chat_model example with HuggingFace provider
  • Direct model class usage with HuggingFaceEndpoint and ChatHuggingFace
  • Uses microsoft/Phi-3-mini-4k-instruct as the example model

This provides users with a clear example of how to use init_chat_model with HuggingFace models, addressing the documentation gap mentioned in issue #28226.

This adds HuggingFace chat model integration examples to the chat-model-tabs.mdx snippet file.

Includes:
- Installation instructions for langchain[huggingface]
- init_chat_model example with HuggingFace provider
- Direct model class usage with HuggingFaceEndpoint and ChatHuggingFace
- Uses microsoft/Phi-3-mini-4k-instruct as the example model

Resolves issue #28226
@lnhsingh lnhsingh merged commit 0dd027d into langchain-ai:main Nov 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants