Fitness Multi-Agent RAG · System architecture

One conversation.
Three cooperating agents.

From voice or text to a personalized training schedule: retrieval, planning, approval, persistence, and downloadable results in one Streamlit experience.

Coach · Designer · Retriever
01 / EXPERIENCE02 / ORCHESTRATION & PLANNING03 / KNOWLEDGE & STORAGE text transcript delegate direct lookup approved plan / revisions profile · progress · memory reply audio playback TraineeGoals · equipment · experience · time APPLICATIONStreamlit + authenticationSign up / login · chat · plan views SPEECH INPUTSTT · faster-whisperRecorded audio → English text SPEECH OUTPUTTTS · KokoroReply text → playable speech Read & listenChat replies + browser audio controls AGENT 01Coach · conversation ownerIntake · routing · progress · memoryNutrition tools · optional web search AGENT 02Program DesignerStructure → Week 1 exercisesValidation · critique · revisions AGENT 03RetrieverFiltered semantic search · coverageQuery rewriting · bounded expansion HUMAN DECISIONReview → approve → saveStored draft + validated workout plan My plans · weekly scheduleTraining days · exercises · sets / repsProgression / deload from plan structure DOWNLOADWorkout plan PDFReportLab export → browser download Kaggle workout corpusDownload CSV → data/raw Chunk → embed → indexsentence-transformers · BGE embeddingsSeparate program and exercise chunks VECTOR STORAGEQdrantfitness_programs · fitness_exercises APPLICATION STORAGESQLite + coaching memoryAccounts · profiles · workout plansDrafts · revisions · workout progressNutrition plans · persistent context SHARED AGENT RUNTIMEDeep Agents / LangGraphLLM provider: Groq or Ollama SELECT A COMPONENT FOR DETAILS · HIGHLIGHT A FLOW ABOVE · NO EXTERNAL SCRIPTS REQUIRED
AI agents & planningLocal speech servicesPersistent storesArrows show conceptual flow and access; implementations can return results over the same call.
Component details

Coach · the conversation owner

Coach receives typed requests or STT transcripts. It handles intake, profile updates, nutrition tools, workout progress, and memory. It delegates plan creation to Designer and can call Retriever directly for grounded exercise answers.

A plan stays reviewable

The training schedule is part of a stored plan. Structure and Week 1 details are reviewed before approval and saving; later changes can be recorded as revisions.

1 · Intake2 · Retrieve3 · Propose4 · Validate5 · Approve6 · Save / export