Skip to content

Commit

Permalink
docs: azure pubsub and zep
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Sep 19, 2023
1 parent f3f78e1 commit 1f8e609
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,22 @@ L3AGI offers a robust set of functionalities that empower you to design, supervi
cd L3AGI
```

3. **Create `.env` file from `.env.example` in root directory**
3. **Setup Git Hooks**

```bash
cp .env.example .env
chmod +x setup.sh
./setup.sh
```

Configure `.env` file with your own values.

4. **Setup Git Hooks**
4. **Create `.env` file from `.env.example` in root directory**

```bash
chmod +x setup.sh
./setup.sh
cp .env.example .env
```

- **Configure `Azure Web PubSub` using [our guide here](docs/azure.md)**
- **To configure `Zep Memory`, please see [quick start on Zep](https://docs.getzep.com/deployment/quickstart/)**

5. 🐳 **Run Docker Compose:**

```bash
Expand Down
2 changes: 1 addition & 1 deletion apps/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DB_PORT=5432
DB_USER=postgres
DB_PASS=postgres

# Azure pubsub used for chat
# Azure pubsub used for chat. Quickstart: https://github.com/l3vels/L3AGI/blob/main/docs/azure.md
AZURE_PUBSUB_CONNECTION_STRING=
AZURE_PUBSUB_HUB_NAME=hub

Expand Down
Binary file added docs/assets/azure/create-pubsub-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/azure/create-pubsub-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions docs/azure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Setup Azure Web PubSub Service from UI

1. Create a free account on [Azure](https://azure.microsoft.com/en-us/free).

2. Go to [Azure Portal](https://portal.azure.com/#home)

3. Create Web PubSub Service on [Azure Portal](https://portal.azure.com/#create/Microsoft.AzureWebPubSub)
Choose first option:
![Create PubSub](assets/azure/create-pubsub-1.png)

4. Create a new resource group and choose name for your pubsub service:
![Create new resource group](assets/azure/create-pubsub-2.png)

5. Click `Review + create`

6. Wait for validation and then click `Create`
![Create resource](assets/azure/create-pubsub-3.png)

7. After creating, you will be redirected. Click `Go to resource`:
![Go to resource](assets/azure/create-pubsub-4.png)

8. Go to `Keys` and copy `Connection string`:
![Get connection string](assets/azure/create-pubsub-5.png)

9. Paste `Connection string` in `.env` file.

10. Go to `Settings` and create new `Hub`:
![Create Hub](assets/azure/create-pubsub-6.png)
![Save Hub](assets/azure/create-pubsub-7.png)

11. Paste hub name in `.env` file.

For more information visit: [Azure Web PubSub Service](https://docs.microsoft.com/en-us/azure/azure-web-pubsub/overview)

0 comments on commit 1f8e609

Please sign in to comment.