AIE3-Midterm / HW.md
Mikiko Bazeley
Added additional env vars & Airbnb data
5fb28fd

HW 7: Solutions

Deliverables

  • Completed Notebook
  • Chainlit Application in a Hugging Face Space Powered by Hugging Face Endpoints
  • Screenshot of endpoint usage

Completed notebook

Located here Also on HF space

Chainlit Application

Link to Chainlit App in HuggingFace Space

Screenshots

The chat

alt text

The trace

alt text

The endpoints

alt text

The LLM model endpoint

alt text

The embeddings model endpoint

alt text

The Loom video

https://www.loom.com/share/162d71e4d445442faa40dba76f4cbf13

Lessons Learned & Open Questions

Lessons

  1. Learning how to translate notebook code into scripts.
  2. Learning/reminder that HF spaces can be used in dev mode and connected to VSCode.
  3. Learning how to setup LCEL RAG Chain.
    • Understand how to deploy open-source LLMs & embedding models to scalable endpoints for production-grade LLM & RAG applications
    • Build a RAG application with LCEL
    • Build a front-end UI for RAG applications with Chainlit

Questions

  1. What are the challenges using LangChain in production - see lots of folks complaining about it on LinkedIn and Twitter.
  2. What complex RAG looks like.
  3. Have a basic understanding of the metrics used to monitor performance but still a novice with regards to LLM evals.