The Bedrock JCVD 🕺🥋 template is now officially part of LangChain!
To use this package, you should first have the LangChain CLI installed:
pip install -U langchain-cli
To create a new LangChain project and install this as the only package, you can do:
langchain app new my-app --package bedrock-jcvd
If you want to add this to an existing project, you can just run:
langchain app add bedrock-jcvd
And add the following code to your server.py
file:
from bedrock_jcvd import chain as bedrock_jcvd_chain
add_routes(app, bedrock_jcvd_chain, path="/bedrock-jcvd")
If you are inside this directory, then you can spin up a LangServe instance directly by:
langchain serve
This will start the FastAPI app with a server is running locally at http://localhost:8000
We can see all templates at http://127.0.0.1:8000/docs.
We can also access the playground at http://127.0.0.1:8000/bedrock-jcvd/playground