From 99faf400987dd4e29582648c1340084907048f90 Mon Sep 17 00:00:00 2001 From: Prithvi Kannan <46332835+prithvikannan@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:21:19 -0700 Subject: [PATCH] docs: Reference new databricks-langchain package (#27828) Thank you for contributing to LangChain! Update references in Databricks integration page to reference our new partner package databricks-langchain https://github.com/databricks/databricks-ai-bridge/tree/main/integrations/langchain Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. --------- Signed-off-by: Prithvi Kannan --- .../docs/integrations/providers/databricks.md | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/docs/docs/integrations/providers/databricks.md b/docs/docs/integrations/providers/databricks.md index 54a10c7c6a62c..a45e8e3e03eb2 100644 --- a/docs/docs/integrations/providers/databricks.md +++ b/docs/docs/integrations/providers/databricks.md @@ -14,23 +14,13 @@ Databricks embraces the LangChain ecosystem in various ways: Installation ------------ -First-party Databricks integrations are available in the langchain-databricks partner package. +First-party Databricks integrations are now available in the databricks-langchain partner package. ``` -pip install langchain-databricks +pip install databricks-langchain ``` -🚧 Upcoming Package Consolidation Notice - -This package (`langchain-databricks`) will soon be consolidated into a new package: `databricks-langchain`. The new package will serve as the primary hub for all Databricks Langchain integrations. - -What’s Changing? -In the coming months, `databricks-langchain` will include all features currently in `langchain-databricks`, as well as additional integrations to provide a unified experience for Databricks users. - -What You Need to Know -For now, continue to use `langchain-databricks` as usual. When `databricks-langchain` is ready, we’ll provide clear migration instructions to make the transition seamless. During the transition period, `langchain-databricks` will remain operational, and updates will be shared here with timelines and guidance. - -Thank you for your support as we work toward an improved, streamlined experience! +The legacy langchain-databricks partner package is still available but will be soon deprecated. Chat Model ---------- @@ -38,7 +28,7 @@ Chat Model `ChatDatabricks` is a Chat Model class to access chat endpoints hosted on Databricks, including state-of-the-art models such as Llama3, Mixtral, and DBRX, as well as your own fine-tuned models. ``` -from langchain_databricks import ChatDatabricks +from databricks_langchain import ChatDatabricks chat_model = ChatDatabricks(endpoint="databricks-meta-llama-3-70b-instruct") ``` @@ -69,7 +59,7 @@ Embeddings `DatabricksEmbeddings` is an Embeddings class to access text-embedding endpoints hosted on Databricks, including state-of-the-art models such as BGE, as well as your own fine-tuned models. ``` -from langchain_databricks import DatabricksEmbeddings +from databricks_langchain import DatabricksEmbeddings embeddings = DatabricksEmbeddings(endpoint="databricks-bge-large-en") ``` @@ -83,7 +73,7 @@ Vector Search Databricks Vector Search is a serverless similarity search engine that allows you to store a vector representation of your data, including metadata, in a vector database. With Vector Search, you can create auto-updating vector search indexes from [Delta](https://docs.databricks.com/en/introduction/delta-comparison.html) tables managed by [Unity Catalog](https://www.databricks.com/product/unity-catalog) and query them with a simple API to return the most similar vectors. ``` -from langchain_databricks.vectorstores import DatabricksVectorSearch +from databricks_langchain import DatabricksVectorSearch dvs = DatabricksVectorSearch( endpoint="",