RSSAmplifier

how.wtf · Feb 11, 2024

Create and run Bash programs with LangChain

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Using LangChain, we can create a prompt to output a bash, which is then executed via the BashProcess tool. All of this is as easy as a few lines of Python code! How to generate bash scripts using LangChain First, let’s install the necessary dependencies: 1pip install langchain-core langchain-experimental langchain-openaiNow, let’s write a simplistic prompt to get OpenAI to output bash…

Read on how.wtf

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.