|
| 1 | +--- |
| 2 | +title: The Architecture so Far! |
| 3 | +description: This is the architecture of our app so far. |
| 4 | +slug: 2023-02-11-architecture |
| 5 | +authors: AbdBarho |
| 6 | +tags: [open-assistant] |
| 7 | +--- |
| 8 | + |
| 9 | +I thought it would make sense to document our architecture as a blog post, since |
| 10 | +it would be easily visible for everyone, and it would also be nice to look back |
| 11 | +a couple months from now and see how stuff has changed :) |
| 12 | + |
| 13 | +A lot of work was done in the past couple of week to establish the needed |
| 14 | +infrastructure both for data collection and inference purposes. Thanks to |
| 15 | +everyone, and especially community members who supported us so far! |
| 16 | + |
| 17 | +Our current plan for the architecture of the Open Assistant is as follows: |
| 18 | + |
| 19 | +```mermaid |
| 20 | +flowchart TD |
| 21 | + subgraph next[Web Frontend] |
| 22 | + direction TB |
| 23 | + website([Browser]) & nextbackend[Backend] & webpostgres[(PostgreSQL)] |
| 24 | + end |
| 25 | +
|
| 26 | + subgraph data[Python backend] |
| 27 | + direction TB |
| 28 | + backend[Backend] & postgres[(PostgreSQL)] & redis[(Redis)] |
| 29 | + end |
| 30 | +
|
| 31 | + subgraph inference[Inference Service] |
| 32 | + direction TB |
| 33 | + inferenceServer[Server] -.- infpostgres[(PostgreSQL)] |
| 34 | + end |
| 35 | +
|
| 36 | + subgraph workers[Inference Workers] |
| 37 | + direction TB |
| 38 | + worker1[Worker] --- textgen1[Text\ngenerator] |
| 39 | + worker2[Worker] --- textgen2[Text\ngenerator] |
| 40 | + worker3[Worker] --- textgen3[Text\ngenerator] |
| 41 | + end |
| 42 | +
|
| 43 | + website --> nextbackend |
| 44 | + nextbackend -.- webpostgres |
| 45 | +
|
| 46 | + next --- data |
| 47 | +
|
| 48 | + backend -.- postgres & redis |
| 49 | +
|
| 50 | + next --- inference |
| 51 | +
|
| 52 | + inference --- workers |
| 53 | +``` |
| 54 | + |
| 55 | +We are working on setting up the inference as shown above, and considering our |
| 56 | +options for hosting, also, we want to move our authentication from the website |
| 57 | +to the python backend. |
| 58 | + |
| 59 | +Of course, this is by no means final, and lot of questions are still open, and |
| 60 | +that is the fun of it! If you want to join us on our journey, just give our |
| 61 | +[github](https://github.com/LAION-AI/Open-Assistant) a look! |
0 commit comments