Questions
"1. Introduction and touch up on gen ai use cases worked
2. Given an example and output schema, Give me the steps that youll follow to get the output
3. How will you reduce latency
4. How will you calculate accuracy of System & make sure that its adheres to schema"
"1. Introduction
2. A free text input containing hashtags, emoticons, and mixed content was provided. The task for the Large Language Model (LLM) was to extract specific information (such as product names) and conduct sentiment analysis. The output had to be formatted in a structured JSON format that included the product name and sentiment, categorized as positive (+), negative (-), or neutral.
prompt
system
instructions
examples
parameters/settings
systematic experimentation
force format adherence"
"1. Introduction and touch up on gen ai use cases worked
Project specific question - Challenges faced
Give sample product review, desired output.
3.1 Experiments to find best value for temp, max o/p, top p, top k
3.2 Evaluation metrics of the output
3.3. Output Validation"
Introduction 2. How do you enforce json schema on the output of LLM 3. How do you measure latency of LLM ?
Introduction 2. How will you finalize a model for your use case (based on one of the project i have worked on) 3. Yesterdays question on how we can get the desired schema 4. How can you do text extraction from PDF especially tables and images from PDF 5. How do you measure latency of LLMs?
"1. Introduction
How you will evaluate 2 set of embeddings
How would you extract the tables from the PDF document?
How do you measure the latency of LLMs?"
"1. Introduction
How to get the desired schema in the output?
How would you extract the tables from the PDF document?
How do you measure the latency of LLMs?"
Intro 2.Asked to me explain the projects in details 3.How you will evaluate 2 set of embeddings from 2 different model for a flipkart where a creatin item is listed on 1 page and from 2nd model on 4th page , how is the recommendation working?
"1. Intro
Project Related Questions (model deployment, Embedding search, evaluation)
Write a logic to get data from kafka transaction stream and find the traffic for particular zipcode in lasr 30 minutes
Write a logic to find a score of varienty of content user is watching based on his recent behaviour
ever worked on streamlit?"
"1. Introduction
Started with Traditional ML project with detailed explanation - What was the problem? , Which Model we have used?
Gen AI project discussion - Architecture Discussion
Which technologies you have used?
Assistant
How would you evaluate RAG pipeline?
What all the metrics are there in RAGAS?
6.1 Explain Context_precision metric.
What is Reciprocal Rank Fusion ?
How would you extract the Graphs and tables from the PDF document?
How will you write a prompt that can generate exactly 2000 Words for an essay on a given topic Eg. “Bertrand Russel’s - a history of western philosophy” Not the complete prompt just restrict LLM to write essay exaclty with 2000 words"
"1. Introduction
Most challenging technical task faced
Question related to feature engineering:
Feature Creation Challenge: Content Variety Score for Churn Prediction
You are working on a churn prediction model for a streaming TV service. You suspect that users who watch a wider variety of content are less likely to churn. You have access to the following ""Watch Data"":
Field Name
Data Type
Description
client_id
Integer
Unique identifier for the customer
start_time
Integer
Unix timestamp of the viewing session start
program_id
String
Unique identifier for the program watched
minutes_watched
Integer
Number of minutes watched
thumbs_up
String
User feedback ('Y' for yes, 'N' for no, null for no feedback)
Your task: Design and describe a single feature, called content_variety_score, that quantifies the diversity of content watched by each user. This feature should be designed in such a way that a higher score indicates greater variety in viewing habits.
Consider the following in your design:
Time Decay: Recent viewing patterns should be weighted more heavily than older viewing patterns. How will your feature incorporate the start_time information to reflect this?
Scale and Normalization: The feature should be comparable across users, regardless of how much they watch overall. How will you ensure the score is appropriately scaled and normalized?
Deliverables:
A precise definition of the content_variety_score. Include a formula or pseudocode that clearly demonstrates how it is calculated.
"
"1. Introduction.
2. Explained project.
3. How to compare two LLM's
Question 1:
Example Data Stream (Illustrative - Freeform Text Snippets):
Freeform Text:
Context:
""OMG, the new ✨SparklePhone Pro✨ is AMAZING! 😍 The camera is insane. #SparklePhone #BestPhoneEver"" ""Just got my SparklePhone Pro, and the battery life is terrible. 😠 Two hours and it's dead. Don't buy! #SparklePhone #TechFail"" ""Anyone know if the SparkleWatch has GPS? 🤔 Thinking of getting one for running. #SparkleWatch #FitnessTracker"" ""SparkleTab is on sale! 🎉 $299 for the 128GB model. Such a steal! #SparkleTab #TabletDeals"" ""The SparklePhone Pro's camera is 🔥🔥🔥. So much better than my old phone. #SparklePhone #Photography"" ""SparkleWatch is great for tracking my workouts! 💪 #SparkleWatch #FitnessMotivation"" ""Hate the SparkleTab's keyboard. So clunky. 😒 #SparkleTab #TechProblems"" …
Output Rules:
Must be List of JSON / Dicts of products
Each product must have the fields sentiment, mentions, product
Sentiment must be [positive, negative or neutral]
Mentions must be an Integer , must be >= 0
List length can be variable
Product cannot be made up
Goal is to
Format & rules must be adhered to at all costs
reduce Perceived latency to the least ‘ms’ possible
PROMPT:
SYSTEM : You are expert in extracting information from text
INSTRUCTIONS: Carefully read the paragraph and extract product name and sentiment.
Output format should be :
EXAMPLES :
This will be the example of input format .
""OMG, the new ✨SparklePhone Pro✨ is AMAZING! 😍 The camera is insane. #SparklePhone #BestPhoneEver"" ""Just got my SparklePhone Pro, and the battery life is terrible. 😠 Two hours and it's dead. Don't buy! #SparklePhone #TechFail"" ""Anyone know if the SparkleWatch has GPS? 🤔 Thinking of getting one for running. #SparkleWatch #FitnessTracker"" ""SparkleTab is on sale! 🎉 $299 for the 128GB model. Such a steal! #SparkleTab #TabletDeals"" ""The SparklePhone Pro's camera is 🔥🔥🔥. So much better than my old phone. #SparklePhone #Photography"" ""SparkleWatch is great for tracking my workouts! 💪 #SparkleWatch #FitnessMotivation"" ""Hate the SparkleTab's keyboard. So clunky. 😒 #SparkleTab #TechProblems"" …
based on this output should be like:
[
{""product"": ""SparklePhone Pro"", ""sentiment"": ""positive"", ""mentions"": 2},
]
Based on user input
PARAMETERS / SETTINGS:
Temp : 0
Max_Tokens 1024
Top_P : 0.9
Top_K: 0.1
Freq/Presence_Penalty
....
SYSTEMATIC EXPERIMENTATION
FORCE FORMAT ADHERENCE={
""product"":{
type:str},
sentiment:{type:str},
mentions:
}
import ast
ast.litral_eval(response)
"
analyse the questions and find out what skills they are looking at
The questions listed suggest that the interviewer or evaluator is looking for a range of skills and knowledge in the realm of data science, particularly with a focus on Generative AI, Natural Language Processing (NLP), Large Language Models (LLMs), and associated technical considerations. Here is an analysis of the skills and knowledge areas they are likely targeting:
Understanding of Generative AI Use Cases:
Ability to discuss and explain use cases where generative AI can be applied effectively.
Experience with deploying generative AI for practical applications.
Technical Proficiency in LLMs:
Understanding of LLMs and their application for text processing, including sentiment analysis and information extraction.
Knowledge of how to enforce schema adherence in output from LLMs.
Familiarity with adjusting LLM parameters (temperature, max output, top-p, top-k) for optimal performance.
Latency Reduction Techniques:
Understanding techniques to minimize latency in LLM responses to ensure efficient processing and response times.
Accuracy and Evaluation:
Ability to measure and evaluate the accuracy of models, particularly LLMs.
Knowledge of using evaluation metrics for model performance, such as those in Retrievable Augmented Generation (RAG) and RAGAS.
Techniques for comparing different models, including embeddings evaluations and more traditional ML evaluations.
Schema Enforcement and Output Validation:
Skills in ensuring LLM outputs adhere to specified schemas, which could involve using systematic experimentation or format validation tools like ast.literal_eval.
Working with Structured Data:
Competency in extracting structured information like tables and graphs from complex documents such as PDFs.
Data Stream Processing:
Experience with processing real-time data streams, potentially using platforms like Kafka, for tasks such as traffic analysis.
Feature Engineering for ML:
Ability to create robust features for models, such as designing a content variety score based on user behavior data for churn prediction.
Incorporating concepts like time decay and normalization into feature engineering.
Implementation Skills:
Capability to write logic and algorithms for specific applications, such as calculating scores based on user behavior or performing sentiment analysis from freeform text.
Modern Tools and Platforms:
Experience with modern data science tools, such as Streamlit.
Familiarity with systems for deploying and managing AI models.
Overall, the questions reflect an interest in both theoretical knowledge and practical skill with AI and data science tools, emphasizing the ability to design, implement, and evaluate AI systems effectively.