LangChain Azure
Supercharge Your AI Projects with Azure Integrations

Unlock the power of Azure AI services with LangChain. Build, deploy, and scale your AI applications with ease.

💡Azure OpenAI & AI Foundry Support
🔗Seamless Integration with Azure AI Services
📚Comprehensive Documentation & Quickstarts

Welcome Explore the Power of LangChain-Azure

This repository provides a comprehensive suite of Azure integrations for LangChain, empowering you to build sophisticated AI applications. Leverage the capabilities of Azure OpenAI, Azure AI Search, Cosmos DB, and more within the LangChain framework.

Whether you're a seasoned AI developer or just starting out, LangChain-Azure offers a streamlined experience. Easily integrate with models like Azure OpenAI, Cohere, Llama, Phi-3/4, and DeepSeek-R1, accelerating your development workflow.

Get Started Quick Start with langchain-azure-ai

The langchain-azure-ai package leverages the Azure AI Foundry SDK, providing access to a wide array of models. Install the package and get started with the Chat Completions model using Azure OpenAI or DeepSeek-R1. See the example provided in the documentation.

For detailed tutorials and further exploration, consult the official documentation on 'Develop with LangChain' and 'LangGraph', along with the model resources from Azure AI Foundry.

Contribute Join the LangChain-Azure Community

We warmly welcome contributions from the community! Whether it's new features, improved infrastructure, documentation enhancements, or bug fixes, your contributions are highly valued.

To contribute, follow the 'fork and pull request' workflow. Adhere to the pull request template, tag relevant maintainers, and ensure your changes pass formatting, linting, and testing checks. Remember to add unit and integration tests for new features or bug fixes.

Dependency Management and Local Development

This project uses Poetry v1.7.1+ for dependency management. Before installing Poetry, create and activate a new Conda environment. Further instructions can be found in the documentation. Detailed instructions on setting up your development environment are available within the README.

Your contributions are vital to our community. Let's build the future of AI together!

The LangChain-Azure Team

Explore and Engage

Discover the possibilities with LangChain Azure

🚀

Quickstart Guide

Get up and running with LangChain Azure in minutes with our easy-to-follow guide.

💻

Code Examples

Dive into practical code examples showcasing the power of LangChain Azure integrations.

🤝

Contributing Guide

Learn how to contribute and help shape the future of LangChain Azure.

Structure Understanding the Repository

LangChain-Azure is organized as a monorepo, comprising multiple packages. Each package has its own development environment. Docs are run from the top-level makefile. Development is split across separate test and release flows. The structure is easily visualized.

Testing , Formatting, and Linting for a Robust System

Comprehensive testing is a cornerstone of the LangChain-Azure project. Unit tests, which run on every pull request, focus on modular logic and pre/post-processing. Integration tests, which run periodically, confirm interface points with external services.

Formatting is handled by ruff, and linting by a combination of ruff and mypy. Run the appropriate commands from each library directory. Detailed guides are available to ensure consistent code quality, and help reduce common errors.

LangChain Azure: Seamless Integrations for AI Development