πQuickstart Guide
Chat with YouTube Video
Approach-1: Using Default LLM and Embeddings
from beyondllm import source,retrieve,generator
from getpass import getpass
import os
os.environ['GOOGLE_API_KEY'] = getpass("Your Google API Key:")
data = source.fit("https://www.youtube.com/watch?v=oJJyTztI_6g",dtype="youtube",chunk_size=512,chunk_overlap=50)
retriever = retrieve.auto_retriever(data,type="normal",top_k=3)
pipeline = generator.Generate(question="what tool is video mentioning about?",retriever=retriever)
print(pipeline.call())Approach-2: With Custom LLM and Embeddings
Core Concepts
Load the document
Embeddings
Auto Retriever
LLM
Generator
Evaluation
Evaluate Embeddings
Evaluate LLM Response
Last updated