Retrieval and generation, combined
Explain how retrieval-augmented generation works and what makes a RAG system agentic, before you write any code.






























A hands-on build of an agentic RAG system in Python, with Llama-Index and OpenAI: retrieval and generation combined with an agent that decides how to query across several documents.
You set up the environment, build a RouterQueryEngine, write query tools for each document type, combine them in an agent worker, then look at how the system scales and where RAG is heading.
Explain how retrieval-augmented generation works and what makes a RAG system agentic, before you write any code.
Build a RouterQueryEngine that manages queries across several document types, using both summarization and vector-based retrieval.
Write tailored query tools so the system pulls accurate, relevant answers out of each kind of source.
Combine the tools in an agent worker, query it across multiple documents, and judge how far the design can scale and adapt.
Cover the basics of retrieval-augmented generation and of agentic systems, and how the two combine to work with complex data.
Set up your development environment, install Python packages including Llama-Index and OpenAI, and configure the workspace.
Create a RouterQueryEngine that manages queries across several document types, using both summarization and vector-based retrieval.
Write query tools tailored to each document type, so the system extracts accurate, relevant answers from different sources.
Combine the document-specific tools, build an agent worker and query the finished system across multiple documents.
Look at how far the system can scale and adapt, where it could be applied across industries, and where RAG technology is heading.

Instructor · LUNARTECH
Vahe Aslanyan is the CTO of LUNARTECH, and has helped hundreds of developers make sense of complex AI and data science and build better software with it.
Install Llama-Index and OpenAI and configure the workspace before you write a single query.
Build the RouterQueryEngine, then give each document type a query tool of its own.
Combine the tools in an agent worker and query it across several documents at once.
Before you start
A 3-day free trial opens a selection of the content. Your card is only charged once it ends.
While you learn
Stuck on a concept? Reach out to a mentor whenever you need help.
While you learn
On the yearly plan, one-on-one sessions give you dedicated support.
Any time
Write to info@lunartech.ai at any point, from your trial onwards. If your employer is funding you, we’ll set it up with them directly.
All the way through
After the last lesson
Your alumni network stays with you: ongoing support, opportunities and industry insight.
Tailored coaching helps you decide where to aim and how to get there.
Hands-on projects become work you can show, not just claim.
Personalized refinement, so what you send says what you can actually do.
Preparation for the questions that decide it, so you walk in ready.
Connections with industry leaders, and an alumni network that stays with you.
LUNARTECH Academy has been the most empowering learning experience of my life, giving me a clear, structured path from the absolute basics to building real-world AI systems with confidence.
Your page is fantastic. As a bachelor’s student in Data Science now accepted for a master’s at UConn, your work has been a real source of motivation.
The programme’s clear, bite-sized content and practical projects dramatically improved my speed from fuzzy idea to MVP and my ability to communicate AI value. I followed the system, and it works.
I really appreciate your teaching style and the way you break down complex topics. It has been incredibly helpful.
After years working mainly with R for econometrics, I found your Python machine learning course a refreshing and engaging way to learn Python.
As a Data Science graduate, I want to thank you for the effort you put into making videos to support growing data scientists.
I’ve been following your work since taking your machine learning course, and I’m impressed by your practical approach to applying AI.
One standard behind every course, from the first lesson to long after the last.
Apply every idea to real problems, so it becomes something you have used, not only seen.
We keep courses current with the tools, techniques and skills the field asks for.
Study at your own pace, from anywhere, at any hour.
Finish the course and earn a certificate that shows what you have learned.
Personalized learning plans and support structures carry you through the hard parts.
Stay connected after you finish, with ongoing support, opportunities and industry insight.
Finish the course and it is issued in your name, under our signature. There is no other way to get one.
Certificate of completion
One membership opens every course, certification, workshop and masterclass in the Academy. Every plan starts with a 3-day free trial.
3 days free, then $29.97 a month. Your card is only charged once the trial ends.
Included in every plan
Every role uses all six modules. Here’s where each one leans hardest, and where its work ends up.
Builds the query engines and the agent that drives them. Chooses how each document type gets retrieved.
Environment, Router, The agent
Knowledge management, Customer support
Wires Llama-Index and OpenAI into a working app. Tests the system against the documents it must read.
Environment, Router, Query tools, The agent
Document-heavy teams, Knowledge management
Prepares document sources so they can be retrieved. Plans for the system to grow with its data.
Query tools, Scale and future
Knowledge management, Research
Decides where an agentic RAG earns its place. Plans how the system scales and adapts.
Fundamentals, The agent, Scale and future
Document-heavy teams, Customer support
Builds the query engines and the agent that drives them. Chooses how each document type gets retrieved.
Over 10,000 students trust LUNARTECH
Understand systems all the way down. Build the ones others rely on.
Understand what the data says. Build models that hold up.
Understand the papers. Build on them, and take the work further.
+340%growth in open roles requiring AI skills
Open roles: Built In, Greenhouse, LinkedIn.
Typical salaries: Glassdoor, Levels.fyi, Payscale, Indeed, Ravio, JobRise, U.S. BLS. Military: 2026 U.S. basic pay, drone officers with aviation incentive pay.
Updated November 2026.
Need help? These answers cover most of what people ask before they start.
Python, with Llama-Index and OpenAI. You install the packages and configure your workspace in the second module.
Our 3-day free trial gives you access to a selection of content in the bootcamps, courses and materials, so you can experience the value of our content first-hand. This includes comprehensive learning materials and interactive sessions. You won’t be charged during this period, though we require your credit card details at the start to ensure a seamless transition should you choose to continue.
Yes, entering your credit card details is a necessary step to begin your free trial. The process is entirely secure, and we ask for it to provide a seamless transition to a paid subscription if you decide to continue beyond the trial. You will only be charged after the trial period ends, with full access to our content based on the plan you choose.
After your 3-day free trial you gain access to the full breadth of our content, depending on the subscription plan you choose. We offer free trials for our monthly, bi-annual and annual plans, and each plan provides a different scope of access and benefits.
If your employer has agreed to fund your learning, in part or in full, please contact us at info@lunartech.ai. We’ll work with you and your employer to set up everything needed for your subscription.
Yes. Our support remains strong both during your free trial and after you subscribe. Reach the team at info@lunartech.ai with any question, whether you’re onboarding, navigating your trial, or need help as a member. Subscribers to the yearly plan also receive dedicated support in one-on-one sessions.
You can upgrade your plan at any time during your subscription. Downgrading is not available for bi-annual or annual plans, but you can cancel and then choose a new plan that suits you better. For bi-annual and annual plans we also offer payment in instalments; please reach out to learn more.
Ten hours that take agentic RAG from setup to a working system across several documents. Begin with a free lesson, or enroll in the full course.