Challenge - 5 Problems
Parent-Child Retrieval Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Parent-Child Document Relationships
In a parent-child document retrieval system, what is the main purpose of establishing a parent-child relationship between documents?
Attempts:
2 left
💡 Hint
Think about how grouping related documents helps in searching.
✗ Incorrect
Parent-child relationships allow the system to retrieve child documents when querying the parent, improving search relevance and structure.
❓ Predict Output
intermediate2:00remaining
Output of Parent-Child Query in Elasticsearch
Given the following Elasticsearch query to find child documents with a parent of type 'article' having title 'AI Basics', what is the expected output count?
Prompt Engineering / GenAI
POST /my_index/_search
{
"query": {
"has_parent": {
"parent_type": "article",
"query": {
"match": { "title": "AI Basics" }
}
}
}
}Attempts:
2 left
💡 Hint
Focus on what 'has_parent' query does in Elasticsearch.
✗ Incorrect
'has_parent' returns child documents whose parent matches the query condition, so output count is child docs linked to parents titled 'AI Basics'.
❓ Model Choice
advanced2:30remaining
Choosing the Best Model for Parent-Child Document Retrieval
Which model architecture is best suited for learning hierarchical relationships in parent-child document retrieval tasks?
Attempts:
2 left
💡 Hint
Consider models that can represent relationships between entities.
✗ Incorrect
GNNs naturally model nodes and edges, making them ideal for hierarchical parent-child document relationships.
❓ Metrics
advanced2:30remaining
Evaluating Retrieval Performance for Parent-Child Queries
Which metric best measures the quality of retrieving child documents given a parent document query in a parent-child retrieval system?
Attempts:
2 left
💡 Hint
Think about metrics that evaluate ranked retrieval results.
✗ Incorrect
MAP measures how well the system ranks relevant child documents higher, which is key in retrieval tasks.
🔧 Debug
expert3:00remaining
Debugging a Parent-Child Retrieval Query Returning No Results
You run a parent-child query in your system but get zero results, even though you know matching documents exist. Which is the most likely cause?
Attempts:
2 left
💡 Hint
Consider how parent-child relationships depend on indexing structure.
✗ Incorrect
Parent-child queries require both document types in the same index with join relationships; separate indices cause no matches.