Metadata-Version: 2.3
Name: databricks-langchain
Version: 0.0.2
Summary: Support for Datarbricks AI support in LangChain
Author-email: Prithvi Kannan <prithvi.kannan@databricks.com>
License: Apache-2.0
Requires-Python: >=3.9
Requires-Dist: databricks-ai-bridge
Requires-Dist: langchain-community>=0.2.0
Requires-Dist: langchain-databricks>=0.1.1
Requires-Dist: langchain>=0.2.0
Provides-Extra: dev
Requires-Dist: databricks-sdk>=0.34.0; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: ruff==0.6.4; extra == 'dev'
Requires-Dist: typing-extensions; extra == 'dev'
Description-Content-Type: text/markdown

# 🦜🔗 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
```sh
pip install databricks-langchain
```

### Install from source

```sh
pip install git+ssh://git@github.com/databricks/databricks-ai-bridge.git#subdirectory=integrations/langchain
```

## Get started

### Use LLMs on Databricks

```python
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. 

```python
from databricks_langchain.genie import GenieAgent

genie_agent = GenieAgent("space-id", "Genie", description="This Genie space has access to sales data in Europe")
```
