Chapter 05
rag cleaned
Notebookllm-zoomcamp-2026-code5 cells
In [4]python · cell 1
python
from rag_helper import RAGBase
from ingest import load_faq_data, build_indexIn [5]python · cell 2
python
from dotenv import load_dotenv
load_dotenv()
from openai import OpenAI
openai_client = OpenAI()In [8]python · cell 3
python
documents = load_faq_data()
index = build_index(documents)
assistant = RAGBase(index, openai_client)In [9]python · cell 4
python
assistant.rag('I just discovered the course, can I still join?')Output
'Yes, you can still join. If you want to receive a certificate, you need to submit your project while submissions are still open.'
In [ ]python · cell 5
python
