Prompt Playground
Setup
The Prompt Playground will automatically be available through a Step if a generation object is passed to that step.
Chainlit integrations will take care of this for you if the framework you are using supports it.
Example
For this example we are going to create a completion with OpenAI chat API and create a ChatGeneration reflecting the API call made to OpenAI.
Chainlit supports other LLM providers and let’s you implement custom ones. Learn more here.
Result
Once the step is sent, a new button will be available next to it. Clicking on that button will open the Prompt Playground in the context of that step.
Open the Prompt Playground
Was this page helpful?