Support for GPUs with @huggingface models Thanks to @parth_29 you can now more easily use GPUs for huggingface pipelines! PR here: https://
github.com/hwchase17/lang
chain/pull/750
…
@langchain
-
GPU Support Added for Hugging Face Models in LangChain
By
–
-
Major Software Release: GPU Support and Tool Decorator Features
By
–
Big weekend release! Too many changes to even try to list in a single tweet But as a teaser: – Support for using GPUs with @huggingface models
– A decorator to easily turn a function into a Tool
– Lots more! -

Tool Decorator Simplifies Agent Function Creation
By
–
Decorator for creating tools Thanks to @jxnlco you can now create a Tool from a function with a simple decorator. Easier than ever to have agents start interacting with arbitrary functions! Documentation: https://
langchain.readthedocs.io/en/latest/modu
les/agents/examples/custom_tools.html#using-the-tool-decorator
… -
SQL Database Agent Optimization via Prompt Engineering
By
–
yes new ones! see the thread for an example of an agent optimized (via the prompt) for interacting with a sql db
-
Serialized AI Agents: Should Tools Be Included Together?
By
–
will depend on what tools you use with it! these serialized agents do NOT include the specific tools (yet), they're just the agent logic and rely on users to pass intools do you think it would be more useful to have agents + tools serialized together?
-
LangChain Hub Repository for AI Agents Development
By
–
currently just using the github repo for that https://
github.com/hwchase17/lang
chain-hub/tree/master/agents
… -
LangChain Hub Makes Sharing Agents and Chains Easier
By
–
This should make it easier than ever to share your chains/agents, which we think are much more useful than just prompts! See here for how to upload agents (
https://
github.com/hwchase17/lang
chain-hub/tree/master/agents
…) and here for how to upload chains (
https://
github.com/hwchase17/lang
chain-hub/tree/master/chains
…) -
Loading LangChain Agents with Self-Ask Search Tool
By
–
To load agents: “`
from langchain.agents import initialize_agent agent = initialize_agent(tools, llm, agent="lc://agents/self-ask-with-search/agent.json")
“` Documentation: https://
langchain.readthedocs.io/en/latest/modu
les/agents/examples/load_from_hub.html
… -
LangChain SQL Agent Variants with Custom Parameters
By
–
This makes it possible upload chains/agents that are variants of existing chains/agents but with different parameters For example, here's an agent specifically instructed to interact with SQL databases that @fpingham came up with: https://
github.com/hwchase17/lang
chain-hub/tree/master/agents/zero-shot-react-sql
… -
Loading Chains with LangChain Framework
By
–
To load chains: “`
from langchain.chains import load_chain chain = load_chain('lc://chains/path/to/file.json')
“` Documentation: https://
langchain.readthedocs.io/en/latest/modu
les/chains/generic/from_hub.html
…