Skip to content

Commit

Permalink
Add langchain-databricks into databricks-langchain (#12)
Browse files Browse the repository at this point in the history
* Add langchain-databricks into databricks-langchain

Signed-off-by: Prithvi Kannan <[email protected]>

* fix

Signed-off-by: Prithvi Kannan <[email protected]>

* min python 3.9

Signed-off-by: Prithvi Kannan <[email protected]>

* fix

Signed-off-by: Prithvi Kannan <[email protected]>

---------

Signed-off-by: Prithvi Kannan <[email protected]>
  • Loading branch information
prithvikannan authored Oct 30, 2024
1 parent 2e7f619 commit 9b29c88
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'
- name: Install dependencies
run: |
pip install -r requirements/lint-requirements.txt
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10']
timeout-minutes: 20
steps:
- name: Checkout code
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10']
timeout-minutes: 20
steps:
- name: Checkout code
Expand Down
3 changes: 2 additions & 1 deletion integrations/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ authors = [
]
readme = "README.md"
license = { text="Apache-2.0" }
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"langchain>=0.2.0",
"langchain-community>=0.2.0",
"langchain-databricks>=0.1.1",
"databricks-ai-bridge",
]

Expand Down
16 changes: 16 additions & 0 deletions integrations/langchain/src/databricks_langchain/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Import modules from langchain-databricks
from langchain_databricks import (
ChatDatabricks,
DatabricksEmbeddings,
DatabricksVectorSearch,
)

from .genie import GenieAgent

# Expose all integrations to users under databricks-langchain
__all__ = [
"ChatDatabricks",
"DatabricksEmbeddings",
"DatabricksVectorSearch",
"GenieAgent",
]

0 comments on commit 9b29c88

Please sign in to comment.