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
| API | Description | Endpoint Docs | Import | Example Usage |
|---|---|---|---|---|
| Chat | Build Chat Bots | Chat | from langchain_predictionguard import ChatPredictionGuard | ChatPredictionGuard.ipynb |
| Completions | Generate Text | Completions | from langchain_predictionguard import PredictionGuard | PredictionGuard.ipynb |
| Text Embedding | Embed String to Vectors | Embeddings | from langchain_predictionguard import PredictionGuardEmbeddings | PredictionGuardEmbeddings.ipynb |
Getting Started
Chat Models
Prediction Guard Chat
See a usage exampleUsage
Embedding Models
Prediction Guard Embeddings
See a usage exampleUsage
LLMs
Prediction Guard LLM
See a usage exampleUsage
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.