Challenge - 5 Problems
Short-term Memory Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Short-term Memory in Conversation Context
Which of the following best describes the role of short-term memory in conversation context for an AI agent?
Attempts:
2 left
💡 Hint
Think about how an AI keeps track of what was just said to respond properly.
✗ Incorrect
Short-term memory in conversation context temporarily holds recent information to help the AI understand and respond appropriately during an ongoing interaction.
❓ Model Choice
intermediate1:30remaining
Choosing a Model for Short-term Memory in Dialogue
Which model architecture is best suited for capturing short-term memory in conversation context?
Attempts:
2 left
💡 Hint
Consider models designed to handle sequences and remember recent inputs.
✗ Incorrect
RNNs with gated units like LSTM or GRU are designed to remember recent inputs, making them suitable for short-term memory in conversations.
❓ Metrics
advanced2:00remaining
Evaluating Short-term Memory Effectiveness
Which metric would best help evaluate how well an AI model retains short-term conversation context?
Attempts:
2 left
💡 Hint
Think about measuring how much recent relevant information is captured in the output.
✗ Incorrect
Recall measures how many relevant recent context tokens are included in the AI's response, indicating how well short-term memory is used.
🔧 Debug
advanced2:00remaining
Debugging Short-term Memory Loss in Conversation
An AI agent forgets the last user question immediately after responding. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Consider what happens if the memory holding recent conversation is reset too soon.
✗ Incorrect
If the short-term memory buffer is cleared after each response, the AI loses recent context and forgets the last user question.
❓ Predict Output
expert2:30remaining
Output of Short-term Memory Simulation Code
What is the output of this Python code simulating short-term memory with a fixed-size queue?
Agentic AI
from collections import deque memory = deque(maxlen=3) inputs = ['Hi', 'How are you?', 'What is AI?', 'Tell me a joke'] outputs = [] for inp in inputs: memory.append(inp) outputs.append(list(memory)) print(outputs)
Attempts:
2 left
💡 Hint
Remember that deque with maxlen drops oldest items when full.
✗ Incorrect
The deque holds up to 3 items. After adding the fourth input, the oldest ('Hi') is removed, so the last list contains the last three inputs.