Support for Databricks AI support in LangChain
Project description
🦜🔗 Using Databricks AI Bridge with Langchain
Integrate Databricks AI Bridge package with Langchain to allow seamless usage of Databricks AI features with Langchain/Langgraph applications.
Note: This repository is the future home for all Databricks integrations currently found in langchain-databricks
and langchain-community
. We have now aliased langchain-databricks
to databricks-langchain
, consolidating integrations such as ChatDatabricks, DatabricksEmbeddings, DatabricksVectorSearch, and more under this package.
Installation
Install from PyPI
pip install databricks-langchain
Install from source
pip install git+ssh://git@github.com/databricks/databricks-ai-bridge.git#subdirectory=integrations/langchain
Get started
Use LLMs on Databricks
from databricks_langchain import ChatDatabricks
llm = ChatDatabricks(endpoint="databricks-meta-llama-3-1-70b-instruct")
(Preview) Use a Genie space as an agent
[!NOTE] Requires Genie API Private Preview. Reach out to your account team for enablement.
from databricks_langchain.genie import GenieAgent
genie_agent = GenieAgent("space-id", "Genie", description="This Genie space has access to sales data in Europe")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file databricks_langchain-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: databricks_langchain-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd71f9caefdb5c1823ad698c5efc13e0c0dcdd961ed0dd8c9b594f8f8e024aad |
|
MD5 | b1a8abf37bdbad16b614f976f22f0b53 |
|
BLAKE2b-256 | 6ff59d497b9a8d93975fe413f19eb1c1bc71b66665775a940088878e29f9110b |