Generative AI, LLMs and RAG: A Practical Student Guide
Explore Generative AI, LLMs and RAG with simple explanations, practical workflows, beginner projects, tools and responsible AI guidance for students.
Generative AI is moving from simple demonstrations into everyday software: chat assistants, document search, coding support and content tools. For students, understanding how these systems work is more useful than learning a list of AI product names. This guide explains how Generative AI, LLMs and RAG connect, then turns those ideas into a practical learning path with tools and beginner project examples. It also shows how students can connect these skills with real software work and technology topics shared by We3vision.
Generative AI, LLMs and RAG: how the ideas connect
Generative AI is a branch of artificial intelligence focused on creating new content from patterns learned during training. Depending on the model, that content may include text, images, audio, video or code. A chatbot that drafts an email and an image model that creates a visual from a prompt are both examples of generative systems.
A Large Language Model, or LLM, is a model designed to process and generate language. LLMs power many text-based AI experiences, including question answering, summarisation, translation and coding assistance. Examples of well-known model families include GPT, Gemini, Claude and Llama. Their capabilities, access methods and terms vary by provider.
Retrieval-Augmented Generation, or RAG, is an application approach that connects an LLM to an external knowledge source. Before the model writes a response, the application retrieves relevant information from sources such as PDFs, help pages, product documents or an internal knowledge base. The retrieved material is included in the prompt as context.
The three concepts play different roles: Generative AI is the broader content-creation field, an LLM is a language model, and RAG is a way to supply relevant external information to a model while it answers.
How an LLM processes a prompt
An LLM does not search the internet automatically every time it receives a question. It processes the input it has been given, uses patterns learned during training and generates an output. Many language models process text as tokens, which can be words, parts of words or punctuation. The model generates a response token by token.
Students should understand a few terms:
- Prompt: The instruction, question and context given to the model.
- Tokens: Units of text that a model processes. Token counts are not always the same as word counts.
- Context window: The amount of input and conversation context a model can handle in one request.
- Temperature: A generation setting that can influence how varied or predictable the output is.
- Hallucination: A response that sounds plausible but contains information that is incorrect or unsupported.
A good prompt gives the model a clear task, relevant context and a useful output format. For example, instead of asking, “Explain my notes,” a student could ask, “Summarise the uploaded notes on supervised learning in five points and list any terms that need clarification.” Clear instructions can improve usefulness, but they do not guarantee that every answer is correct.
What RAG adds to an LLM application
A general-purpose LLM may not know the latest information or the contents of a private document collection. RAG helps an application use selected external information at answer time, without requiring the model to be retrained whenever the documents change.
Imagine a student uploads lecture notes and asks, “What is the difference between classification and regression in my notes?” A RAG application can search the notes, retrieve the sections that discuss those concepts and provide them to the LLM with the question. The model then generates an explanation based on that supplied context.
RAG is useful for document assistants, company knowledge-base chatbots, policy search, product support and research tools. It can make an answer more relevant to the selected sources, but it does not guarantee accuracy. If the source is incomplete, the retrieval step returns the wrong passage or the model misinterprets the context, the final answer can still be wrong.
A well-designed application should show where information came from, make it clear when the answer is not present in the documents and avoid exposing information the user is not allowed to access.
A practical RAG workflow: from documents to answers
A basic RAG system usually has a preparation stage and a question-answering stage.
- Collect and extract documents. Accept supported files such as PDF, DOCX or TXT and extract their text. Preserve useful details such as file name, page number, title and access permissions.
- Clean and split the text. Remove irrelevant formatting and divide long documents into smaller sections called chunks. Chunk size and overlap should be tested because they affect what can be retrieved.
- Generate embeddings. Convert each chunk into a numerical representation called an embedding. Embeddings allow the application to compare the meaning of text, not only exact keyword matches.
- Store searchable information. Save embeddings with the original text and metadata in a vector database or search index. Examples include Pinecone and ChromaDB.
- Retrieve relevant context. Convert the user's question into an embedding and search for related chunks. Some systems combine vector search with keyword search or rerank the results.
- Generate the answer. Add the question and selected chunks to the LLM prompt. Ask it to answer from the supplied context and include source details where the application supports citations.
The overall flow is: Document upload → Text extraction → Chunking → Embeddings → Search and retrieval → Context for the LLM → Generated answer.
Tools and skills students can explore
Students do not need to learn every framework at the same time. Start with the programming and data skills that help you understand each part of the application.
- Python: Useful for document processing, API integration and application logic.
- LLM APIs or open models: Provide the language-generation capability. Review their documentation, limits and data-handling terms before selecting one.
- Embedding models: Convert documents and queries into vectors for semantic search.
- Pinecone or ChromaDB: Examples of vector databases used to store and retrieve embeddings.
- FastAPI: A Python framework for exposing the application through APIs.
- LangChain or LlamaIndex: Frameworks that can help organise document loading, retrieval and model calls.
- React: A common choice for building the chat or document-upload interface.
- PostgreSQL or Supabase: Can store application records, users, document metadata and other structured data.
Alongside tools, practise Python basics, JSON, API requests, data cleaning, prompt writing and debugging. Learn why each component is needed rather than copying a pipeline without understanding it.
Beginner projects and responsible testing
Small projects help students see how the components fit together. Choose one idea, complete a basic version and improve it using test questions.
- PDF question-answering assistant: Upload a document and ask questions that should be answered from its contents.
- College notes assistant: Search lecture notes and return explanations with the relevant document or page reference.
- Company knowledge-base chatbot: Retrieve answers from approved FAQs, product documents or internal policies, while respecting user permissions.
- Document summariser: Generate a short summary, key points and follow-up questions from a selected document.
Test more than one successful example. Ask questions whose answers are present, absent, spread across multiple sections and phrased differently from the source. Check whether retrieval finds the right chunks, whether the response matches those chunks and whether the source reference is correct.
Also test privacy and access control. A user should only retrieve documents they are authorised to see. Do not upload confidential data to an external model or service unless you have permission and understand its data-handling rules. Keep human review for important decisions, and be clear about the system's limitations.
Build practical AI skills with We3vision
Understanding Generative AI, LLMs and RAG is a useful foundation, but students learn more when they turn the concepts into working applications. A simple document chatbot can bring together Python, APIs, embeddings, vector search, a database and a frontend in one project.
We3vision Private Limited works across technology areas that include AI/ML, web development and app development. Students exploring these fields can use the concepts in this guide to understand how AI features connect with complete software applications. We3vision's technology content can also help readers explore practical topics across AI/ML and software development.
For a business-use-case angle, readers can also explore We3vision's related article, “Generative AI for Small Business: 10 Practical Use Cases.”
A sensible next step is to build one small RAG project, document its workflow and test it with questions that expose its limitations. Students interested in current learning or industry-training options can contact the We3vision team directly to confirm available programmes, requirements and details.
Generative AI, LLMs and RAG are not just terms to memorise. They are building blocks that students can learn, combine and evaluate through practical work. Start with the fundamentals, build carefully and focus on creating useful and responsible AI applications.
Frequently asked questions
What is the difference between Generative AI and an LLM?
Generative AI is the broader area of AI that creates new content. An LLM is a language-focused model used for tasks such as text generation, summarisation and question answering.
What does RAG mean in Generative AI?
RAG means Retrieval-Augmented Generation. It retrieves relevant information from an external knowledge source and provides it to an LLM as context for generating a response.
Do students need Python to build a RAG project?
Python is a practical starting point because it has tools for document processing, APIs, embeddings and retrieval. Other languages and platforms can also be used.
Which beginner project is useful for learning RAG?
A PDF question-answering assistant is a useful starting project. It introduces document extraction, chunking, embeddings, vector search and answer generation.
Does RAG prevent AI hallucinations completely?
No. RAG can provide relevant source material, but incomplete documents, poor retrieval and model errors can still produce inaccurate answers.

