Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tutorial notebook for chainguard #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ericrallen
Copy link

What does this PR do?

This PR introduces a new tutorial notebook that builds on top of the LangChain RAG Quickstart tutorial to illustrate how indirect prompt injection can happen in RAG applications, and how ChainGuard can prevent indirect prompt injection in RAG applications.

ChainGuard is an open-source Python package that provides a simple, reliable way to secure Generative AI applications and agents powered by LangChain from prompt injection, jailbreaks, and other threats with Lakera Guard.

Who can review?

@MKhalusova

ChainGuard is an open-source package that provides a simple, reliable 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.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -1,6 +1,7 @@
.vscode
.idea/
.venv/
.env
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some notes about using a .env file for the relevant environment variables, so I thought it was pertinent to add .env to the .gitignore, too.

@@ -0,0 +1,526 @@
{
Copy link
Collaborator

@merveenoyan merveenoyan Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you replace this with an open-source model instead? It can also be a hosted endpoint at Hugging Face for instance but with an open-source alternative.


Reply via ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants