Support for Databricks AI support in LangChain
Project description
🦜🔗 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!
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.5.1-py3-none-any.whl
.
File metadata
- Download URL: databricks_langchain-0.5.1-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9c7f7ecee76740c9de17b26820152dba504b117b073ff642c1e8afc48180e859
|
|
MD5 |
b69f9822d85ce110efd41d0ea743ffaf
|
|
BLAKE2b-256 |
0e313776e329e615358d391dce569204752bc0151d4d043b627f0dc094e960f1
|