Literal AI Prompts with LangChain
With Literal AI you can create, debug and manage prompts. If you are using LangChain in your LLM application, you need to use a different format for prompts. In this guide, you will learn how to convert a Literal AI prompt to a LangChain Chat Prompt Template.
You can combine the prompt with the Langchain integration to log the generations and to track which prompt versions were used to generate them.
How to convert a Literal AI Prompt to LangChain
First, you pull the prompt from the Literal AI platform. Then, you can format this prompt to LangChain’s format.
Here is an example application:
Was this page helpful?