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.18.0.tar.gz (33.7 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.18.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databricks_langchain-0.18.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for databricks_langchain-0.18.0.tar.gz
Algorithm Hash digest
SHA256 c061dc5e1ce10e40d7fbd7f617661a0c1721e76a0eb1937447cf821e9b7872e4
MD5 fb4ccb4f5e2662e20787b57f816f7572
BLAKE2b-256 93a0fd3b1868ed8a07b88fe4219d591dca0037e6853fe507bfbdbf04c9bde9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for databricks_langchain-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ba3059034b985bf2482c49b815fa582071c536b72aa4cecff132588629416b
MD5 8f603c6bca4a0cd04f71bf7a889208bc
BLAKE2b-256 ed5674b012d0ffb02cebae39f670ee8784d9f06099a68a561efed8e3256124ee

See more details on using hashes here.

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