Insights using Google Gemini for Summarization and Retrieval
Skills:
LLM Foundations70%
Key Takeaways
Demonstrates Google Gemini for summarization and retrieval-augmented generation
Full Transcript
I'd like to present two use cases that highlight the value of Weights Andes weave combined with the powerful large language model Gemini Pro the first use case is summarization of long documents many of our customers face time constraints but need to process a lot of information this is where Gemini's large context window becomes particularly beneficial the Second Use case is the Morgan Stanley research rack model many customers use retrieval augmented generation to access and respond to questions related to proprietary or internal documents let's start with the summarization use case we can see the model is defined in weave where we can see all the parameters including the model name which refers to Gemini 1.5 Pro latest checkpoint the promt template uh in the summary model refers to a Json schema we can also see Json schema stored as one of the input parameters into the model we can see uh a title and a summary that we want to get uh as an output of the model we also see that um the summary should be a plain short text without markdown and we can also see that the prompt refers to the length of the document which which should be less than 200 words defining these requirements in the prompt is good but evaluating your llm application against these requirements builds confidence that the model actually meets them by defining your model in weave you can easily reference and deploy it for example on gcp these setups provide a valuable observability by storing all your model call we can see all the calls to our predict method and inspect the inputs and the outputs and see how the model is doing now for the evaluation we want to check that our summary um is generated according to the defined schema and is less than 200 words we have a data set of 18 long papers and evaluate our model on two metrics uh the formatting and the conciseness we check if the formatting meets our requirements and if the word count stays within our set limit we can see that we achieve around 89% accuracy uh on both metrics but we need to dig deeper to understand where the model fails in most cases uh the model meets our requirement but it fails in two instances when we inspect um these instances where the model is failing and we can see that the problem is with uh the predict method and the error that we're facing is 504 deadline exceeded error and that tells me that uh whenever we actually reach uh the model API it responds reliably but in some cases We are failing to reach the API properly and that means that's something that related to our setup for example our um request quota might require an increase and by uh looking at our evaluation in this way we can see where our application might um require an improvement and we can get better results over time the Second Use case uh involves the Morgan Stanley research rack model here we use the predict method um and highlight how easy it is to instrument with in your code um you can see that um instrumenting we is as simple as adding at weave. op decorator to the functions you want to trace in this case we are dealing with a simple uh predict function but in many cases you will have nested functions and as you decorate each of these nested functions in weave you will get a detailed Trace that will allow you to debug where your application is failing if we go back to the call and we can see that a question that a user asked uh is actually not responded by the model and that's something that we might want to check in detail and understand what's Happening Here we can see one of the input parameters at context is set to false and if we look at the code again we can see by setting this parameter to false we're actually not benefiting from any uh context document that uh might uh might need to be added to the to the prompt so in this case the model does not have any insight into how to answer the user question and it properly responds I didn't no if you look at one of the other instances where uh the same uh method is called uh with the same question but now uh our context argument is set to true we can now see that um the model was able to properly respond to this question in summary adding weave to your llm application is super forward by using the at we. op decorator you get powerful observability you can save uh data sets you can save models you can save evaluations and that allows you to build llm applications with a better productivity and deploy them with confidence that you're actually meeting your user requirements and solving uh the right business problems
Original Description
Google Gemini Pro’s large context window helps developers with summarizing lengthy documents and discovering answers across many documents through retrieval-augmented generation.
See how Weights & Biases Weave enables straightforward implementation and robust observability, delivering critical insights and ensuring your GenAI-powered applications perform reliably.
Try Weave today: www.wandb.me/weave
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Weights & Biases · Weights & Biases · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
0. What is machine learning?
Weights & Biases
1. Build Your First Machine Learning Model
Weights & Biases
Intro to ML: Course Overview
Weights & Biases
2. Multi-Layer Perceptrons
Weights & Biases
3. Convolutional Neural Networks
Weights & Biases
Weights & Biases at OpenAI
Weights & Biases
Why Experiment Tracking is Crucial to OpenAI
Weights & Biases
4. Autoencoders
Weights & Biases
5. Sentiment Analysis
Weights & Biases
6. Recurrent Neural Networks [RNNs]
Weights & Biases
7. Text Generation using LSTMs and GRUs
Weights & Biases
8. Text Classification Using Convolutional Neural Networks
Weights & Biases
9. Hybrid LSTMs [Long Short-Term Memory]
Weights & Biases
Toyota Research Institute on Experiment Tracking with Weights & Biases
Weights & Biases
Weights and Biases - Developer Tools for Deep Learning
Weights & Biases
Introducing Weights & Biases
Weights & Biases
10. Seq2Seq Models
Weights & Biases
11. Transfer Learning for Domain-Specific Image Classification with Small Datasets
Weights & Biases
12. One-shot learning for teaching neural networks to classify objects never seen before
Weights & Biases
13. Speech Recognition with Convolutional Neural Networks in Keras/TensorFlow
Weights & Biases
14. Data Augmentation | Keras
Weights & Biases
15. Batch Size and Learning Rate in CNNs
Weights & Biases
Applied Deep Learning Fellowship Overview and Project Selection with Josh Tobin (2019)
Weights & Biases
Grading Rubric for AI Applications with Sergey Karayev (2019)
Weights & Biases
16. Video Frame Prediction using CNNs and LSTMs (2019)
Weights & Biases
Image to LaTeX - Applied Deep Learning Fellowship (2019)
Weights & Biases
17. Build and Deploy an Emotion Classifier (2019)
Weights & Biases
Applied Deep Learning - Data Management with Josh Tobin (2019)
Weights & Biases
Snorkel: Programming Training Data with Paroma Varma of Stanford University (2019)
Weights & Biases
Applied Deep Learning - Troubleshooting and Debugging with Josh Tobin (2019)
Weights & Biases
Troubleshooting and Iterating ML Models with Lee Redden (2019)
Weights & Biases
Designing a Machine Learning Project with Neal Khosla (2019)
Weights & Biases
Lukas Beiwald on ML Tools and Experiment Management (2019)
Weights & Biases
Building Machine Learning Teams with Josh Tobin (2019)
Weights & Biases
Pieter Abeel on Potential Deep Learning Research Directions (2019)
Weights & Biases
Testing and Deployment of Deep Learning Models with Josh Tobin (2019)
Weights & Biases
Five Lessons for Team-Oriented Research with Peter Welder (2019)
Weights & Biases
Applied Deep Learning - Rosanne Liu on AI Research (2019)
Weights & Biases
Making the Mid-career Leap from Urban Design to Deep Learning/Data Science
Weights & Biases
Organizing ML projects — W&B walkthrough (2020)
Weights & Biases
Brandon Rohrer — Machine Learning in Production for Robots
Weights & Biases
Nicolas Koumchatzky — Machine Learning in Production for Self-Driving Cars
Weights & Biases
My experiments with Reinforcement Learning with Jariullah Safi
Weights & Biases
Applications of Machine Learning to COVID-19 Research with Isaac Godfried
Weights & Biases
Testing Machine Learning Models with Eric Schles
Weights & Biases
How Linear Algebra is not like Algebra with Charles Frye
Weights & Biases
Predicting Protein Structures using Deep Learning with Jonathan King
Weights & Biases
Rachael Tatman — Conversational AI and Linguistics
Weights & Biases
Reformer by Han Lee
Weights & Biases
Sequence Models with Pujaa Rajan
Weights & Biases
GitHub Actions & Machine Learning Workflows with Hamel Husain
Weights & Biases
Look Mom, No Indices! Vector Calculus with the Fréchet Derivative by Charles Frye
Weights & Biases
Jack Clark — Building Trustworthy AI Systems
Weights & Biases
Surprising Utility of Surprise: Why ML Uses Negative Log Probabilities - Charles Frye
Weights & Biases
Track your machine learning experiments locally, with W&B Local - Chris Van Pelt
Weights & Biases
Antipatterns in open source research code with Jariullah Safi
Weights & Biases
Attention for time series forecasting & COVID predictions - Isaac Godfried
Weights & Biases
Made with ML - Goku Mohandas
Weights & Biases
Angela & Danielle — Designing ML Models for Millions of Consumer Robots
Weights & Biases
Deep Learning Salon by Weights & Biases
Weights & Biases
More on: LLM Foundations
View skill →Related Reads
📰
📰
📰
📰
Will Developers Need LLM Integration Skills in 2026 for Success?
Dev.to AI
I Trained a 471M-Parameter Language Model From Scratch on One RTX 4090 in 100 Hours.
Medium · LLM
Masking PII Without Losing It
Medium · LLM
Build a Career in Artificial Intelligence : AI Mastery Course in Telugu
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI