🦜🔗 Databricks LangChain Integration
The databricks-langchain package provides seamless integration of Databricks AI features into LangChain applications. This repository is now the central hub for all Databricks-related LangChain components, consolidating previous packages such as langchain-databricks and langchain-community.
Installation
From PyPI
pip install databricks-langchain
From Source
pip install git+https://git@github.com/databricks/databricks-ai-bridge.git#subdirectory=integrations/langchain
Key Features
- LLMs Integration: Use Databricks-hosted large language models (LLMs) like Llama and Mixtral through
ChatDatabricks. - Vector Search: Store and query vector representations using
DatabricksVectorSearch. - Embeddings: Generate embeddings with
DatabricksEmbeddings. - Genie: Use Genie in Langchain.
Getting Started
Use LLMs on Databricks
from databricks_langchain import ChatDatabricks
llm = ChatDatabricks(endpoint="databricks-meta-llama-3-1-70b-instruct")
Use a Genie Space as an Agent (Preview)
Note: Requires Genie API Private Preview. Contact your Databricks 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"
)
Contribution Guide
We welcome contributions! Please see our contribution guidelines for details.
License
This project is licensed under the MIT License.
Thank you for using Databricks LangChain!
Release files for databricks-langchain 0.20.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| databricks_langchain-0.20.0.tar.gz | 34.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| databricks_langchain-0.20.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.6 kB
Release files / databricks_langchain-0.20.0.tar.gz
| Download URL | databricks_langchain-0.20.0.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84b067f9356ea6fd3cb778dd71dbd070dc8ad579a4c2cdf6717b9c3f85660b25
|
|
BLAKE2b-256 checksum How to use checksums |
a4acba1e3eb35652a307589206b5e470980b29e89ac575f3f305efdf20a052f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / databricks_langchain-0.20.0-py3-none-any.whl
| Download URL | databricks_langchain-0.20.0-py3-none-any.whl |
|---|---|
| Size | 39.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da82f4e8da5386fb91a522a7f72c949797beccc580ccf3b1a287c4348fafa940
|
|
BLAKE2b-256 checksum How to use checksums |
3f1d4b79f41a7079f97f29cdc2076350b1cf3b90154e86790d5eadd48f8fb93f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|