Institutional memory AI agent for college clubs Google Agent Labs Hackathon 2026 · Problem Statement 2: Club & Community Intelligence Agent
🔗 Live app: https://echomindai.vercel.app 🎥 Demo video: https://drive.google.com/drive/folders/1GVJzmqEvkj0YASq8xz5GMRGNgEnM3SVb?usp=sharing
Live chat calls a locally-run backend on
localhost:8000(see Setup); the landing, retrieval-trace UI and demo video are fully live on the hosted link above.
Every May, college clubs suffer a lobotomy. The seniors graduate — and with them goes everything: which sponsor ghosted twice, why the 2023 hackathon lost ₹18,000, the trick that gets budgets approved 3× faster, why membership cratered the year the beginner workshops stopped. The docs exist — minutes, budgets, post-mortems, handover notes — but nobody reads 300 documents. So every batch relearns the same expensive lessons.
EchoMind ingests a club's full 5-year archive and becomes the senior you can always ask. It answers with citations, synthesizes across years, flags contradictions between documents, proactively warns about past failures — and remembers its own past conversations in long-term memory.
The demo dataset is a synthetic but internally consistent history of the fictional Nexus Tech Club (2021–2025): 299 documents across 7 types, with 6 buried storylines that only cross-document synthesis can recover.
Next.js 14 UI (chat + live retrieval-trace sidebar)
│ POST /chat
FastAPI backend
│
Google ADK root agent "echomind" (Gemini 2.5 Flash)
│ tools
├─ search_knowledge(query, doc_type?, year?) ┐
├─ get_member_info(name) │ hybrid retrieval pipeline
├─ get_event_history(event_name) ┘
└─ recall_conversation(query) ──► Qdrant "agent_memory"
Qdrant "club_knowledge"
(dense bge-small + sparse BM25,
RRF fusion → cross-encoder rerank)
flowchart TB
U["👤 Club member"] --> FE["Next.js 14 UI<br/>chat pane + retrieval-trace sidebar"]
FE -->|"POST /chat {message, session_id}"| API["FastAPI backend<br/>/chat · /ingest · /health"]
API -->|"pre-answer recall"| MEM[("Qdrant: agent_memory<br/>dense bge-small 384-d")]
API --> RUNNER["Google ADK Runner<br/>InMemorySessionService"]
subgraph AGENT["ADK root agent · echomind"]
LLM["Gemini 2.5 Flash<br/>(GOOGLE_API_KEY)"]
T1["search_knowledge<br/>(query, doc_type?, year?)"]
T2["get_member_info(name)"]
T3["get_event_history(event)"]
T4["recall_conversation(query)"]
LLM --> T1 & T2 & T3 & T4
end
RUNNER --> AGENT
subgraph RET["Hybrid retrieval pipeline (fastembed, CPU)"]
QV["query embed:<br/>dense bge-small-en-v1.5<br/>sparse Qdrant/bm25"]
FUSE["Qdrant Query API<br/>2× Prefetch → RRF fusion (top-20)"]
RR["cross-encoder rerank<br/>jina-reranker-v1-tiny-en → top-5"]
QV --> FUSE --> RR
end
T1 & T2 & T3 --> RET
FUSE --> KB[("Qdrant: club_knowledge<br/>299 docs · named vectors dense+sparse")]
T4 --> MEM
API -->|"post-answer: store (Q+A) summary"| MEM
API -.->|"fire-and-forget mirror<br/>(only if LYZR_API_KEY)"| LYZR["Lyzr Studio agent<br/>v3 inference API"]
RET -->|"per-tool-call trace<br/>(fused + rerank scores, rank Δ)"| API
API -->|"answer + retrieval_trace + memory_hits"| FE
ING["data/generate_dataset.py<br/>seeded, deterministic, 299 docs"] -->|"POST /ingest / startup"| KB
Data flow of one question + Qdrant collection schema: docs/architecture.md.
The root agent (backend/agent.py) is a google.adk.agents.Agent on
gemini-2.5-flash, run through Runner + InMemorySessionService. Its four tools are
plain Python functions wrapping the retrieval pipeline. The system instruction encodes
the agent's intelligence: query decomposition (multi-topic questions become multiple
focused search_knowledge calls), mandatory citations (document title + year),
contradiction flagging (e.g. the fest-timing conflict between a 2022 and a 2024 doc),
and proactive failure warnings (mention TechVerse anywhere near a sponsorship
question). Every tool call is captured into a per-turn trace buffer that the UI renders
live.
Two collections:
club_knowledge— one collection, two named vectors per point:dense(BAAI/bge-small-en-v1.5, 384-d, cosine) andsparse(Qdrant/bm25 with IDF modifier), both computed locally with fastembed (CPU-only). Queries use the Qdrant Query API with twoPrefetchbranches fused by RRF; the fused top-20 is reranked to top-5 by a fastembed cross-encoder (jinaai/jina-reranker-v1-tiny-en). Metadata filters (doc_type, year) are applied inside each prefetch branch.agent_memory— after every chat turn, a summary of (question + answer) is embedded and stored. Before answering, the backend searches this collection and injects relevant past conversations; the agent also has an explicitrecall_conversationtool. This is how EchoMind "remembers" across sessions and restarts.
Client resolution: QDRANT_URL (cloud) → localhost:6333 (docker) → embedded local
mode (zero-infra fallback; the demo runs with no external services at all).
backend/lyzr_integration.py: if LYZR_API_KEY is set, every answered turn is mirrored
to a Lyzr Studio agent (v3/inference/chat) as an independent audit/second-opinion
channel — fire-and-forget in a daemon thread, never blocking the main flow. Without the
key it no-ops with a log line.
15 eval queries targeting the planted storylines, expected-source labels, three configs
(scripts/ablation.py):
| Retrieval config | Recall@1 | Recall@5 | MRR@5 |
|---|---|---|---|
| Sparse only (BM25) | 13/15 (87%) | 15/15 (100%) | 0.922 |
| Dense only (bge-small) | 12/15 (80%) | 13/15 (87%) | 0.822 |
| Hybrid RRF + rerank | 14/15 (93%) | 15/15 (100%) | 0.967 |
Dense-only misses keyword-heavy queries ("never rely on", exact sponsor names); sparse-only mis-ranks paraphrased questions. Hybrid fusion + reranking wins on every metric.
cp .env.example .env # add your GOOGLE_API_KEY (Qdrant/Lyzr keys optional) ./run.sh # or .\run.ps1 on Windows
That single script creates the venv, installs deps, generates the dataset, ingests into Qdrant (first run), and starts the backend (:8000) + frontend (:3000). Open http://localhost:3000.
Useful extras:
.venv/Scripts/python scripts/query_cli.py "why did HackNexus 2023 lose money?" # retrieval proof .venv/Scripts/python scripts/ablation.py # eval table curl -X POST localhost:8000/ingest # re-index
Without GOOGLE_API_KEY the system degrades gracefully to a clearly-labeled
retrieval-only mode (extractive answers, full trace still shown).
Note: in embedded-Qdrant mode the storage dir is single-process — stop the backend
before running query_cli.py/ablation.py.
2.5-minute script with the exact queries: docs/demo_script.md.
Built by four founders, each owning a layer of the stack:
| Founder | Role | Owned |
|---|---|---|
| Vibhor Pandey | Founder · Agent & Retrieval | ADK agent design, Gemini integration, hybrid retrieval + cross-encoder rerank pipeline |
| Bhavya Dubey | Co-founder · Frontend & Experience | Next.js UI, live retrieval-trace sidebar, 3D/video motion design, Vercel deploy |
| Yuvraj Arora | Co-founder · Backend & Infrastructure | FastAPI service, Qdrant collections (club_knowledge + agent_memory), long-term memory wiring |
| Rohit Singh Rajawat | Co-founder · Data & Evaluation | Synthetic dataset generator, retrieval ablation harness, architecture & demo docs |
backend/ config, retrieval pipeline, memory, ADK agent, FastAPI app, Lyzr
data/ generate_dataset.py (deterministic, seeded) + club_docs.json (299 docs)
frontend/ Next.js 14 + Tailwind — chat + retrieval-trace sidebar
scripts/ query_cli.py, ablation.py
docs/ architecture.md (Mermaid), demo_script.md
DECISIONS.md defaults chosen and why
- @vibhorxpandey — Vibhor Pandey (Founder)
- @bd9839-source — Bhavya Dubey (Co-founder)
- @YuvrajArora06 — Yuvraj Arora (Co-founder)
- @singhrajawat017-alt — Rohit Singh Rajawat (Co-founder)