BEST OPEN Alternative to OPENAI's EMBEDDINGs for Retrieval QA: LangChain

11 May 2023 · 24 min
24:21

This is a technical YouTube tutorial (by LARRUZ) demonstrating and comparing open-source Instructor embeddings (via Hugging Face / LangChain) against OpenAI embeddings for retrieval-augmented QA. The presenter shows an end-to-end pipeline: loading PDFs (GPT4All technical reports), chunking into ~1,000-token pieces with 200-token overlap, computing embeddings (Instructor and OpenAI), storing them in a vector store (FAISS/files), creating retrieval-based retrievers (top-k=3), and using OpenAI's DaVinci as the LLM to generate answers from retrieved context. The video runs experiments (authors, training procedure, cost, license, dataset size) and concludes that Instructor embeddings produce competitive results; a follow-up video will replace DaVinci with an open-source LLM.

Questions this video answers

About 1,000-token chunks with a 200-token overlap.

Around 512.

About 5 gigabytes (downloaded once and stored locally/drive).

Three (top-k = 3).

He cites about $800 in OpenAI credit and $100 for Lambda Labs GPUs (from one report); an alternative OpenAI-embedding-based result mentioned $200 in another passage.

Chapters

More from LARRUZ

8:49
youtube.com

OpenAI’s New AI Is Doing Things We Barely Understand

3d ago
5:38
youtube.com

DeepSeek Solved AI’s Memory Problem

5d ago
33:17
youtube.com

DeepMind's New AI Just Cracked The Code Of Life

1w ago
3:43
youtube.com

The Billion Dollar AI Advantage Is Disappearing

1w ago
5:14
youtube.com

Claude Opus 5.5 AI: An Incredible Leap Forward

3w ago
5:16
youtube.com

Yes, Jev Is Insane, But There's A Catch

3w ago
5:11
youtube.com

DeepSeek’s Insane New Architecture

4w ago
4:16
youtube.com

Claude Is Now Leaving Invisible Fingerprints In Its Text

1mo ago
9:18
youtube.com

I Never Thought I’d See This Happen

1mo ago
5:22
youtube.com

GPT-6 Astra Changes Everything

1mo ago
4:55
youtube.com

Claude Fable AI Is Much Stranger Than The Headlines Suggest

1mo ago
See all content