From 0c95ddbcd8b5287e62a3e5e2296811c15efe81c6 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 16 Apr 2024 17:31:27 -0700 Subject: [PATCH] docs: add snowflake provider page (#20538) --- .../docs/integrations/providers/snowflake.mdx | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/docs/integrations/providers/snowflake.mdx diff --git a/docs/docs/integrations/providers/snowflake.mdx b/docs/docs/integrations/providers/snowflake.mdx new file mode 100644 index 00000000000..8ce9b3f682d --- /dev/null +++ b/docs/docs/integrations/providers/snowflake.mdx @@ -0,0 +1,32 @@ +# Snowflake + +> [Snowflake](https://www.snowflake.com/) is a cloud-based data-warehousing platform +> that allows you to store and query large amounts of data. + +This page covers how to use the `Snowflake` ecosystem within `LangChain`. + +## Embedding models + +Snowflake offers their open weight `arctic` line of embedding models for free +on [Hugging Face](https://huggingface.co/Snowflake/snowflake-arctic-embed-l). +You can use these models via the +[HuggingFaceEmbeddings](/docs/integrations/text_embedding/huggingfacehub) connector: + +```shell +pip install langchain-community sentence-transformers +``` + +```python +from langchain_community.text_embeddings import HuggingFaceEmbeddings + +model = HuggingFaceEmbeddings(model_name="snowflake/arctic-embed-l") +``` + +## Document loader + +You can use the [`SnowflakeLoader`](/docs/integrations/document_loaders/snowflake) +to load data from Snowflake: + +```python +from langchain_community.document_loaders import SnowflakeLoader +```