Which of the following best describes why memory modules are important in personal assistant agents?
Think about how remembering past conversations helps a friend assist you better.
Memory modules help personal assistant agents keep track of previous user inputs and context, enabling more relevant and personalized responses.
You want your personal assistant agent to manage calendar events and reminders effectively. Which model architecture is best suited for this task?
Consider models good at understanding and generating sequences of text.
Sequence-to-sequence models with attention are effective for converting user commands into structured data like calendar events.
Which metric is most appropriate to evaluate how well a personal assistant agent understands and responds to user queries?
Think about comparing text outputs to expected answers.
BLEU score is commonly used to evaluate the quality of generated text by comparing it to reference responses, suitable for personal assistant outputs.
Given the following simplified dialogue state update code snippet, what is the main issue causing the agent to lose track of user context?
def update_state(state, user_input):
if 'reset' in user_input:
state = {}
else:
state['last_input'] = user_input
return state
state = {'last_input': 'hello'}
state = update_state(state, 'what is my schedule?')
state = update_state(state, 'reset')
state = update_state(state, 'do I have meetings?')
print(state)Consider how Python handles variable assignment inside functions.
Reassigning the state variable inside the function creates a new local dictionary, but the caller's state remains unchanged, causing context loss.
You are training a reinforcement learning agent to schedule tasks for users. Which hyperparameter adjustment is most likely to improve the agent's ability to balance immediate and future rewards?
Think about how the agent values rewards over time.
The discount factor controls how much future rewards influence decisions. Increasing it helps the agent consider long-term benefits.
