diff --git a/docs/index.md b/docs/index.md index 06a5613..7ce0109 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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