Skip to content

Commit 8e93015

Browse files
Merge pull request #62 from roocell/sequence_mermaid
simplified sequece using mermaid
2 parents 562eb19 + 5798897 commit 8e93015

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

docs/index.md

+35
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,41 @@ Adeus consists of 3 parts:
4343
Supabase is an open source Firebase alternative, a "backend-as-a-service" - which allows you to setup a Postgres database, Authentication, Edge Functions, Vector embeddings, and more - for free (at first) and at extreme ease!
4444
- [!!] But more importantly - **it is open source, and you can choose to deploy and manage your own Supabase instance** - which us crucial for our mission: A truly open-source, personal AI.
4545

46+
## Simplified Sequence
47+
```mermaid
48+
sequenceDiagram
49+
participant user as User
50+
participant device as device/raspi
51+
participant chatbot as chatbot/phone
52+
box lightGreen supabase
53+
participant supabase as supabase
54+
end
55+
box lightBlue openai
56+
participant whisper as whisper
57+
participant embeddings as embeddings
58+
participant GPT as GPT
59+
end
60+
61+
title ADeus
62+
63+
user ->> device: speech
64+
device ->> supabase: audio
65+
supabase ->> whisper: audio
66+
whisper ->> supabase: text(transcribed)
67+
supabase ->> embeddings: text
68+
embeddings -->> supabase: embeddings
69+
supabase -->> supabase: store to db
70+
71+
user ->> chatbot: text(conversation)
72+
chatbot ->> supabase: text(conversation)
73+
supabase ->> embeddings: text(conversation)
74+
embeddings -->> supabase: embeddings
75+
supabase -->> supabase: db query(embeddings match)
76+
supabase -->> GPT: prompt, text(conversation), matched db embeddings
77+
GPT -->> supabase: response
78+
supabase -->> chatbot: response
79+
chatbot -->> user: response
80+
```
4681
---
4782

4883
## Where to go Next

0 commit comments

Comments
 (0)