I have gone through the course " LangChain Chat with Your Data".
It’s really good but scripts are not working as said for YouTube video search in LLM.
from langchain.llms import OpenAI
from langchain.embeddings import OpenAIEmbeddings
from langchain_openai import OpenAIEmbeddings
from langchain.document_loaders.generic import GenericLoader
from langchain.document_loaders.parsers import OpenAIWhisperParser
from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader
url=“https://www.youtube.com/watch?v=Xo3KBoEMDEo&list=PLG2_S6yzON5f4T3kSAkkeMlTBMTAtsLrz”
save_dir=“”/Users/name/Documents/Lekha/docs/youtube"
loader = GenericLoader(
YoutubeAudioLoader([url],save_dir),
OpenAIWhisperParser()
)
docs = loader.load()
I am trying from MacBook. Getting following error.
DownloadError: ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location