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 Distributions

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

Built Distribution

databricks_langchain-0.5.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for databricks_langchain-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7f7ecee76740c9de17b26820152dba504b117b073ff642c1e8afc48180e859
MD5 b69f9822d85ce110efd41d0ea743ffaf
BLAKE2b-256 0e313776e329e615358d391dce569204752bc0151d4d043b627f0dc094e960f1

See more details on using hashes here.

Supported by

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