mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-31 10:23:18 +00:00
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 <prithvi.kannan@databricks.com>
This commit is contained in:
@@ -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="<YOUT_ENDPOINT_NAME>",
|
||||
|
Reference in New Issue
Block a user