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
Here is a list of the questions asked above that are not specifically related to any project:
Given an example and output schema, give me the steps that you'll follow to get the output.
How will you reduce latency?
How will you calculate the accuracy of the system and make sure that it adheres to the schema?
How do you enforce JSON schema on the output of LLM?
How do you measure latency of LLMs?
How do you evaluate two sets of embeddings?
How would you extract the tables from the PDF document?
How do you measure the latency of LLMs?
How to get the desired schema in the output?
How to compare two LLMs?
Write a validation function that can validate the citations generated from raw text.
How to evaluate LLMs?
How to restrict LLM to output in a specified format and how to validate that?
How to evaluate the RAG pipeline?
What metrics are there in RAGAS?
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)
"
" 1) Explain the brief into in this fashion:
Projects undertaken -> Specify if they were Gen AI project -> Technical details about the project -> Challenges faces -> Steps taken to mitigate them
2) Write a validation function in function which can validate the citations generated from the raw text given below. The function should perform two tasks generated percentage match in the raw text chunk and validations of how truthful the groundnesses is.( without using LLM)"
"1)Projects undertaken -> Technical details about the project -> Challenges faces -> Steps taken to mitigate them
2)How to evaluate 2 llm on latency
3) how to restrict llm to output in specified format and how to validate that"
"1) Intoruction
2) Brief explanantion on the projects undertaken and follow up questions on those.
3) How to measure latency of LLMs
4) How to evaluate LLMs?
5) code/psudeo code for question 3 &4 from the doc https://docs.google.com/document/d/15zhD4xt5PKImhlNuYylTbxmrme4-FQ1n-mI7ZqwvniQ/edit"
"1) Introduction
2) What were the projects ?
3) how did you convert words in to embeddings for KMeans
4) Code for content Variety Score for Churn Prediction"
"1)brief regarding projects,
2) challenges faced in projects and how did you overcome challenges
3) write code for llm response validation using pydantic
4) how to evaluate rag model
5) metrics to evaluate latency of 2 llms"
"1) Introduction
2) Projects
3) Question related to reson behind the tech stack for the projects
4) How to Evaluate RAG
5) Formula ro context precison
6) Write a code to evaluate citation and the answers given by the LLM based on the raw context"
give a list of questions asked above other than questions related to any project
Explain the Context_precision metric.
What is Reciprocal Rank Fusion?
How can you do text extraction from PDF, especially tables and images?
How will you write a prompt that can generate exactly 2000 words for an essay on a given topic?
How to evaluate RAG?
Write code for content variety score for churn prediction.
How to evaluate citation and the answers given by the LLM based on the raw context?