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.3.tar.gz (64.5 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.3-py3-none-any.whl (82.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_snowflake-0.2.3.tar.gz
  • Upload date:
  • Size: 64.5 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.3.tar.gz
Algorithm Hash digest
SHA256 c96e739930ecf10d110c5cdd0a6dcee45ca59a77457420d6efca14808f1aaf83
MD5 e8d2dfc80d2771517b45fbcedc0ddb7a
BLAKE2b-256 44fae30a73100f06e4ee009620e968a5be6fc9549c620cadb9134dc63787de25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_snowflake-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 670bcb89281da72f2349fa619dea18ce2e049081c778d7ca4c5a26057ef251eb
MD5 b51ad30b8ba3c148432d07075503243c
BLAKE2b-256 e10d72b4ea34f3f03d49ec4989c771ee2b8911ff237288733624a98a82756885

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