Skip to main content

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


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.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for databricks_langchain-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33c1013052f88894be71e52ff01b6f96c284e511ed0e35d55d3d7ba76fffe193
MD5 a70be8f5b305f6b2187d4d196bc2d3c3
BLAKE2b-256 c1300db53818d51fcfc764bed8d134b020b07d1480e78443697e292911699e23

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