ADDO AI interview question

How does a RAG pipeline work? On what basis do we perform chunking?