from beyondllm import source,retrieve,embeddings,llms,generator
Setup API key
import osfrom getpass import getpassos.environ['GOOGLE_API_KEY']=getpass('Put the Google API Key here')
Load the Source Data
Here we will use a sample powerpoint on Document Generation Using ChatGPT. You have to provide the path to your ppt file here
data = source.fit("path/to/your/powerpoint/file",dtype="ppt",chunk_size=512,chunk_overlap=51)
Embedding model
We have the default Embedding Model which is GeminiEmbeddings in this case. You will have to specify your API key as an environment variable named: GOOGLE_API_KEY
pipeline = generator.Generate(question="what is this powerpoint presentation about?",retriever=retriever)print(pipeline.call())
Output
The presentation focuses on exploring the depths of document generation using GPT-3.5. It entails a detailed walkthrough of the methodologies employed, shedding light on the current state, and presenting avenues for future advancements.