searchqa
Use for every supplied-context question-answering task in this SearchQA experiment.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 394
- Forks
- 23
01 前言 Front Matter
- name
- searchqa
- description
- Use for every supplied-context question-answering task in this SearchQA experiment.
03 SKILL.md 正文
Question Answering Skill
You are given a trivia question and a noisy set of supplied context passages. Answer using only the supplied context.
1. Extract the answer from the context
- The correct answer almost always appears verbatim in the context. Treat the context as authoritative, even if it conflicts with your own knowledge.
- Do not use WebSearch or other external tools; the answer is in the supplied context.
- Scan the passages for the words used in the question. The answer is the short named entity, title, term, or number in the matching passage.
- Copy the answer phrase from the context, but see the exact-form rules below. Do not paraphrase or combine it with the rest of the sentence around it.
- Use plain ASCII characters. Strip accents/diacritics from names (
Vaclav Havel, notVáclav Havel;Fragonard, notJean-Honoré Fragonard).
2. Identify what the clue is actually asking for
First identify what this, these, he, she, it, or they refers to; that referent is the answer, not a modifier or a related object.
Clue shapes:
- Statement with "this/these/he/she/it/they": output the entity being described. These are not true/false questions; never answer
True,False,Yes, orNounless the question explicitly asks for that. - Definition or description: output the term being defined. If the clue gives two examples or varieties, output the common category, not one of the examples.
A "hasty" dessert, or perhaps you'd prefer the tapioca→pudding(nothasty pudding).An astringent applied under the arms to curtail sweating→Anti-perspirant(notwitch hazel).
- "Term for" clues: output the general term, not the specific named event or compound.
...it's the term for the rare passing in front of the sun that Venus did...→a transit(notTransit of Venus)....this is the term for nonconductors like plastics→an insulator(notinsulators).This freshwater eellike, jawless fish attaches itself to other fish...→lamprey(notSea lamprey).
- Translation clue: if the clue gives a foreign word and says "this, an X in [language]", output the English translation term, not a named emblem or specific thing.
This, an orzel in Poland, is seen on some of our coins→eagle(notWhite Eagle).
- Phenomenon vs. myth being: if the clue says "this phenomenon/object ... is [mythical being]", answer the phenomenon/object, not the mythical being.
According to Australian myth, this phenomenon seen in the sky is a giant snake arching its body→Rainbow(notRainbow Serpent).
- Quoted line of poetry or song: answer the author/poet/speaker associated with the quote, not the work's title.
"I think that I shall never see a poem lovely as a tree"→Joyce Kilmer(notTrees).
- Campaign slogan clue: answer the candidate named by the slogan/context, not the full ticket.
"Tippecanoe and Tyler too"→William Henry Harrison(notWilliam Henry Harrison and John Tyler).
- Fill-in-the-blank or fragment: output only the missing word or phrase, not a whole title or poem.
A Robert Frost poem begins, "...to wash the steps with pail and" this→rag.The ___ of the Ancient Mariner→Rime.- Crossword-style clue with a number in parentheses: output the word of that length, not a longer name (
FlirtatiousfloozyFlanders (4)→Moll, notMoll Flanders). - Exception: if the blank is at the start of a proper pair/company name (
___ & Wagnalls), output the complete name (Funk & Wagnalls).
- Bare proper name, abbreviation, date/place, or list (only a name/title/abbreviation or comma-separated list; no
this/theseand no verb): answer the associated broader entity from the context — the country, state, show, band, person, etc. — not the named person/place/thing itself.Hamburg→GermanyPresident Tran Duc Luong→VietnamSultan Haji Hassanal Bolkiah→BruneiPrincess Caroline & Princess Stephanie→MonacoInspector Luger, Wojo, Fish→Barney MillerEdward Kennedy, John Kerry→MassachusettsFebruary 6, 1911 in Tampico, Illinois→Ronald ReaganTimonium→MarylandLet freedom ring: PHL→Philadelphia- Exception for a bare comma-separated list of place names: choose the member that fits the likely category/hidden clue, not the common category.
Minsk,Monrovia,Manama→Minsk(notcapital cities)Finland,Norway,Sweden→Sweden(notNordic countries)
Referent checks:
- Movie/TV character clues:
he/sheis usually the title character or role, not the actor.In '84 he's a destroyer, in '82 he was just a barbarian→Conan(notArnold Schwarzenegger).
- "A series on these ... features X and Y": the answer is the objects themselves, not the collectible/medium that depicts them.
A series on these of the '30s & '40s features the Daylight & the 20th Century Limited→Trains(notstamps).
- "The alliance/group of these X": answer the members (
X), not the alliance name, and do not repeat the adjective already in the clue.Founded in 1933, the alliance of these Chinese businesses...→laundries(notChinese Hand Laundry AllianceorChinese laundries).
- Person in a passage with other people: prefer the person who is the subject of the passage/title that matches the facts, not someone who is merely quoted.
- Spoonerism clues (
Dr. Spooner...): swap the initial sounds of the given phrase and output the resulting phrase, not the person or topic.Dr. Spooner once talked of his queer old dean→Dear old queen.
this organization's Hall of Fame→ the organization, not the Hall of Fame.this country's wines→ the country.Its area.../their songs/he worked on his...→ the owner/artist, not the property or work.the X type of this→ the general thing;this type of X→ the specific type.
Round 5 high-priority fixes
Apply these before the earlier high-priority fixes below.
- Export "fruit crop" clues: when the clue asks for
this fruit cropbehind a country's exports/income, answer the edible fruit crop named in the context's export/trade passages (for exampleBananas), not a beverage crop such as coffee even if coffee is called the leading export. - "this vitamin" + letter: when the clue says
this vitaminand the context names a letter vitamin, output the letter alone (C, notVitamin Corvitamin C). - Hyphenated labor units: when the clue defines the industrial unit equal to the work one person can do in one hour, output the hyphenated form
man-hour(notman hour,Man-hours, orMan-hour). - Festival fruit plurals: when the clue mentions a festival/contest for
this fruitand the matching context passage uses the plural fruit name, copy the plural (The Tart Toss & shortcake-eating contest are part of the Oxnard festival for this fruit→strawberries, notstrawberry). - Leadership + state clues: when the clue combines a leadership role with "first & foremost a senator from [state]", the leadership role is the key fact. Choose the person the context identifies as holding that leadership role from that state (for example the former GOP Senate leader from Mississippi →
Trent Lott). Do not pick a different same-state senator just because an unrelated article quotes them saying "first and foremost".
Round 3 high-priority fixes
Apply these before the general exact-form rules below. The examples are patterns for similar clues; apply the general rule rather than memorizing the exact strings.
- Local + English name: when the context gives both a foreign/local name and an English name for the same place or work, use the English name the context uses.
This Florentine palace houses several museums...→the Pitti Palace(notPalazzo Pitti)
- Listed-lake clue: if the clue lists the other Great Lakes and says "this one whose name implies greatness", include
Lake.The Great Lakes are Huron, Ontario, Michigan, Erie & this one...→Lake Superior(notSuperior)
- TV/movie titles: use the shortest distinctive title, even when the full title dominates the context.
Matthew Perry & Bradley Whitford... late-night sketch-comedy show→Studio 60(notStudio 60 on the Sunset Strip)
- Song-list/musical clues: copy the spelling used in the passage that names the work.
"Make Believe","Cotton Blossom","Can't Help Lovin' Dat Man"→Showboat(notShow Boat)
- Publication name: if a person "began publishing a journal/magazine/paper" and the context calls it
X magazine, keep the noun.Bertie Charles Forbes began publishing...→Forbes magazine(notForbes)
- Animal clues: do not add a regional/geographic modifier unless the clue asks for that exact variety.
Steller's Sea Cow was a relative of this rare aquatic mammal found in Florida→manatee(notFlorida manatee)
- Etymology/spelling: when several transliterations appear, use the one linked to the clue's definition/etymology.
...paper-thin pastry whose name is Greek for "leaf"→phyllo(notFilo)
- "one of these birds/animals/objects": answer the common noun, not a proper-noun title containing that noun.
...annual rent of 1 of these birds→falcon(notMaltese Falcon)
- Instrument/source clues: answer the source or object, not the emitted/measured form.
The energy from this is measured by a pyrheliometer→Sun(notSunlight)
- Jeopardy answer line is authoritative: if a
J! Archiveor trivia-questions passage shows the bare answer after the clue, copy that exact answer form (often just the surname).He won the Silver & Bronze Stars...→Clark(notWesley Clark)Edmund White wrote... of "The Maids"→Genet(notJean Genet)
- Formal names, not fan nicknames:
...Stephen Dorff played this alliterative bassist...→Stuart Sutcliffe(notStu Sutcliffe)
- Anatomical terms: keep the noun when the adjective cannot stand alone.
...discovered a growth hormone in this gland→Pituitary gland(notpituitary)
- Brands: use the brand name alone, without an added product/descriptor word.
...satellite radio company... Adam Curry...→Sirius(notSirius Satellite Radio)
- Wordplay / quote clues:
A comedienne:"Ball of Fire"→Lucille Ball(notBarbara Stanwyck)A 1961 classic:"West Side Story"→Romeo and Juliet(notWest Side Story)"...on my mind"→Georgia(notEllie Goulding)
- Current-officeholder clues: still choose the person whose biography in the context matches the clue's facts.
This current king of Jordan... Harrow & Sandhurst→King Hussein(notKing Abdullah II)
- Bare comma-separated place lists: choose a member of the list, not the common category.
Minsk,Monrovia,Manama→Minsk(notcapital cities)Finland,Norway,Sweden→Sweden(notNordic countries)
- U.S. coin clues: for a mint mark, use the mint named in the context for that coin type; for "smallest in size", size means physical dimensions, not face value.
$20 gold coins were a specialty of this mint whose mark is a "D"→Denver(notDahlonega, Georgia)Of the U.S. coins currently being minted, it's the smallest in size→dime(notcent)
- "Seen here" image clues: when the visual is not in the text, match the verbal part of the clue to the exact noun phrase in the context, not to the most frequently mentioned related item.
Hostess snack food seen here split in half→cupcake(notTwinkie)
- Museum/named-for clues: prefer the person who is the subject of the site's story; do not switch to a different person mentioned near the phrase "named in memory of".
The Harpers Ferry National Historical Park includes a museum named for this Civil War figure→John Brown(notJ.E.B. Stuart)
- Malformed biography fragments: if the clue is a person's name glued to a topic and the context gives a century/era for that person, answer the era, not another person in the story.
Henry Ward Beecherfor adultery→the 19th century(notTheodore Tilton)
Round 4 high-priority fixes
Apply these before the general rules below.
- Only output proper names that appear in the context. If your first candidate is not written in the supplied passages, switch to the named entity that is written there and matches the clue.
From 1979 to 1983 the assembly of the shuttle Discovery took place at this Palmdale, Calif. military facility→Edwards Air Force Base(notAir Force Plant 42).
- "Term for" + object: when the clue asks for the general object, use the plain noun, not a compound with a modifier.
Term for the circle that encloses a comic strip character's dialogue→a balloon(notSpeech balloon).
- Acronym expansions: when the answer is the expansion of an acronym, use the spaced form used in titles/definitions, not the hyphenated compound.
If your TV has PIP, it has this feature→Picture in Picture(notPicture-in-Picture).
- "like X" examples: if the clue says "this person/thing, like X", answer the role/category, not the named example X.
A "letter to" this person, like Ben Bradlee, ...→The editor(notBen Bradlee).
- Specific official species: when the context names the exact species as the official state bird/symbol, keep the species modifier.
This bird is depicted on Louisiana's state seal in a nest with her 3 young→Brown pelican(notpelican).
- Answer-line trivia files: when a
clue | answertrivia/QA text file shows the answer after the clue, copy that answer verbatim, including any article or category noun.Flowering plants range in size from the duckweed at 1/50" long to this Australian gum tree that reaches 300 feet in height→a eucalyptus tree(noteucalyptus).
- Kings/queens with regnal numbers: when the context names a king/queen with a regnal number, keep the number.
This character answers to "Gloucester", because he begins the play as duke of Gloucester, not king→Richard III(notRichard).
- Title-character single names: when a work's title is the character's single name, use that single name, not a fuller legal/dynastic name.
In 1956 Ingrid Bergman played this possible Romanov→Anastasia(notAnastasia Romanov).
- Conventionally plural instruments: some instruments are conventionally plural even when the clue says "this instrument."
The Highland version of this instrument has a blowpipe, a chanter & 3 drones→Bagpipes(notbagpipe).
- Official country names in U.N. context: when the context headline names the official country, use that official name.
Asia's population giant, finally admitted to U.N. in 1971→People's Republic of China(notChina).
- Knights/explorers: keep the title for knights and explorers; do not reduce to a bare surname.
In 1579 this English circumnavigator put the Golden Hind in for repairs...→Sir Francis Drake(notDrake).
this type of Xspecificity: when the clue saysthis type of X, output the specific type named in the context, not the general category or a paraphrase.Rubber is an ingredient in this type of chewing gum→bubble gum(notModern chewing gum).
- Modern-war superlatives: for a superlative "this war" clue, prefer the named modern world war whose article states the superlative, not an ancient source's generic "this war" paraphrase.
The material cost of this war was greater than all other wars put together→World War II(notPeloponnesian War).
- Same-type candidate tie-breaker: if two same-type candidates appear and the clue's exact predicate is not in either snippet, choose the candidate from the first relevant passage.
His 2-week sabbatical as mayor of Washington, D.C. made headlines→Marion Barry(notAnthony A. Williams).
3. Match the exact form
Use the phrase from the context, but choose the shortest unambiguous form for the referent. Do not over-expand or over-shorten.
People
- Use the conventional first-name + last-name form when a full name is needed (
Lyndon Johnson, notLyndon B. Johnson). - Do not expand to full legal/birth names when the shorter name is the common one:
BrutusnotMarcus Junius BrutusNapoleonnotNapoleon BonaparteFragonardnotJean-Honoré FragonardWarren G. HardingnotWarren Gamaliel Harding
- When the clue already gives a first name or nickname, answer with the missing/conventional part:
...the only U.S. President named Chester→Arthur(notChester A. Arthur)This man led 16 B-25s...→Jimmy Doolittle(notJames Doolittle)
- Echo the name form already used in the clue:
...he announced to Congress that George Bush won the election→George Bush(notGeorge H. W. Bush)
- Keep a title or honorific only when it is part of the conventional name:
Sir Isaac Newton, notIsaac NewtonSir Francis Drake, notFrancis DrakeKing Hussein, notHussein
- Use the formal name used by the context, not a casual nickname:
Patricia Hearst, notPatty Hearst.
Places and geography
- Do not shorten a full proper name when the full form is the common name:
Lake Superior,New York City,the South Sea Bubble. - Do not repeat the geographic feature word already present in the clue:
...this island off North Carolina before its colony got lost→Roanoke(notRoanoke Island)
- If the clue says
this cityorthis town, output the city name only. If the clue emphasizes the state/location rather than the city itself, include the state:It's the largest city in its state; ... dropped the "knik" from its name→Anchorage, Alaska
- For a language/nationality clue, output the adjective, not the country:
In Dijon & Bordeaux→French(notFrance)
Works, shows, and titles
- Use the shortest distinctive title form, not a full subtitle/network/party suffix unless the suffix is the answer itself:
Studio 60notStudio 60 on the Sunset StripSCTVnotSCTV NetworkBull MoosenotBull Moose PartyThe OutcastsnotThe Outcasts of Poker Flat(when the clue already says"of Poker Flat")
- For foreign-language film titles, output the original title only, in quotes, with no translation/subtitle:
"Il Postino"notIl Postino: The Postman
- If the clue asks for a nickname/moniker, output only that word, not the full nickname + person:
William Marcy Tweed's better known moniker→"Boss"(notBoss Tweed)
- If the clue asks for a common category from a list of songs/characters, output the show/work, not one listed item:
"Make Believe", "Cotton Blossom", "Can't Help Lovin' Dat Man"→ShowboatRoger Thomas, Dwayne Clemens, Freddie "Rerun" Stubbs→What's Happening
Categories, plurals, and articles
- Match singular/plural exactly as the clue and the matching context passage require:
one of these holes→sinkhole(notsinkholes)one of these(a chair back shape) →balloon(nothot air balloon)this is the term for nonconductors→insulator(notinsulators)these animals→SheepCatgut comes from these animals→Sheep(notsheep or goat intestines)The Tart Toss & shortcake-eating contest are part of the Oxnard festival for this fruit→strawberries(copy the plural from the passage)Coupes A L'Ananas are ice cream desserts made with this tropical fruit→Pineapples(copy the plural from the passage)Leaf cutter ants cut this, which they grow on masticated green leaves→Fungi(copy the plural from the passage)This term for following a winding & turning course...→Meandering(copy the term form from the context, notmeander)
- Do not add redundant category words around a single term:
this vitamin+ letter →C, notVitamin Cthis market→bear, notbear marketthis river/desert/mountain range→Amazon,Sahara,Adirondacks, notAmazon River/Sahara Desert/Adirondack Mountainsthis funeral structure→Pyre(notfuneral pyre)
- But keep a quoted term when it is part of the proper name itself:
bad investments in this "bubble" burst the British economy→the South Sea Bubble(notSouth Sea)
- For companies and brands, use the common name without legal suffixes:
Hallmark(notHallmark Cards),McCormick(notMcCormick & Company). - When the clue contrasts a university campus with another campus, answer the university system, not the campus:
this state university at Superior, not Madison→the University of Wisconsin(notUniversity of Wisconsin-Superior)
4. Output format
Return ONLY the answer text, with:
- no explanation, preamble, or "Answer:";
- no "What is..." / "Who is..." phrasing;
- no markdown, bold, bullets, parentheses, or quotes around the answer unless quotes are part of the answer itself;
- no trailing punctuation unless it is part of the answer itself.
Format fixes
| Instead of | Output |
|---|---|
**Mars** (the Red Planet). |
Mars |
The passage says the answer is Mars. |
Mars |
What is Mars? |
Mars |
True for the clue "This person wrote Hamlet" |
William Shakespeare |
Vitamin C for the clue "this vitamin" |
C |
New York when the context says New York City |
New York City |
Marcus Junius Brutus |
Brutus |
Warren Gamaliel Harding |
Warren G. Harding |
Jean-Honoré Fragonard |
Fragonard |
hasty pudding |
pudding |
Transit of Venus |
a transit |
hydroelectric power |
hydroelectric |
Roanoke Island |
Roanoke |
Studio 60 on the Sunset Strip |
Studio 60 |
Bull Moose Party |
Bull Moose |
Il Postino: The Postman |
"Il Postino" |
Václav Havel |
Vaclav Havel |
strawberry for the Oxnard festival fruit clue |
strawberries |
man hour / Man-hours for the industrial work unit |
man-hour |
coffee for the Honduras "fruit crop" export clue |
Bananas |
Roger Wicker for the "GOP leader ... senator from Mississippi" clue |
Trent Lott |
Final check
Read your answer back. If it contains anything besides the answer itself, remove it. Then verify:
- It names the referent, not a related person/object.
- It is the shortest unambiguous form (not over-expanded or over-shortened).
- It matches the singular/plural and article from the clue.
- It contains no markdown, preamble, or trailing punctuation.
- Re-read the high-priority fixes above; if your answer is on the "not" side of any example, change it to the "→" side.
04 同仓库更多 Skills
dynamic-resources
Example skill loaded from resources_discover
hermes-agent
Use the FlashRSI Hermes Snapshot's headless Python runtime, tools, sessions, and compression paths.
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
review-agent
Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.
plugin-creator
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.