The LangBear app is a web application for prompt management. Users can create
and update prompt templates on-the-fly, track versions, and monitor prompt
ratings with it.Step 1. Create and configure a new LangBear app with Supabase.
The LangBear library allows you to manage LangChain prompts from the LangBear
web application, accomplished with just a few lines of code.Step 1. Add LangBear dependency to your project:
Copy
pip install langbear
Step 2. Initialize LangBear client:
Copy
from langbear import LangBearlb = LangBear(end_point="http://localhost:3030")
Step 2. Add LangBear callback handler to your LangChain callbacks:
Copy
from langchain.llms import OpenAIllm = OpenAI(temperature=0.5, callbacks=[lb.callback_handler])