Skip to content

Commit

Permalink
simplified sequece using mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
roocell committed Feb 20, 2024
1 parent 562eb19 commit 5798897
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,41 @@ 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
```
---

## Where to go Next
Expand Down

0 comments on commit 5798897

Please sign in to comment.