Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Session 11: Advanced Retrieval with LangChain

📰 Session Sheet ⏺️ Recording 🖼️ Slides 👨‍💻 Repo 📝 Homework 📁 Feedback
Advanced Retrievers Recording!
passcode: ?aLJ0gG^
Session 11 Slides You are here! Session 11 Assignment: Adv. Retrievers Feedback 2/17

Prerequisites

Create a .env file in this directory with your API keys:

OPENAI_API_KEY=your_openai_api_key_here
COHERE_API_KEY=your_cohere_api_key_here
  1. Run uv sync to install dependencies.

Build 🏗️

Run the notebook and complete the following:

  • 🤝 Breakout Room Part #1
    • Task 1: Getting Dependencies!
    • Task 2: Data Collection and Preparation
    • Task 3: Setting Up QDrant!
    • Tasks 4-10: Retrieval Strategies
      • Naive RAG Chain
      • Best-Matching 25 (BM25)
      • Contextual Compression (Using Reranking)
      • Multi-Query
      • Parent Document
      • Ensemble
      • Semantic Chunking
  • 🤝 Breakout Room Part #2
    • Activity: Evaluate with Ragas
🚧 Advanced Build 🚧 (OPTIONAL - open this section for the requirements)

NOTE: This can be done in place of the Main Assignment

Implement RAG-Fusion using the LangChain ecosystem.

When submitting, provide:

  • Your Loom video link demonstrating the semantic chunking implementation
  • The GitHub URL to your completed Advanced Build

Have fun!

Ship 🚢

  • The completed notebook.
  • 5min. Loom Video

Share 🚀

  • Walk through your notebook and explain what you've completed in the Loom video
  • Make a social media post about your final application and tag @AIMakerspace
  • Share 3 lessons learned
  • Share 3 lessons not learned

Submitting Your Homework

Main Homework Assignment

Follow these steps to prepare and submit your homework:

  1. Pull the latest updates from upstream into the main branch of your AIE9 repo:
    • (You should have completed this process already.) For your initial repo setup, see Initial_Setup
    • To get the latest updates from AI Makerspace into your own AIE9 repo, run the following commands:
    git checkout main
    git pull upstream main
    git push origin main
    
  2. IMPORTANT: Start Cursor from the 11_Advanced_Retrieval folder (you can also use the File -> Open Folder menu option of an existing Cursor window)
  3. Answer Questions 1 - 3 using the ##### Answer: markdown cell below them in Advanced_Retrieval_with_LangChain_Assignment.ipynb
  4. Complete Activity #1 in Advanced_Retrieval_with_LangChain_Assignment.ipynb
  5. Add, commit and push your modified notebooks to your GitHub repository.

When submitting your homework, provide:

  • Your Loom video link
  • The GitHub URL to the 11_Advanced_Retrieval folder on your assignment branch