Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Adds BentoML to docs & examples

Stefan Krawczyk2bbbcaa22b72
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..b42e171d
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "examples/deployment/bentoml/BentoBurr"]
+ path = examples/deployment/bentoml/BentoBurr
+ url = https://github.com/bentoml/BentoBurr
diff --git a/docs/examples/deployment/infrastructure.rst b/docs/examples/deployment/infrastructure.rst
index d668af00..d884ee84 100644
--- a/docs/examples/deployment/infrastructure.rst
+++ b/docs/examples/deployment/infrastructure.rst
@@ -6,3 +6,11 @@ Burr is not opinionated about the method of deployment/cloud one uses. Any metho
(AWS, vercel, etc...). Note we aim to have more examples here -- see `this issue <https://github.com/DAGWorks-Inc/burr/issues/390>`_ to track!
- `Deploying Burr in an AWS lambda function <https://github.com/DAGWorks-Inc/burr/tree/main/examples/deployment/aws/lambda>`_
+- `Deploying Burr using BentoML <https://github.com/DAGWorks-Inc/burr/tree/main/examples/deployment/aws/bentoml>`_
+
+
+Using BentoML
+-------------
+[BentoML](https://github.com/bentoml/BentoML) is a specialized tool to package, deploy, and manage AI services.
+For example, it allows you to create a REST API for your Burr application with minimal effort.
+See the `Burr + BentoML example <https://github.com/DAGWorks-Inc/burr/tree/main/examples/deployment/aws/bentoml>`_ for more information.
diff --git a/docs/examples/deployment/web-server.rst b/docs/examples/deployment/web-server.rst
index 4da9cbab..dd07ec5f 100644
--- a/docs/examples/deployment/web-server.rst
+++ b/docs/examples/deployment/web-server.rst
@@ -13,6 +13,7 @@ To run Burr in a FastAPI server, see the following examples:
- `Use typed state with Pydantic + FastAPI <https://github.com/DAGWorks-Inc/burr/tree/main/examples/typed-state>`_
- `Burr + FastAPI + docker <https://github.com/mdrideout/burr-fastapi-docker-compose>`_ by `Matthew Rideout <https://github.com/mdrideout>`_. This contains a sample web server API + UI + tracking server all bundled in one!
- `Docker compose + nginx proxy <https://github.com/DAGWorks-Inc/burr/tree/main/examples/email-assistant#running-the-ui-with-email-server-backend-in-a-docker-container>`_ by `Aditha Kaushik <https://github.com/97k>`_ for the email assistant example, demonstrates running the docker image with the tracking server.
+- `BentoML + Burr <https://github.com/DAGWorks-Inc/burr/tree/main/examples/deployment/aws/bentoml>`_ for deploying Burr with BentoML as a web-service.
Connecting to a database
------------------------
diff --git a/examples/deployment/bentoml/BentoBurr b/examples/deployment/bentoml/BentoBurr
new file mode 160000
index 00000000..84985031
--- /dev/null
+++ b/examples/deployment/bentoml/BentoBurr
@@ -0,0 +1 @@
+Subproject commit 84985031abee6a4eb076a40554a5ae8dc7d1e7d8