Skip to content

Commit

Permalink
feat: add tutorial notebook for chainguard
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Eric Allen committed Apr 10, 2024
1 parent 7a512d6 commit c658a72
Show file tree
Hide file tree
Showing 4 changed files with 530 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.vscode
.idea/
.venv/
.env

**/.ipynb_checkpoints
**/.DS_Store
2 changes: 2 additions & 0 deletions notebooks/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
title: Advanced RAG on HuggingFace documentation using LangChain
- local: rag_evaluation
title: RAG Evaluation
- local: rag_prompt_injection_defense_with_chainguard
title: Protect your LangChain Apps with ChainGuard
- local: prompt_tuning_peft
title: Prompt tuning with PEFT
- local: labelling_feedback_setfit
Expand Down
1 change: 1 addition & 0 deletions notebooks/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Check out the recently added notebooks:
- [Advanced RAG on HuggingFace documentation using LangChain](advanced_rag)
- [Detecting Issues in a Text Dataset with Cleanlab](issues_in_text_dataset)
- [Annotate text data using Active Learning with Cleanlab](annotate_text_data_transformers_via_active_learning)
- [Protect your LangChain Apps with ChainGuard](protect_langchain_apps_with_chainguard)

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

Expand Down
Loading

0 comments on commit c658a72

Please sign in to comment.