langchain/libs/partners/huggingface
Lucas Tucker cb79e80b0b
docs: standardize ChatHuggingFace (#22693)
**Updated ChatHuggingFace doc string as per issue #22296**:
"langchain_huggingface: updated docstring for ChatHuggingFace in
langchain_huggingface to match that of the description (in the appendix)
provided in issue #22296. "

**Issue:** This PR is in response to issue #22296, and more specifically
ChatHuggingFace model. In particular, this PR updates the docstring for
langchain/libs/partners/hugging_face/langchain_huggingface/chat_models/huggingface.py
by adding the following sections: Instantiate, Invoke, Stream, Async,
Tool calling, and Response metadata. I used the template from the
Anthropic implementation and referenced the Appendix of the original
issue post. I also noted that: langchain_community hugging face llms do
not work with langchain_huggingface's ChatHuggingFace model (at least
for me); the .stream(messages) functionality of ChatHuggingFace only
returned a block of response.

---------

Co-authored-by: lucast2021 <lucast2021@headroyce.org>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-06-10 20:54:36 +00:00
..
langchain_huggingface docs: standardize ChatHuggingFace (#22693) 2024-06-10 20:54:36 +00:00
scripts huggingface: fix community dep checking (#21628) 2024-05-13 21:52:18 +00:00
tests huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00
.gitignore huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00
LICENSE huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00
Makefile huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00
poetry.lock huggingface: remove text-generation dep (#22543) 2024-06-05 12:13:40 +00:00
pyproject.toml huggingface: remove text-generation dep (#22543) 2024-06-05 12:13:40 +00:00
README.md huggingface: init package (#21097) 2024-05-13 20:53:15 +00:00

langchain-huggingface

This package contains the LangChain integrations for huggingface related classes.

Installation and Setup

  • Install the LangChain partner package
pip install langchain-huggingface