File size: 1,105 Bytes
285c272
e802c93
285c272
 
 
e802c93
285c272
a921015
285c272
 
e802c93
 
 
 
 
 
 
 
 
 
 
 
266ce23
 
 
 
 
 
e802c93
 
7c00bd4
 
 
266ce23
 
 
 
 
7c00bd4
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: Hanbridge Clare Assistant (Product UI)
emoji: πŸ’¬
colorFrom: yellow
colorTo: purple
sdk: docker
pinned: false
license: mit
---

# Hanbridge Clare Assistant – Product Version

This Space hosts **Clare**, an AI-powered personalized learning assistant for Hanbridge University.

## Architecture Overview

- **Frontend**: React + Vite (exported from Figma design)
- **Backend**: FastAPI (Python)
- **LLM Orchestration**: OpenAI + LangChain
- **Observability**: LangSmith
- **Deployment**: Hugging Face Docker Space

### Optional: Text-to-Speech & Podcast

- **TTS**: Uses the same **OpenAI API key** (no extra secrets). Convert export/summary text to speech.
- **Podcast**: Generates an MP3 from the session summary or full conversation.
- **Hugging Face**: Set `OPENAI_API_KEY` in the Space **Settings β†’ Secrets**. No extra env vars needed.



```
πŸ“¦ project/
 β”œβ”€β”€ app.py
 β”œβ”€β”€ api/
 β”‚   β”œβ”€β”€ server.py
 β”‚   β”œβ”€β”€ clare_core.py
 β”‚   β”œβ”€β”€ rag_engine.py   ← RAG
 β”‚   └── tts_podcast.py  ← TTS & podcast (OpenAI TTS)
 └── requirements.txt

```