Skip to main content

An integration package connecting Snowflake and LangChain

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_snowflake-0.2.2.tar.gz (63.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_snowflake-0.2.2-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_snowflake-0.2.2.tar.gz.

File metadata

  • Download URL: langchain_snowflake-0.2.2.tar.gz
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_snowflake-0.2.2.tar.gz
Algorithm Hash digest
SHA256 fb39a7bc475a766e82c5e53c2401da5dc49dbabdbe321f68b055be6341fcbb62
MD5 384541a62475e20b776ab70083064b58
BLAKE2b-256 04e2b821edb5fd60029097ab8f30b36eff9fa67777ef5c66cbf998401669d086

See more details on using hashes here.

File details

Details for the file langchain_snowflake-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_snowflake-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d9b2dc3d1e015d87d03f1df5da4c52595109de1eeefc79698d889548c125f40
MD5 8be064a7cbda2d8731646ad0b5f02ea6
BLAKE2b-256 9801f950a2c15b7b914e99d8debf35af130e3507a90885a1dcff522c6e7b45ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page