Skip to content

langchain-ai/langchain-snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦜️🔗 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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5