Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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