Support for Datarbricks 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.2-py3-none-any.whl
.
File metadata
- Download URL: databricks_langchain-0.0.2-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.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c1013052f88894be71e52ff01b6f96c284e511ed0e35d55d3d7ba76fffe193 |
|
MD5 | a70be8f5b305f6b2187d4d196bc2d3c3 |
|
BLAKE2b-256 | c1300db53818d51fcfc764bed8d134b020b07d1480e78443697e292911699e23 |