mirror of
https://github.com/langchain-ai/langchain-snowflake.git
synced 2026-07-16 10:14:25 -04:00
main
Co-authored-by: John <john@langchain.dev>
🦜️🔗 Langchain Snowflake
This repository contains 1 package with Snowflake integrations with Langchain/Langgraph:
Langchain / Langgraph integration for Snowflake Cortex AI. Native support for chat models, tools, and retrieval with production-ready authentication.
Features
Core Capabilities
- Chat Models - Native Snowflake Cortex LLM support (Claude, Llama, Mistral, GPT-4)
- Tool Calling - Standard LangChain tool binding with Snowflake Cortex functions
- Structured Output - Pydantic and JSON schema support
- Streaming - Real-time response streaming for better UX
Snowflake Cortex AI Integration
- Cortex Search - Semantic search with relevance scoring
- Cortex Analyst - Natural language to SQL via semantic models
- Cortex Agents - Managed agent orchestration with thread management
- Cortex Complete - Text generation and completion
Production Ready
- Multiple Authentication - Password, PAT, Key Pair, SSO
- Async/Await Support - High-performance async operations
- Error Handling - Comprehensive error recovery
- LangSmith Integration - Built-in observability and tracing
- 50+ Tests - Comprehensive test coverage
Installation
pip install langchain-snowflake
LangSmith Tracing
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=your-langsmith-api-key
export LANGCHAIN_PROJECT=snowflake-cortex
Documentation
- Getting Started
- Snowflake Workflows
- Advanced Patterns
- MCP Integration
- RAG Quickstart
- Multi-Agent Quickstart - coming soon
Contributing
We welcome contributions! See Development.md for setup and guidelines.
License
MIT License - see LICENSE for details
Support
- Check documentation notebooks in
docs/ - Report issues on GitHub Issues
Releases
6
Languages
Python
83.8%
Jupyter Notebook
15.6%
Makefile
0.5%
Shell
0.1%