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.14.0.tar.gz (31.3 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.14.0-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databricks_langchain-0.14.0.tar.gz
  • Upload date:
  • Size: 31.3 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.14.0.tar.gz
Algorithm Hash digest
SHA256 903d1d10a053d8424506ef6b7ae83c1a8ca0fe9c8d1582ca924afb05ab902c3b
MD5 fb9643adee0fec9b45d3444b8d29fee9
BLAKE2b-256 cb5dccdaa0ba9725ff9a3e5914312dfc3196a59fe174d32aca36cd04abee1fda

See more details on using hashes here.

Provenance

The following attestation bundles were made for databricks_langchain-0.14.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.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_langchain-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b915194b88230090ce7219c6d2921f966fd179343d9ffeb9f151cc3e4d03504
MD5 f4ab52279e816041d9a3a0831882cf38
BLAKE2b-256 c1ccf1436d65fdb76d98132715d605e65bbc2702d2f773742eb29ff80bcf682b

See more details on using hashes here.

Provenance

The following attestation bundles were made for databricks_langchain-0.14.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