Skip to main content

Langchain Snowflake

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

Metadata

Release files for langchain-snowflake 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-snowflake 0.2.3
File Size Uploaded
langchain_snowflake-0.2.3.tar.gz 64.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-snowflake 0.2.3
File Interpreter ABI Platform
langchain_snowflake-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 147.2 kB

Release files / langchain_snowflake-0.2.3.tar.gz

Download URL langchain_snowflake-0.2.3.tar.gz
Size 64.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c96e739930ecf10d110c5cdd0a6dcee45ca59a77457420d6efca14808f1aaf83
BLAKE2b-256 checksum
How to use checksums
44fae30a73100f06e4ee009620e968a5be6fc9549c620cadb9134dc63787de25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / langchain_snowflake-0.2.3-py3-none-any.whl

Download URL langchain_snowflake-0.2.3-py3-none-any.whl
Size 82.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
670bcb89281da72f2349fa619dea18ce2e049081c778d7ca4c5a26057ef251eb
BLAKE2b-256 checksum
How to use checksums
e10d72b4ea34f3f03d49ec4989c771ee2b8911ff237288733624a98a82756885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page