๐Ÿฆ‡

Alfred

AI-Powered Knowledge Butler

Capture everything. Forget nothing. Let Alfred handle the rest.

React Native Expo SDK 54 Appwrite Gemini 2.5 Qdrant Vector DB Spaced Repetition
3
Input Modalities
8
Cloud Functions
3072-dim
Vector Embeddings

github.com/sidx007/alfred

Overview

What does Alfred do?

Alfred is a personal knowledge management app that lets you dump raw information โ€” text, audio, or images โ€” and automatically turns it into a structured, searchable, and reviewable knowledge base. Think of it as a second brain with a butler personality.

๐Ÿ“
Capture

Text, audio recordings, and images โ€” all processed automatically on upload.

๐Ÿง 
Process

Transcription, OCR, semantic chunking, topic classification, web enrichment, vector embedding.

๐Ÿ”
Review

Daily spaced-repetition reports from chunks captured 1, 3, 5, and 7 days ago โ€” written in Alfred's voice.

๐Ÿƒ
Flashcards

Anki-style cards with Again / Good / Easy grading, auto-generated from your notes.

๐Ÿ’ฌ
RAG Chat

Ask questions โ€” semantic search retrieves relevant memories for context-aware answers.

๐ŸŽ™๏ธ
Voice

Live bidirectional voice chat via Gemini 2.0 Flash WebSocket streaming.

Architecture

How it's built

๐Ÿ“ฑ Mobile App
React Native / Expo
๐ŸŒ Web Dashboard
Vanilla JS + Express + Vite
โ†“
Appwrite Cloud Functions (Python)
audioFunction imageFunction clusteringFunction processSegmentFunction vectorEmbedFunction reportGeneratorFunction dailyReportPipeline vectorRetrieveFunction
โ†“
Qdrant Cloud โ€” Vector DB (3072-dim)
memory ยท knowledge_base ยท topics ยท flashcards ยท daily reports
LLM Routing

Right model for each task

Alfred doesn't use one model for everything โ€” each step in the pipeline uses the model best suited for that specific task.

TaskModel
Speech-to-TextDeepgram Nova-3
Image OCROCR.space
Semantic ClusteringGroq / Llama 3.3 70B
Topic ClassificationGroq / Llama 3.1 8B
Report GenerationGemini 2.5 Flash
Web ResearchGemini 2.5 Flash + Google Search
Live Voice StreamingGemini 2.0 Flash (WebSocket)
Vector EmbeddingsGemini Embedding 001 (3072-dim)
Pipeline

From capture to knowledge

1
CaptureText typed, audio recorded, or image taken on mobile app
2
Transcribe / OCRDeepgram for audio, OCR.space for images โ†’ raw text
3
Semantic Chunk + ClassifyLlama 3.3 70B splits text โ†’ Llama 3.1 8B assigns topics
4
Enrich + EmbedGemini web-researches each chunk โ†’ Gemini Embedding 001 โ†’ stored in Qdrant
5
Daily Reports + RAG Chat + FlashcardsSpaced repetition, semantic Q&A, and Anki-style review โ€” all over the same Qdrant store

"Shall I remind you, sir, that you studied distributed systems three days ago and appear to have retained absolutely none of it? Allow me to refresh your memory."