Skip to content

Commit

Permalink
UC AI Python lib + New server cmd options
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklaskowski committed Oct 11, 2024
1 parent 2909a2b commit ce11a2f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/ai/BaseFunctionClient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# BaseFunctionClient

`BaseFunctionClient` is...FIXME
14 changes: 14 additions & 0 deletions docs/ai/DatabricksFunctionClient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# DatabricksFunctionClient

`DatabricksFunctionClient` is a [BaseFunctionClient](BaseFunctionClient.md).

## create_function

``` py
create_function(
self,
*,
sql_function_body: Optional[str] = None,
function_info: Optional["CreateFunction"] = None,
) -> "FunctionInfo"
```
12 changes: 12 additions & 0 deletions docs/ai/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@

!!! note
Unity Catalog AI Core Library was added to Unity Catalog as part of [this commit]({{ uc.commit }}/6842634b2fd262e1bee6382f1cd28e36caf3a78c).

## Databricks Function Client Support

[DatabricksFunctionClient](DatabricksFunctionClient.md)

```python
from ucai.core.databricks import DatabricksFunctionClient
client = DatabricksFunctionClient()
```

!!! note
Added in [this commit]({{ uc.commit }}/7d7e4b24280adef7e2c163de91107611fa403ec3).
8 changes: 6 additions & 2 deletions docs/server/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

Unity Catalog comes with **Localhost Reference Server** that can be launched on command line using `./bin/start-uc-server` utility.

```console
./bin/start-uc-server [-p|--port port]
``` console
./bin/start-uc-server -h
usage: bin/start-uc-server
-h,--help Print help message.
-p,--port <arg> Port number to run the server on. Default is 8080.
-v,--version Display the version of the Unity Catalog server
```

`start-uc-server` runs [UnityCatalogServer](UnityCatalogServer.md) to [handle REST API requests](UnityCatalogServer.md#addServices) at a [port](UnityCatalogServer.md#port) (specified using `-p` or `--port` option or defaults to `8080`).

0 comments on commit ce11a2f

Please sign in to comment.