-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enhances the documentation. It adds some notebooks (more to be added), and also a video walkthrough. In creating the walkthrough, some minor adjustments to the ApplicationBuilder & Application were made as well.
- Loading branch information
Showing
11 changed files
with
1,700 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
==================== | ||
Agents | ||
==================== | ||
|
||
Burr allows you to create agents that can interact with each other via State. | ||
|
||
Multi-Agent Example | ||
-------------------- | ||
|
||
See `github repository example <https://github.com/DAGWorks-Inc/burr/tree/main/examples/multi-agent-collaboration>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
================ | ||
GPT-like chatbot | ||
Chatbots | ||
================ | ||
|
||
Chat bots are a simple example where state influences the conversation. This is a | ||
perfect use case for using Burr. | ||
|
||
GPT-like chatbot | ||
---------------- | ||
|
||
See `github repository example <https://github.com/DAGWorks-Inc/burr/tree/main/examples/gpt>`_. | ||
|
||
|
||
Conversational RAG chatbot | ||
-------------------------- | ||
See `github example <https://github.com/DAGWorks-Inc/burr/tree/main/examples/conversational_rag>`_. | ||
|
||
Accompanying video walkthrough: | ||
|
||
.. raw:: html | ||
|
||
<div> | ||
<iframe width="800" height="455" src="https://www.youtube.com/embed/t54DCiOH270?si=QpPNs7m2t0L0V8Va" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Example that goes with [introductory blog post](https://blog.dagworks.io/p/burr-develop-stateful-ai-applications). | ||
|
||
## 🏃Quick start | ||
|
||
```bash | ||
pip install "burr[start]" jupyter | ||
``` | ||
|
||
Run the notebook: | ||
|
||
```bash | ||
jupyter notebook | ||
``` | ||
|
||
Then open `blog.ipynb` and run the cells. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Conversational RAG with memory | ||
This example demonstrates how to build a conversational RAG agent with "memory". | ||
|
||
The "memory" here is stored in state, which Burr then can help you track, | ||
manage, and introspect. | ||
|
||
The set up of this example is that you have: | ||
|
||
1. Some initial "documents" i.e. knowledge. | ||
2. We bootstrap a vector store with these documents. | ||
3. We then have a pipeline that uses a vector store for a RAG query. | ||
4. We hook everything together with Burr that will manage the state | ||
of the conversation and asking for user inputs. | ||
|
||
To run this example, install Burr and the necessary dependencies: | ||
|
||
```bash | ||
pip install "burr[start]" -r requirements.txt | ||
``` | ||
|
||
Then run the server in the background: | ||
|
||
```bash | ||
burr | ||
``` | ||
|
||
Make sure you have an `OPENAI_API_KEY` set in your environment. | ||
|
||
Then run | ||
```bash | ||
python application.py | ||
``` | ||
|
||
You'll then have a text terminal where you can interact. Type exit to stop. | ||
|
||
# Video Walkthrough via Notebook | ||
Watch the video walkthrough in the notebook (1.5x+ speed recommended): | ||
<div> | ||
<iframe width="800" height="455" src="https://www.youtube.com/embed/t54DCiOH270?si=QpPNs7m2t0L0V8Va" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.