Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Ian Webster b0bbcb5457
docs: langchain example (#2735)
7 months ago
..
b0bbcb5457
docs: langchain example (#2735)
7 months ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago

README.md

You have to be logged in to leave a comment. Sign In

LangChain Red Team Example

Example of red teaming a LangChain customer service agent using Promptfoo.

Setup

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Set OpenAI API key
export OPENAI_API_KEY=your_key_here

# Run red team evaluation
npx promptfoo@latest redteam run

See the LangChain Red Team Guide for details.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...