Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
dependabot[bot] 020fdbec9e
chore: bump aiohttp from 3.11.11 to 3.12.14 in /examples/redteam-langchain in the pip group across 1 directory (#4922)
1 month ago
..
b0bbcb5457
docs: langchain example (#2735)
7 months ago
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
fc4a6bbc7d
docs(examples): update model references from gpt-4o-mini to gpt-4.1-mini (#4289)
2 months ago
1f15e05d88
docs: add schema header to example configs (#4277)
2 months ago
020fdbec9e
chore: bump aiohttp from 3.11.11 to 3.12.14 in /examples/redteam-langchain in the pip group across 1 directory (#4922)
1 month ago
b0bbcb5457
docs: langchain example (#2735)
7 months ago

README.md

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

redteam-langchain (LangChain Red Team Example)

You can run this example with:

npx promptfoo@latest init --example redteam-langchain

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...