Google, IBM & Meta Certificates — 40% Off for a Limited Time
Finance Certifications Goldman Sachs & Amazon Teams Trust
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore essential data preparation techniques for Large Language Models in this comprehensive tutorial video. Learn how to effectively use LangChain data loaders, tokenize text with tiktoken tokenizers, implement chunking strategies using LangChain text splitters, and store data using Hugging Face datasets. Gain practical insights into preparing text for OpenAI embedding and completion models, with principles applicable to other LLMs like those from Hugging Face and Cohere. Follow along as the instructor demonstrates downloading LangChain documentation, utilizing document loaders, determining optimal text lengths for LLMs, and implementing recursive text splitting with chunk overlap. Discover the importance of proper data preparation and learn how to create, save, and load datasets using JSONL files.
Syllabus
Data preparation for LLMs
Downloading the LangChain docs
Using LangChain document loaders
How much text can we fit in LLMs?
Using tiktoken tokenizer to find length of text
Initializing the recursive text splitter in Langchain
Why we use chunk overlap
Chunking with RecursiveCharacterTextSplitter
Creating the dataset
Saving and loading with JSONL file
Data prep is important
Taught by
James Briggs