Skip to content

PrashikSawant/ai-study-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š AI Study Notes Assistant

Day 4 of my AI Engineering Journey β€” Built a personal AI that answers questions about YOUR own study notes.


πŸ’­ The Problem I Solved

When you study, you take notes. But finding information across many notes is slow. And testing yourself on what you wrote is even harder.

This app solves both problems:

  • Save your notes in one place
  • Ask AI anything about YOUR notes
  • AI answers ONLY from what YOU wrote

πŸ’‘ Why This Is Special

Most AI answers from its general training data. This AI answers ONLY from your personal notes.

That is the core idea behind RAG β€” Retrieval Augmented Generation.

This project is the simplest version of RAG possible: Your notes β†’ injected into system prompt β†’ AI answers from them.


✨ Features

  • πŸ“ Add notes β€” save any study topic with full content
  • πŸ“– View all notes β€” see everything you have saved
  • πŸ€– Ask AI about all notes β€” get answers across all topics
  • πŸ” Ask AI about one note β€” deep dive into a specific topic
  • πŸ”Ž Search notes β€” find notes by keyword instantly
  • πŸ—‘οΈ Delete notes β€” remove notes you no longer need
  • πŸ’Ύ Persistent storage β€” notes saved to JSON, survive app restarts

πŸ”‘ The Core Concept β€” Context Injection

system_prompt = f"""You are a study assistant.
Answer ONLY based on these notes:

{user_notes}  # ← This is the magic
"""

By injecting the user's notes directly into the system prompt, the AI becomes an expert on exactly what YOU studied. Nothing more. Nothing less.


πŸ—‚οΈ How Notes Are Stored

Notes are saved locally in notes.json:

[
    {
        "id": 1,
        "topic": "RAG Systems",
        "content": "RAG stands for Retrieval Augmented Generation...",
        "date": "2026-05-11 14:30"
    }
]

βš™οΈ Tech Stack

Tool Purpose
Python Core programming language
Groq API AI inference platform
LLaMA 3.3 70B The underlying language model
JSON Local data storage
python-dotenv Secure API key management
Git & GitHub Version control

πŸš€ How to Run

  1. Clone the repository
   git clone https://github.com/PrashikSawant/ai-study-notes.git
   cd ai-study-notes
  1. Install dependencies
   pip install groq python-dotenv
  1. Create a .env file
GROQ_API_KEY = "Add your API KEY here"
  1. Run the app
   python main.py

πŸ“š What I Learned

  • How to read and write JSON files in Python
  • How context injection works β€” the foundation of RAG
  • How to build a multi-feature menu driven application
  • Why AI answers change completely based on what context you give it
  • How persistent local storage works without a database

πŸ—ΊοΈ What's Next

  • πŸ”œ Research Paper Summarizer
  • πŸ”œ PDF Reader + Q&A with ChromaDB
  • πŸ”œ Full RAG System with Vector Database

πŸ‘¨β€πŸ’» About Me

I am Prashik β€” an aspiring AI Engineer on a 4-month intensive journey to become job-ready in Generative AI Engineering.

Follow my journey β†’ LinkedIn

See all projects β†’ GitHub


Day 4 of 120 | May 11, 2026 | Status: βœ… Complete

About

πŸ“š AI powered study notes app β€” save notes, ask AI questions about YOUR content. Built with Groq API and LLaMA 3.3 70B. The simplest form of RAG. Day 4 of my AI Engineering journey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages