From 519a0a0460d62e313b002883cf197f9c8b4daee2 Mon Sep 17 00:00:00 2001 From: Prithvi Kannan Date: Tue, 29 Oct 2024 13:52:33 -0700 Subject: [PATCH 1/4] Add langchain-databricks into databricks-langchain Signed-off-by: Prithvi Kannan --- integrations/langchain/pyproject.toml | 1 + .../src/databricks_langchain/__init__.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/integrations/langchain/pyproject.toml b/integrations/langchain/pyproject.toml index 40527ed..8507af2 100644 --- a/integrations/langchain/pyproject.toml +++ b/integrations/langchain/pyproject.toml @@ -11,6 +11,7 @@ requires-python = ">=3.8" dependencies = [ "langchain>=0.2.0", "langchain-community>=0.2.0", + "langchain-databricks>=0.1.1", "databricks-ai-bridge", ] diff --git a/integrations/langchain/src/databricks_langchain/__init__.py b/integrations/langchain/src/databricks_langchain/__init__.py index e69de29..ef88eed 100644 --- a/integrations/langchain/src/databricks_langchain/__init__.py +++ b/integrations/langchain/src/databricks_langchain/__init__.py @@ -0,0 +1,17 @@ +# Import modules from langchain-databricks +from langchain_databricks import ( + ChatDatabricks, + DatabricksEmbeddings, + DatabricksVectorSearch, +) + +# Import any additional modules specific to databricks-langchain +from .genie import GenieAgent # Example for GenieAgent functionality + +# Expose all integrations to users under databricks-langchain +__all__ = [ + "ChatDatabricks", + "DatabricksEmbeddings", + "DatabricksVectorSearch", + "GenieAgent", +] From a628a5e168c889cc4ac374a70f70abffc18fa3d9 Mon Sep 17 00:00:00 2001 From: Prithvi Kannan Date: Tue, 29 Oct 2024 13:53:42 -0700 Subject: [PATCH 2/4] fix Signed-off-by: Prithvi Kannan --- integrations/langchain/src/databricks_langchain/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integrations/langchain/src/databricks_langchain/__init__.py b/integrations/langchain/src/databricks_langchain/__init__.py index ef88eed..4b7a9da 100644 --- a/integrations/langchain/src/databricks_langchain/__init__.py +++ b/integrations/langchain/src/databricks_langchain/__init__.py @@ -5,8 +5,7 @@ DatabricksVectorSearch, ) -# Import any additional modules specific to databricks-langchain -from .genie import GenieAgent # Example for GenieAgent functionality +from .genie import GenieAgent # Expose all integrations to users under databricks-langchain __all__ = [ From dfa25215b9918dad1a50e0f226d5e2a335738582 Mon Sep 17 00:00:00 2001 From: Prithvi Kannan Date: Tue, 29 Oct 2024 13:55:34 -0700 Subject: [PATCH 3/4] min python 3.9 Signed-off-by: Prithvi Kannan --- .github/workflows/main.yml | 6 +++--- integrations/langchain/pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e91c38..a79bd34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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 diff --git a/integrations/langchain/pyproject.toml b/integrations/langchain/pyproject.toml index 8507af2..2b2e31f 100644 --- a/integrations/langchain/pyproject.toml +++ b/integrations/langchain/pyproject.toml @@ -7,7 +7,7 @@ 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", From 9cf3a8c1c924f56f0fa0074adce6282edf8e4f0d Mon Sep 17 00:00:00 2001 From: Prithvi Kannan Date: Tue, 29 Oct 2024 13:57:08 -0700 Subject: [PATCH 4/4] fix Signed-off-by: Prithvi Kannan --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a79bd34..fa5e819 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9', '3.10'] + python-version: ['3.9', '3.10'] timeout-minutes: 20 steps: - name: Checkout code