langchain/docs/modules
Gengliang Wang bf5a3c6dec
Support Databricks in SQLDatabase (#4702)
This PR adds support for Databricks runtime and Databricks SQL by using
[Databricks SQL Connector for
Python](https://docs.databricks.com/dev-tools/python-sql-connector.html).
As a cloud data platform, accessing Databricks requires a URL as follows

`databricks://token:{api_token}@{hostname}?http_path={http_path}&catalog={catalog}&schema={schema}`.

**The URL is **complicated** and it may take users a while to figure it
out**. Since the fields `api_token`/`hostname`/`http_path` fields are
known in the Databricks notebook, I am proposing a new method
`from_databricks` to simplify the connection to Databricks.

## In Databricks Notebook
After changes, Databricks users only need to specify the `catalog` and
`schema` field when using langchain.
<img width="881" alt="image"
src="https://github.com/hwchase17/langchain/assets/1097932/984b4c57-4c2d-489d-b060-5f4918ef2f37">

## In Jupyter Notebook
The method can be used on the local setup as well:
<img width="678" alt="image"
src="https://github.com/hwchase17/langchain/assets/1097932/142e8805-a6ef-4919-b28e-9796ca31ef19">
2023-05-19 00:42:06 -07:00
..
agents Add Spark SQL support (#4602) (#4956) 2023-05-18 20:53:08 -07:00
callbacks add more color to callbacks docs (#3856) 2023-04-30 19:13:01 -07:00
chains Support Databricks in SQLDatabase (#4702) 2023-05-19 00:42:06 -07:00
indexes Zep Retriever - Vector Search Over Chat History (#4533) 2023-05-18 16:27:18 -07:00
memory Zep memory (#4898) 2023-05-17 20:01:01 -07:00
models fix: error in gptcache example nb (#4930) 2023-05-18 11:49:45 -07:00
prompts Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
utils/examples Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
agents.rst Harrison/plan and solve (#4422) 2023-05-09 21:07:56 -07:00
chains.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
indexes.rst Correct typo in documentation for word 'therefore' (#2529) 2023-04-06 23:20:30 -07:00
memory.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
models.rst Harrison/standard llm interface (#4615) 2023-05-13 09:05:31 -07:00
paul_graham_essay.txt Fix notebook example (#3142) 2023-04-19 08:55:06 -07:00
prompts.rst Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
state_of_the_union.txt