#define user query input = 'What are the most recent advancements in computer vision?' #RAG output actual_output = rag.invoke(input)['result'] #contexts used from the retriver retrieved_contexts = [] for el in range(0,3): retrieved_contexts.append(rag.invoke(input)['source_documents'][el].page_content) #expected output (example) expected_output = 'Recent advancements in computer vision include Vision-Language Models (VLMs) that merge vision and language, Neural Radiance Fields (NeRFs) for 3D scene generation, and powerful Diffusion Models and Generative AI for creating realistic visuals. Other key areas are Edge AI for real-time processing, enhanced 3D vision techniques like NeRFs and Visual SLAM, advanced self-supervised learning methods, deepfake detection systems, and increased focus on Ethical AI and Explainable AI (XAI) to ensure fairness and transparency.'