
Vision & What the App Does
The annoying task I automated is the one I do maybe fifteen times a week and never once enjoy: hunting for a file I know I have.
Nobody remembers filenames. I don't think
Screenshot 2026-07-14 at 11.42.03.png . I think "the diagram I made while figuring out the Lambda setup." I don't remember notes_v3_final_FINAL.docx . I remember "the runbook I wrote before the deploy." Every file system on earth makes me search the way the computer stores things instead of the way I actually remember them, so I end up opening six folders and scrolling until something looks familiar.RecallGraph flips that. You drop in a file — PDF, DOCX, TXT, Markdown, or an image — and Amazon Bedrock reads it, works out what it actually is, and files it into a knowledge graph. Then you search in plain English:
- "what did I write about deploying to the cloud?"
- "find the PDF I used while preparing for AWS"
You get back the matching documents, an explanation of why the AI thought they matched, and a visual graph showing how they connect to everything else you've uploaded.
The part I didn't expect to like as much as I do is the automatic relationship detection. Upload two documents that share a subject and RecallGraph works out the link on its own and draws the edge. I uploaded an architecture doc and a deploy runbook — never told the app they were related — and it connected them at 0.9 confidence with this reasoning:
"Both documents discuss RecallGraph, share many common technologies (AWS services, FastAPI, React), and cover related topics such as cloud deployment and architecture. However, Document A focuses on deployment instructions, while Document B provides an architectural overview."
That's the whole idea. The organising is the annoying task. The app does it for you.
AWS Services Used / Architecture Overview
Everything runs on Free Tier services in
ap-south-1 (Mumbai).Service | What it does here |
|---|---|
Amazon Bedrock | Nova Pro for document + image analysis, Nova Lite for relationship detection |
AWS Lambda | Two functions — the FastAPI backend, and the S3-triggered file processor |
Amazon API Gateway | HTTP API fronting the backend Lambda |
Amazon DynamoDB | Four tables (memories, projects, relationships, activities) with GSIs |
Amazon S3 | One bucket for uploads, one for static website hosting |
Amazon Cognito | User pool + JWT auth, validated server-side against the JWKS endpoint |
Amazon CloudWatch | Log groups with 30-day retention + an API error alarm |
AWS SAM / CloudFormation | The entire stack as one template |
How the agent is triggered
The pipeline is event-driven, not request-driven — this turned out to matter a lot (more on that below).
flowchart TD A[User drops a file in the browser] --> B[API Lambda returns a presigned S3 URL] B --> C[Browser uploads straight to S3] C --> D{{S3 ObjectCreated event}} D --> E[File Processor Lambda] E --> F[Extract text — PyPDF2 / python-docx<br/>or send image bytes to Bedrock] F --> G[Bedrock Nova Pro:<br/>title, summary, keywords, topics,<br/>entities, technologies] G --> H[Write metadata to DynamoDB] H --> I[Compare against existing memories] I --> J[Bedrock Nova Lite:<br/>is this related? why?] J --> K[Write edges to relationships table] K --> L[Knowledge graph]The browser never waits on the AI. It uploads to S3 and moves on; the S3 event does the rest in the background. A full analysis run takes about 4.5 seconds end to end.
One efficiency note: comparing every new document against every existing one with an LLM call gets expensive fast. So before calling Bedrock, the pipeline pre-filters candidates on shared keywords, topics, and technologies. Only plausible pairs reach the model.
The frontend is React 19 + TypeScript + Vite + TailwindCSS, with React Flow for the graph canvas, Zustand for client state and TanStack Query for server state. It builds to about 254 KB gzipped and is served straight out of S3 static website hosting.
How I Built It
I built the whole thing — frontend, backend, and infrastructure — and then hit the part everyone underestimates: the gap between "it builds" and "it actually runs on AWS." That gap contained six real bugs, and they're the most useful thing I can share.
1. Presigned S3 URLs pointed at the global endpoint. Every upload came back
307 TemporaryRedirect . curl follows redirects, so it looked fine in testing — but browsers won't replay a PUT body across a redirect, so real uploads would have silently failed. Fix: pin the regional endpoint and SigV4 explicitly on the boto3 S3 client.2. API Gateway's stage prefix wasn't stripped. Every single route returned 404. The Lambda was running — I could tell because the 404 came back in FastAPI's JSON shape, not API Gateway's. API Gateway serves the app under
/dev , but FastAPI's routes start at /api . Fix: Mangum's api_gateway_base_path .3. CloudFormation circular dependency — the stack wouldn't create at all. The uploads bucket needed the Lambda ARN for its event notification, and the Lambda's IAM policy needed the bucket name.
!Ref in both directions = deadlock. Fix: reference the bucket by its predictable name instead of !Ref .4. Bedrock model IDs.
amazon.nova-pro-v1:0 doesn't support on-demand throughput in ap-south-1 . You have to use the regional inference profile: apac.amazon.nova-pro-v1:0 .5. The worst one:
BackgroundTasks don't work in Lambda. My upload flow called a /process endpoint that kicked off analysis via FastAPI's BackgroundTasks . That's correct on a normal server and wrong on Lambda — the execution environment freezes the moment the response is returned, so the background work may never finish. It was also duplicating the S3 trigger. Deleting that call made the app both more correct and simpler.6. The graph rendered nothing. The header cheerfully said "2 nodes, 1 edges" above an empty-state message. React Flow's
useNodesState(initialNodes) only reads its argument on the first render — and my data arrives asynchronously from TanStack Query. The fix is a useEffect that pushes each new layout in.
What I Learned
Test against the real thing early. Five of those six bugs are invisible locally. They only exist because Lambda, API Gateway, and S3 behave differently from a dev server. My build was green the entire time it was broken.
Read the error's shape, not just its text. The
{"detail": "Not Found"} vs {"message": "Not Found"} distinction told me instantly that my Lambda was running and the path was wrong — that's a completely different investigation from "the Lambda is dead."Lambda's execution model is a real constraint, not a detail. The
BackgroundTasks bug is the one I'd warn other builders about hardest, because nothing fails loudly. The endpoint returns 200 . It just quietly might not do the work.Event-driven beats request-driven for AI pipelines. Once processing hangs off an S3 event instead of an HTTP request, the browser stops waiting on a multi-second LLM call, the work survives the user closing the tab, and retries come free.
Pre-filter before you call an LLM. Cheap string comparison first, expensive model call second.
Try it: http://recallgraph-frontend-app.s3-website.ap-south-1.amazonaws.com
Code: ://github.com/Gaurav-dev-24/RecallGraph
Built for the AWS Weekend Challenge. Shout-out to Binod Prasad Joshi, whose FitIntelligence concept kicked off this round.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article