Skip to content

Commit c658a72

Browse files
author
Eric Allen
committed
feat: add tutorial notebook for chainguard
ChainGuard is an open-source package that provides a simple, reliabe way to secure Generative AI applications and agents powered by LangChain from prompt injection, jailbreaks, and other threats with Lakera Guard. This tutorial notebook builds on top of the LangChain RAG Quickstart tutorial to illustrate how indirect prompt injection can happen and how ChainGuard can prevent indirect prompt injection in RAG applications.
1 parent 7a512d6 commit c658a72

File tree

4 files changed

+530
-0
lines changed

4 files changed

+530
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vscode
22
.idea/
33
.venv/
4+
.env
45

56
**/.ipynb_checkpoints
67
**/.DS_Store

notebooks/en/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
title: Advanced RAG on HuggingFace documentation using LangChain
2525
- local: rag_evaluation
2626
title: RAG Evaluation
27+
- local: rag_prompt_injection_defense_with_chainguard
28+
title: Protect your LangChain Apps with ChainGuard
2729
- local: prompt_tuning_peft
2830
title: Prompt tuning with PEFT
2931
- local: labelling_feedback_setfit

notebooks/en/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Check out the recently added notebooks:
2424
- [Advanced RAG on HuggingFace documentation using LangChain](advanced_rag)
2525
- [Detecting Issues in a Text Dataset with Cleanlab](issues_in_text_dataset)
2626
- [Annotate text data using Active Learning with Cleanlab](annotate_text_data_transformers_via_active_learning)
27+
- [Protect your LangChain Apps with ChainGuard](protect_langchain_apps_with_chainguard)
2728

2829
You can also check out the notebooks in the cookbook's [GitHub repo](https://github.com/huggingface/cookbook).
2930

0 commit comments

Comments
 (0)