Choose a search query for a catalog
Keep action verbs and their objects together. · 175 words
Read the catalog's field names and sample records before writing a query. If it has a Title field and one record titled 'Blue Harbor Map,' use title:"Blue Harbor Map". Quoting keeps the words together instead of matching any harbor word with any map word. Source details make the result checkable: if M-17 is the only item with that exact title, the query should return M-17. Prompt: 'Search the travel catalog for the exact title Blue Harbor Map. Return the record ID, title, and location, and show the query used.'
Now compare exact title with a broader subject. Suppose M-17, 'Blue Harbor Map,' is tagged coastal maps, while M-22, 'Harbor Walking Tour,' is tagged walking tours. A customer who wants a coastal map could use subject:"coastal maps", but M-22 should not appear. Ask: 'Use the subject field to find records tagged coastal maps. Return IDs and name the matching field.' If no other record has that tag, the checkable output is M-17 only. Good prompts name the field, quote exact phrases, and state what should appear.
Check your recall
What exact-title query should retrieve record M-17, and what output confirms that it worked?
Check your answer
Use title:"Blue Harbor Map". A successful result includes M-17 with its title and location, and it excludes records without that exact title.
Sources and credits
Original KeyTouch lesson. Background reading · Microsoft · Generative AI for Beginners.