Commit 0dd027d
authored
Add HuggingFace chat model integration examples (#1522)
**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.1 parent bf08b1c commit 0dd027d
1 file changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
137 | 175 | | |
138 | 176 | | |
0 commit comments