Skip to main content
This page covers how to use the Prediction Guard ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific Prediction Guard wrappers. This integration is maintained in the langchain-predictionguard package.

Installation and Setup

  • Install the PredictionGuard LangChain partner package:
  • Get a Prediction Guard API key (as described here) and set it as an environment variable (PREDICTIONGUARD_API_KEY)

Prediction Guard LangChain Integrations

Getting Started

Chat Models

Prediction Guard Chat

See a usage example

Usage

Embedding Models

Prediction Guard Embeddings

See a usage example

Usage

LLMs

Prediction Guard LLM

See a usage example

Usage