Skip to main content

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


Download files

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

Source Distribution

databricks_langchain-0.17.0.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

databricks_langchain-0.17.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file databricks_langchain-0.17.0.tar.gz.

File metadata

  • Download URL: databricks_langchain-0.17.0.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for databricks_langchain-0.17.0.tar.gz
Algorithm Hash digest
SHA256 deaf97964acdfe3e7ae4a338e1fb49a9a0f9a5772001f8f07c9a74e4543834d6
MD5 34894e4110875c87b287d36e8165012c
BLAKE2b-256 b41166e907aab4b056b38b20b6dfc6d9218898584c8b4adb318a2c3e32a85d05

See more details on using hashes here.

Provenance

The following attestation bundles were made for databricks_langchain-0.17.0.tar.gz:

Publisher: release-databricks-langchain.yml on databricks/databricks-ai-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for databricks_langchain-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 384fc96ba3440a8e7cc760f361242b8c8ed8b762b3bcbfb52fa35d75f9b7bc84
MD5 e101c5332cd23b290dcc280ce137e77f
BLAKE2b-256 769d97cd118e3d63baa847c5aea400dc367f979b3c5ebaa25bf886dcd1786b4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for databricks_langchain-0.17.0-py3-none-any.whl:

Publisher: release-databricks-langchain.yml on databricks/databricks-ai-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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