Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/sdk/python/rtdip_sdk/connectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@
from .odbc.turbodbc_sql_connector import *
if importlib.util.find_spec("pyspark") != None:
from .grpc.spark_connector import *
from .llm.chatopenai_databricks_connector import *
if (
importlib.util.find_spec("langchain") != None
and importlib.util.find_spec("langchain_community") != None
):
from .llm.chatopenai_databricks_connector import *
from .models import *
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class ChatOpenAIDatabricksConnection(ConnectionInterface):
The connection class represents a connection to a database and uses the Databricks SQL Connector API's for Python to interact with cluster/jobs and langchain to connect to Chat Open AI(Chat GPT) LLM.
To find details for SQL warehouses server_hostname and http_path location to the SQL Warehouse tab in the documentation.

Ensure that you install the langchain packages by running the following command:
```
pip install rtdip-sdk[langchain]
```

Args:
catalog: Catalog name in Databricks
schema: Schema name in Databricks
Expand Down