Skip to content

Commit 0449f0c

Browse files
committed
docs: fix docs typos and example issues for issue 725
Correct broken snippets and grammar, fix RST formatting issues, and remove decorative emoji from documentation headers for consistency with project standards.
1 parent 2ccf184 commit 0449f0c

9 files changed

Lines changed: 28 additions & 27 deletions

File tree

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pluggable persisters (e.g. for memory) to save & load application state.
4040
Link to [documentation](https://burr.apache.org/). Quick (<3min) video intro [here](https://www.loom.com/share/a10f163428b942fea55db1a84b1140d8?sid=1512863b-f533-4a42-a2f3-95b13deb07c9).
4141
Longer [video intro & walkthrough](https://www.youtube.com/watch?v=rEZ4oDN0GdU). Blog post [here](https://blog.dagworks.io/p/burr-develop-stateful-ai-applications). Join discord for help/questions [here](https://discord.gg/6Zy2DwP4f3).
4242

43-
## 🏃Quick start
43+
## Quick start
4444

4545
Install from `pypi`:
4646

@@ -57,7 +57,7 @@ burr
5757
```
5858

5959
This will open up Burr's telemetry UI. It comes loaded with some default data so you can click around.
60-
It also has a demo chat application to help demonstrate what the UI captures enabling you too see things changing in
60+
It also has a demo chat application to help demonstrate what the UI captures, enabling you to see things changing in
6161
real-time. Hit the "Demos" side bar on the left and select `chatbot`. To chat it requires the `OPENAI_API_KEY`
6262
environment variable to be set, but you can still see how it works if you don't have an API key set.
6363

@@ -73,7 +73,7 @@ See if you can find it.
7373

7474
For more details see the [getting started guide](https://burr.apache.org/getting_started/simple-example/).
7575

76-
## 🔩 How does Apache Burr work?
76+
## How does Apache Burr work?
7777

7878
With Apache Burr you express your application as a state machine (i.e. a graph/flowchart).
7979
You can (and should!) use it for anything in which you have to manage state, track complex decisions, add human feedback, or dictate an idempotent, self-persisting workflow.
@@ -94,7 +94,7 @@ def ai_response(state: State) -> State:
9494
# query the LLM however you want (or don't use an LLM, up to you...)
9595
response = _query_llm(state["chat_history"]) # Burr doesn't care how you use LLMs!
9696
chat_item = {"role" : "system", "content" : response}
97-
return state.update(response=content).append(chat_history=chat_item)
97+
return state.update(response=response).append(chat_history=chat_item)
9898

9999
app = (
100100
ApplicationBuilder()
@@ -113,12 +113,12 @@ print("answer:", app.state["response"])
113113
Apache Burr includes:
114114

115115
1. A (dependency-free) low-abstraction python library that enables you to build and manage state machines with simple python functions
116-
2. A UI you can use view execution telemetry for introspection and debugging
116+
2. A UI you can use to view execution telemetry for introspection and debugging
117117
3. A set of integrations to make it easier to persist state, connect to telemetry, and integrate with other systems
118118

119119
![Burr at work](https://github.com/apache/burr/blob/main/chatbot.gif)
120120

121-
## 💻️ What can you do with Apache Burr?
121+
## What can you do with Apache Burr?
122122

123123
Apache Burr can be used to power a variety of applications, including:
124124

@@ -139,12 +139,12 @@ Apache Burr will _not_ tell you how to build your models, how to query APIs, or
139139
in a way that scales with your needs and makes following the logic of your system easy. Burr comes out of the box with a host of integrations
140140
including tooling to build a UI in streamlit and watch your state machine execute.
141141

142-
## 🏗 Start building
142+
## Start building
143143

144144
See the documentation for [getting started](https://burr.apache.org/getting_started/simple-example), and follow the example.
145145
Then read through some of the concepts and write your own application!
146146

147-
## 📃 Comparison against common frameworks
147+
## Comparison against common frameworks
148148

149149
While Apache Burr is attempting something (somewhat) unique, there are a variety of tools that occupy similar spaces:
150150

@@ -157,7 +157,7 @@ While Apache Burr is attempting something (somewhat) unique, there are a variety
157157
| Open-source user-interface for monitoring/tracing |||||||
158158
| Works with non-LLM use-cases |||||||
159159

160-
## 🌯 Why the name Burr?
160+
## Why the name Burr?
161161

162162
Apache Burr is named after [Aaron Burr](https://en.wikipedia.org/wiki/Aaron_Burr), founding father, third VP of the United States, and murderer/arch-nemesis of [Alexander Hamilton](https://en.wikipedia.org/wiki/Alexander_Hamilton).
163163
What's the connection with (Apache) Hamilton? We imagine a world in which Burr and Hamilton lived in harmony and saw through their differences to better the union. Originally Apache Burr was built as a _harness_ to handle state between executions of Apache Hamilton DAGs (because DAGs don't have cycles),
@@ -207,7 +207,7 @@ but realized that it has a wide array of applications and decided to release it
207207
**Aditya K.**
208208
*DS Architect, TaskHuman*
209209

210-
## 🛣 Roadmap
210+
## Roadmap
211211

212212
While Apache Burr is stable and well-tested, we have quite a few tools/features on our roadmap!
213213
1. FastAPI integration + hosted deployment -- make it really easy to get Apache Burr in an app in production without thinking about REST APIs
@@ -222,11 +222,11 @@ While Apache Burr is stable and well-tested, we have quite a few tools/features
222222
If you want to avoid self-hosting the above solutions we're building Burr Cloud. To let us know you're interested
223223
sign up [here](https://forms.gle/w9u2QKcPrztApRedA) for the waitlist to get access.
224224

225-
## 🤲 Contributing
225+
## Contributing
226226

227227
We welcome contributors! To get started on developing, see the [developer-facing docs](https://burr.apache.org/contributing).
228228

229-
## 👪 Contributors
229+
## Contributors
230230

231231
### Code contributions
232232

@@ -249,12 +249,12 @@ Users who have contributed small docs fixes, design suggestions, and found bugs
249249
- [Evans](https://github.com/sudoevans)
250250
- [Sasmitha Manathunga](https://github.com/mmz-001)
251251

252-
# 📑 License
252+
# License
253253

254254
Apache Burr is released under the Apache 2.0 License. See [LICENSE](https://github.com/apache/burr/blob/main/LICENSE) for details.
255255

256-
# 🌎 Community
257-
## 👨‍💻 Contributing
256+
# Community
257+
## Contributing
258258
We're very supportive of changes by new contributors, big or small! Make sure to discuss potential changes by creating an issue or commenting on an existing one before opening a pull request. Good first contributions include creating an example or an integration with your favorite Python library!
259259

260260
To contribute, checkout our [contributing guidelines](https://github.com/apache/burr/blob/main/CONTRIBUTING.rst), our [developer setup guide](https://github.com/apache/burr/blob/main/developer_setup.md), and our [Code of Conduct](https://github.com/apache/burr/blob/main/CODE_OF_CONDUCT.md).

docs/concepts/actions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Actions
2626
.. note::
2727

2828
Actions are the core building block of Burr. They read from state and write to state.
29-
They can be synchronous and asynchonous, and have both a ``sync`` and ``async`` API.
29+
They can be synchronous and asynchronous, and have both a ``sync`` and ``async`` API.
3030
There are both function and class-based APIs.
3131

3232

@@ -96,7 +96,7 @@ above is equivalent to returning an empty dictionary instead of the results.
9696
from burr.core import action, State
9797
9898
@action(reads=["var_from_state"], writes=["var_to_update"])
99-
def custom_action(state: State) -> State
99+
def custom_action(state: State) -> State:
100100
return results, state.update(var_to_update=var_from_state + 1)
101101
102102
app = ApplicationBuilder().with_actions(

docs/concepts/state-persistence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ tracked runs. This is useful for debugging, or building an application that enab
271271
tracker,
272272
resume_at_next_action=True,
273273
default_state={"chat_history" : []},
274-
default_entrypoint="human_converse
274+
default_entrypoint="human_converse"
275275
)
276276
.with_tracker(tracker)
277277
.with_identifiers(app_id=app_id)

docs/concepts/tracking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For example, to debug your Burr Application, you'd have some control flow like t
9393
fork_from_sequence_id=sequence_id,
9494
fork_from_partition_key=partition_key
9595
)
96-
.with_tracker(tracker) # tracking + checkpointing; one line 🪄.
96+
.with_tracker(tracker) # tracking + checkpointing in one line.
9797
.build()
9898
)
9999

docs/examples/deployment/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
under the License.
1818

1919

20-
=============
21-
Deployment
22-
=============
20+
==========
21+
Deployment
22+
==========
2323

2424
Burr is specifically meant to make getting your product in production easier and faster.
2525
This section covers examples of getting Burr to production, as well as a brief overview of approaches/requirements.

docs/getting_started/install.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ along with a fully built server.
3333
This will give you tools to visualize, track, and interact with the UI. You can explore the UI (including some sample projects)
3434
simply by running the command ``burr``. Up next we'll write our own application and follow it in the UI.
3535

36-
If you're using poetry, you can't install the ``start`` target directly, due to [this issue](https://github.com/python-poetry/poetry/issues/3369).
36+
If you're using poetry, you can't install the ``start`` target directly, due to
37+
`this issue <https://github.com/python-poetry/poetry/issues/3369>`_.
3738
Instead, please install manually using the following command:
3839

3940
.. code-block:: bash

docs/getting_started/simple-example.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ So hold tight! This gets you started with the basics but there's a lot more you
4848

4949
If you want to skip ahead to the cool stuff (chatbots, ML training, simulations, etc...) feel free to jump into the deep end and start with the :ref:`examples <examples>`.
5050

51-
🤔 If you prefer to learn by video, check out
51+
If you prefer to learn by video, check out
5252
`this video walkthrough <https://www.youtube.com/watch?v=rEZ4oDN0GdU>`_
5353
using `this notebook <https://github.com/apache/burr/blob/main/examples/simple-chatbot-intro/notebook.ipynb>`_.
5454

@@ -222,4 +222,4 @@ Now that we've built a basic application, we can do the following with only a fe
222222
2. :ref:`Persist state to a database + reload <state-persistence>` -- add a ``initialize_from`` line to the builder and select a pre-existing/implement a custom persistence method.
223223
3. :ref:`Add monitoring to track application data <tracking>` -- leverage ``with_tracker`` to track to the Burr UI and visualize your application live.
224224
4. :ref:`Stream results back <streaming>` -- minimize time to first token by streaming results back to the user.
225-
5. `Generate test cases from prior runs <https://github.com/apache/burr/tree/main/examples/test-case-creation>`_ -- use the ``burr-testburr-test-case create`` command to automatically generate test cases for your LLM app.
225+
5. `Generate test cases from prior runs <https://github.com/apache/burr/tree/main/examples/test-case-creation>`_ -- use the ``burr-test-case create`` command to automatically generate test cases for your LLM app.

docs/getting_started/up-next.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Once you're comfortable with the UI, you may want to get a sense of a few of the
8888
of the Burr library and where you can go to learn more about them:
8989

9090
- :ref:`Creating custom actions <actions>` and calling out to integrated frameworks
91-
- :ref:`Running applications <applications>`, managing their lifeycyle, and inspecting the results
91+
- :ref:`Running applications <applications>`, managing their lifecycle, and inspecting the results
9292
- :ref:`Managing state <state>` -- persisting, inspecting, and updating
9393
- :ref:`Handling transition between nodes <transitions>` and managing the flow of your application
9494
- :ref:`Adding hooks to customize execution <hooks>` and integrate with other systems

examples/simple-chatbot-intro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
Example that goes with [introductory blog post](https://blog.dagworks.io/p/burr-develop-stateful-ai-applications).
2121

22-
## 🏃Quick start
22+
## Quick start
2323

2424
```bash
2525
pip install "apache-burr[start]" jupyter

0 commit comments

Comments
 (0)