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

community: add AzureAIContentSafetyChain #27480

Conversation

Sheepsta300
Copy link
Contributor

@Sheepsta300 Sheepsta300 commented Oct 19, 2024

Thank you for contributing to LangChain!

  • PR title: community: add AzureAIContentSafetyChain

  • PR message:

    • Description: The Azure AI Content Safety service checks input against the Azure Content Safety policy. By adding a runnable implementation of this service customers can utilise it in a chain, with other services to monitor input before it's passed to a chat model of some sort. This PR aims to further expose Azure services to LangChain and to allow Azure customers to use The Content Safety service in yet another way.
    • Dependencies: no dependencies added to the class, azure.ai.contentsafety has been added to the extended tests file.
  • Add tests and docs:

    1. there are 3 unit tests mocking the underlying API and checking, initialisation, when safe content is passed and when harmful content is passed.
    2. an example notebook showing its use. It lives in docs/docs/integrations directory.
  • Lint and test: Linting has passed.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 19, 2024
Copy link

vercel bot commented Oct 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:05am

@dosubot dosubot bot added the community Related to langchain-community label Oct 19, 2024
@efriis
Copy link
Member

efriis commented Dec 16, 2024

we're not adding new chains like this to community anymore as we're mostly recommending folks build things like this in langgraph (see the langchain guides on migrating from legacy chains to lcel or langgraph here: https://python.langchain.com/docs/versions/migrating_chains/ )

We're more flexible when it comes to external packages like langchain-azure ones at github.com/langchain-ai/langchain-azure, so if the azure team wants them in, feel free to merge and release from there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants