Imagine you want to create a virtual assistant that talks like a real person. Which GenAI application would you choose?
Think about which type of data sounds like human voice.
Audio generation models create realistic speech sounds, making them ideal for virtual assistants that talk.
Given the following code using a GenAI text model, what will be the output?
prompt = "Hello, how are you?" response = genai_text_model.generate(prompt) print(response)
The model continues the text prompt with a natural response.
The text generation model takes the prompt and produces a natural language continuation.
You want to generate a detailed painting from a sentence like "A sunset over mountains." Which model type should you use?
Think about which model creates pictures.
Image generation models convert text descriptions into images, perfect for artwork creation.
You have a GenAI model that writes code. Which metric helps measure how well the generated code works?
Think about comparing generated text to a known correct version.
BLEU score measures similarity between generated and reference code, useful for code generation quality.
Consider this code snippet for generating audio with a GenAI model. What error will it raise?
audio = genai_audio_model.generate(text_input='Hello world') print(audio.shape)
Check if the generate method returns a valid audio object.
If the generate method returns None (e.g., due to missing model setup), accessing .shape causes AttributeError.