Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

databricks_langchain-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file databricks_langchain-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_langchain-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bd71f9caefdb5c1823ad698c5efc13e0c0dcdd961ed0dd8c9b594f8f8e024aad
MD5 b1a8abf37bdbad16b614f976f22f0b53
BLAKE2b-256 6ff59d497b9a8d93975fe413f19eb1c1bc71b66665775a940088878e29f9110b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page