Skip to content

Commit e0dbc09

Browse files
Merge pull request #67 from roocell/sequence_mermaid
Sequence mermaid
2 parents 0f66d6e + ff2ca2a commit e0dbc09

File tree

2 files changed

+38
-35
lines changed

2 files changed

+38
-35
lines changed

docs/guides/sequence.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Adeus Sequence
2+
3+
```mermaid
4+
sequenceDiagram
5+
participant user as User
6+
participant device as device/raspi
7+
participant chatbot as chatbot/phone
8+
box lightGreen supabase
9+
participant supabase as supabase
10+
end
11+
box lightBlue openai
12+
participant whisper as whisper
13+
participant embeddings as embeddings
14+
participant GPT as GPT
15+
end
16+
17+
title ADeus
18+
19+
user ->> device: speech
20+
device ->> supabase: audio
21+
supabase ->> whisper: audio
22+
whisper ->> supabase: text(transcribed)
23+
supabase ->> embeddings: text
24+
embeddings -->> supabase: embeddings
25+
supabase -->> supabase: store to db
26+
27+
user ->> chatbot: text(conversation)
28+
chatbot ->> supabase: text(conversation)
29+
supabase ->> embeddings: text(conversation)
30+
embeddings -->> supabase: embeddings
31+
supabase -->> supabase: db query(embeddings match)
32+
supabase -->> GPT: prompt, text(conversation), matched db embeddings
33+
GPT -->> supabase: response
34+
supabase -->> chatbot: response
35+
chatbot -->> user: response
36+
```

docs/index.md

+2-35
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,8 @@ 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-
```
46+
## Sequence
47+
[view sequence](https://github.com/adamcohenhillel/ADeus/blob/main/docs/guides/sequence.md)
8148
---
8249

8350
## Where to go Next

0 commit comments

Comments
 (0)