Skip to content
All projectsNext: ApexFlow Interviewer
Retrieval & RAG · Personal project — 2023

Explora AI

A research assistant built solo in late 2023, from brainstorming to deployment on Google Cloud. A two-stage retrieval pipeline first gathers a broad set of candidate sources and then ranks them, and only the strongest become context for Gemini. Long-running work runs through RabbitMQ, behind a Next.js front end and a FastAPI backend.

ShippedDeployed on Google Cloud
Role
Solo developer
Team
Solo
Timeline
3–4 months
Stack
Next.js · FastAPI · Gemini · RabbitMQ · GCP
Explora AI
ProblemEarly-stage research can take days or weeks of finding, reading and sorting sources before writing starts.
ApproachTwo-stage retrieval that separates discovery from relevance, then Gemini writes from the ranked sources.
TechnologyNext.js, TypeScript, Tailwind CSS, Python, FastAPI, Gemini API, RabbitMQ, GCP, CI/CD.
OutcomeInitial research exploration in minutes instead of days, as a workflow-level result rather than a benchmark.

Problem

Before a paper, report or proposal can be written, a researcher has to understand the topic, find related work, decide which sources actually matter, organise findings and work out what needs citing. A source can mention the right words and still be useless. A generic LLM answer doesn't help either, because research needs to be tied to real sources.

Approach

Separate recall from relevanceStage one casts a wide net so useful material isn't discarded too early. Stage two ranks those candidates against the research objective, so downstream work focuses on the strongest sources.
Retrieve before you generateGemini receives the ranked sources as context, so its output can be tied to references instead of resting on the model's general knowledge.
Move slow work off the requestRetrieval, ranking and generation can outlast a normal API request. RabbitMQ decouples that work from the FastAPI request cycle, so processing can scale separately from the web layer.
Built like a product, not a notebookA typed Next.js front end, a separate API backend, code review, CI/CD and cloud deployment were part of the project from the start.

Architecture

How the system fits together.

From question to grounded draft
Research questiontopic or ideaFastAPIvalidates, queuesRabbitMQbackground jobsStage 1: recallbroad candidate setStage 2: rankrelevance orderGeminigrounded synthesisResearch draftsections + sources
The stages are shown, not specific algorithms: the exact retrieval and ranking models aren't recorded in the project notes.

Decisions

  1. Two retrieval stagesOver: One restrictive searchFinding possibly useful material and deciding what is most useful are different problems. A single strict search can throw good sources away before they are judged.
  2. A message queue for long jobsResearch processing takes longer than a typical request. Queued background work keeps the API responsive and scales on its own.
  3. Retrieval before synthesisA research assistant has to separate what the model already knows from what was retrieved for this question.

Technology

Frontend
Next.js, TypeScript, Tailwind CSS
Backend
Python, FastAPI
LLM
Gemini API
Retrieval
Two-stage candidate retrieval and relevance ranking
Messaging
RabbitMQ
Delivery
Google Cloud Platform, CI/CD, code review

Outcome

Personal project · 2023
retrieval stages: candidate discovery, then ranking
Minutesfor early research exploration that could take days or weeks by hand (not benchmarked)
3–4 mosolo, from brainstorming to cloud deployment

My role

A solo project covering the whole lifecycle.

  • Idea, research workflow and product definition
  • System architecture
  • Next.js front end and FastAPI backend
  • Retrieval pipeline and Gemini integration
  • RabbitMQ processing, CI/CD and GCP deployment
Explora AI detail 1
Explora AI detail 2
Next projectApexFlow InterviewerAI-led video interviews: a voice agent joins the call, asks questions built from the resume and job, runs a live coding round and writes a scored report.