Skip to content

Commit

Permalink
Merge pull request #67 from roocell/sequence_mermaid
Browse files Browse the repository at this point in the history
Sequence mermaid
  • Loading branch information
adamcohenhillel authored Feb 26, 2024
2 parents 0f66d6e + ff2ca2a commit e0dbc09
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
36 changes: 36 additions & 0 deletions docs/guides/sequence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Adeus Sequence

```mermaid
sequenceDiagram
participant user as User
participant device as device/raspi
participant chatbot as chatbot/phone
box lightGreen supabase
participant supabase as supabase
end
box lightBlue openai
participant whisper as whisper
participant embeddings as embeddings
participant GPT as GPT
end
title ADeus
user ->> device: speech
device ->> supabase: audio
supabase ->> whisper: audio
whisper ->> supabase: text(transcribed)
supabase ->> embeddings: text
embeddings -->> supabase: embeddings
supabase -->> supabase: store to db
user ->> chatbot: text(conversation)
chatbot ->> supabase: text(conversation)
supabase ->> embeddings: text(conversation)
embeddings -->> supabase: embeddings
supabase -->> supabase: db query(embeddings match)
supabase -->> GPT: prompt, text(conversation), matched db embeddings
GPT -->> supabase: response
supabase -->> chatbot: response
chatbot -->> user: response
```
37 changes: 2 additions & 35 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,41 +43,8 @@ Adeus consists of 3 parts:
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!
- [!!] 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.

## Simplified Sequence
```mermaid
sequenceDiagram
participant user as User
participant device as device/raspi
participant chatbot as chatbot/phone
box lightGreen supabase
participant supabase as supabase
end
box lightBlue openai
participant whisper as whisper
participant embeddings as embeddings
participant GPT as GPT
end
title ADeus
user ->> device: speech
device ->> supabase: audio
supabase ->> whisper: audio
whisper ->> supabase: text(transcribed)
supabase ->> embeddings: text
embeddings -->> supabase: embeddings
supabase -->> supabase: store to db
user ->> chatbot: text(conversation)
chatbot ->> supabase: text(conversation)
supabase ->> embeddings: text(conversation)
embeddings -->> supabase: embeddings
supabase -->> supabase: db query(embeddings match)
supabase -->> GPT: prompt, text(conversation), matched db embeddings
GPT -->> supabase: response
supabase -->> chatbot: response
chatbot -->> user: response
```
## Sequence
[view sequence](https://github.com/adamcohenhillel/ADeus/blob/main/docs/guides/sequence.md)
---

## Where to go Next
Expand Down

0 comments on commit e0dbc09

Please sign in to comment.