
I Wanted an AI Study Buddy, So Here’s How to Build One on AWS with Your Own Notes
Every student knows the feeling. You have lecture notes, PDFs, and slides scattered everywhere, and the night before an exam you can’t find the one page that explains the topic you need.
What if you could just ask your notes a question and get an answer in plain English, with the source shown? That is possible on AWS using a technique called RAG (Retrieval-Augmented Generation). This article explains what RAG is, how the pieces fit together, and how to build a small version yourself.
What is RAG, in simple words?
A normal chatbot answers from what it learned during training. It doesn’t know your notes, and it can make things up when it isn’t sure.
RAG fixes this in two steps:
- Retrieve: the system searches your own documents for the passages most relevant to your question.
- Generate: the language model writes an answer using only those passages.
Think of it as an open-book exam for AI. The model isn’t memorizing your notes, it is looking things up in them.
Why this is a great project for students
- It solves a real problem. You will actually use it.
- It teaches several skills at once: storage, embeddings, vector search, and generative AI.
- It makes a strong portfolio piece because it shows you can build with modern AI instead of only using it.
- It’s easy to explain in an interview or an article.
The architecture
- Amazon S3 stores your notes (PDFs, text files, slides converted to text).
- Amazon Bedrock Knowledge Bases reads those files, splits them into chunks, and converts each chunk into an embedding (a list of numbers that captures meaning).
- A vector store keeps the embeddings so similar meanings can be found quickly.
- A foundation model on Bedrock receives your question plus the retrieved passages and writes the answer.
- A simple front end (a basic web page, or even the Bedrock console’s test window) lets you ask questions.
Bedrock Knowledge Bases manages most of the heavy lifting, so you don’t have to build the search layer yourself.
Step-by-step build
Step 1: Prepare your notes
Collect 5 to 10 documents on one subject, such as networking basics or your cloud course notes. Clean text works better than scanned images. Start small so you can check the answers yourself.
Step 2: Upload to S3
Create a bucket with Block Public Access turned on and upload your files to a folder like
study-notes/ .Step 3: Create the knowledge base
In the Bedrock console, create a Knowledge Base and point it at your bucket. Choose an embedding model and a vector store. The console can set up the vector store for you, but check its pricing first, because some options carry a minimum running cost that is not free-tier friendly.
Step 4: Sync your data
Run a sync so Bedrock reads, chunks, and embeds your documents. Re-sync whenever you add new notes.
Step 5: Choose a generation model
Pick a text model that is available in your region and enable access if the console asks for it.
Step 6: Test with real questions
Ask things you already know the answer to, so you can judge quality. Try:
- A question answered directly in one document.
- A question that needs information from two documents.
- A question your notes do not cover.
Step 7: Check the citations
Good RAG shows which passages the answer came from. Always open the source and confirm it supports the answer.
Making answers better
- Chunk size matters. Too small loses context, too large adds noise. Experiment.
- Write better questions. Specific questions get better retrieval.
- Instruct the model to stay grounded. Tell it to answer only from the provided context and to say “I don’t know” when the notes don’t contain the answer.
- Keep your notes organized. Clear headings and one topic per file help retrieval.
The DevOps and security side
This is where a weekend project becomes a professional one:
- Least privilege: give the knowledge base role access to only your notes bucket.
- Infrastructure as code: define the resources in CloudFormation or Terraform so you can rebuild or delete them in one command.
- Cost alerts: set a budget alert before the first sync.
- Privacy: don’t upload documents containing personal or confidential data.
- Cleanup: delete the knowledge base and its vector store when you finish, since idle resources can keep costing money.
Limitations to be honest about
- RAG can still be wrong. If retrieval picks the wrong passage, the answer will be confidently wrong. That is why citations and spot checks matter.
- It only knows what you give it. Missing notes mean missing answers.
- Messy PDFs hurt quality. Tables, images, and odd layouts may not be read well.
- Costs vary. Check current pricing for the model, the embeddings, and the vector store before you begin.
Ideas to extend it
- Add a simple chat web page hosted on S3 and CloudFront.
- Generate quiz questions from your notes.
- Build flashcards automatically from each chapter.
- Add a feedback button so you can mark answers as helpful or wrong and learn what to improve.
What I’d tell a fellow student
- You don’t need to train a model to build useful AI. Connecting managed services is enough.
- Start with a tiny dataset and check every answer.
- Trust, but verify: a cited answer you can check beats a smooth answer you can’t.
- Control costs from the first day.
Final thoughts
RAG is one of the most practical ways to use generative AI today, and it fits student life perfectly. Your notes become something you can talk to, and you learn real cloud and AI skills while building it.
Your turn
If you could chat with your own notes, which subject would you load first? Tell me in the comments: cloud basics, programming, networking, exam prep, or something else. And if you’ve tried RAG before, share one lesson you learned. The best tips go into a follow-up article with credit to you.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article