A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python.langchain.com/docs/integrations/providers/promptlayer/ below:

PromptLayer | 🦜️🔗 LangChain

Our new LangChain Academy Course Deep Research with LangGraph is now live!

Enroll for free

.

PromptLayer

PromptLayer is a platform for prompt engineering. It also helps with the LLM observability to visualize requests, version prompts, and track usage.

While PromptLayer does have LLMs that integrate directly with LangChain (e.g. PromptLayerOpenAI), using a callback is the recommended way to integrate PromptLayer with LangChain.

Installation and Setup

To work with PromptLayer, we have to:

Install a Python package:

Callback

See a usage example.

import promptlayer  
from langchain.callbacks import PromptLayerCallbackHandler
LLM

See a usage example.

from langchain_community.llms import PromptLayerOpenAI
Chat Models

See a usage example.

from langchain_community.chat_models import PromptLayerChatOpenAI

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4