This is the lab on the Search tab. The five stages are Understanding question, Retrieving sources, Ranking and evidence, Analyzing documents, and Synthesizing a

Context Policy

Context Policy lab open on Understanding question
Open configurations to edit the stages. Chat A’s model and the Understanding question controls apply to the next run only.

This is the lab on the Search tab. The five stages are Understanding question, Retrieving sources, Ranking and evidence, Analyzing documents, and Synthesizing answer. Embeddings stay fixed to the indexed collection. The policy tunes the next retrieval and answer. It does not change an existing answer or the vectors. Choosing a model name does not provision a key and does not mean that model is available.

Stages

Open configurations to see the stages. Chat A and Chat B are edited separately. Copy Chat A settings to Chat B copies the form. It does not run either side.

Fields

Visible labelKeyTypeForm startAPI boundsNext run
Policy namepolicyNamestringDefault Context Policy1–180 charactersSent as the policy name. Does not change embeddings.
ProviderpolicySnapshot.modelProviderenum openai | anthropic | googleopenaiThose three valuesSelects the answer provider for the next run. It does not provision a key.
Chat A answer modelpolicySnapshot.modelstringgpt-4o1–160 charactersCatalog answer model (synthesis step) for Chat A, or empty for the workspace default. Honored or refused (MODEL_NOT_IN_CATALOG, MODEL_CHOICE_UNAVAILABLE, MODEL_NOT_APPROVED), never swapped.
Chat B answer modelpolicySnapshot.modelstringgpt-4o-mini1–160 charactersUsed only for the Compare side. Can compare across OpenAI, Anthropic, and Google.
Mini-query provider and modelminiQueries.provider, miniQueries.modelenum / stringworkspace defaultcatalog query_expansion modelsOptional model choice for mini-query expansion. Checked before retrieval runs.
TemperaturepolicySnapshot.temperaturenumber0.250–2Changes how varied the next answer is. Does not change the index.
Search results topKpolicySnapshot.searchTopKinteger201–50Search only. Ignored by Answer, which uses Answer results topK.
Answer results topKpolicySnapshot.retrievalTopKinteger301–50How many ranked chunks Answer and Compare reveal.
Force retrieval for this rununderstanding.forceRetrievalbooleanoff—Always retrieves, even for a greeting.
Allow greeting/general-knowledge short circuitunderstanding.allowShortCircuitbooleanon—Lets the classifier skip the corpus for greetings.
Skip query metadata extractionunderstanding.skipQueryMetadataExtractionbooleanoff—When on, the query-metadata prompt is not used.
Include execution detailspolicySnapshot.includeExecutionDetailsbooleanon—Shows diagnostics such as mini queries. Not a quality score.
Question classification promptunderstanding.classificationPromptstringlocale default textmax 12000Omitted from the snapshot when the text equals the English default.
Query metadata promptunderstanding.queryMetadataPromptstringlocale default textmax 12000Ignored while Skip query metadata extraction is on.
Generate mini queriesminiQueries.enabledbooleanon—When off, mini-query count, limit, threshold, and prompt are ignored.
Mini-query countminiQueries.countinteger50–12Ignored until Generate mini queries is on.
Mini-query limitminiQueries.limitinteger201–200Ignored until Generate mini queries is on.
Mini-query thresholdminiQueries.scoreThresholdnumber0.20–1Ignored until Generate mini queries is on.
Mini-query promptminiQueries.promptOverridestringlocale default; placeholders question and countmax 12000Omitted when equal to the English default. Ignored when mini queries are off.
not a separate labeled stage controlminiQueries.discountnumber0.820–2Serialized with the snapshot. It is not one of the five stage titles.
Evidence modeevidence.modeenum strictbalancedbroadbalanced
Embedding boostreranking.embedBoostnumber0.7no extra bound in the schemaWeight on embedding similarity. Does not re-embed.
Temporal boostreranking.temporalBoostnumber0.15no extra bound in the schemaWeight on recency when that signal exists.
Rerank candidate topKreranking.topKinteger301–200Candidates reranked. It does not by itself raise the Answer result count.
Enable evidence extractionevidence.extractionEnabledbooleanon—When off, evidence limits and the evidence prompt are ignored.
Primary evidence maxevidence.primaryMaxinteger80–30Ignored until evidence extraction is on.
Supplementary evidence maxevidence.supplementaryMaxinteger120–60Ignored until evidence extraction is on.
Quote max charsevidence.quoteMaxCharsinteger2000100–12000Ignored until evidence extraction is on.
Require citationsevidence.requireCitationsbooleanon—Asks the answer to cite sources. An answer can still fail that check.
not given its own stage titleevidence.showAllRankedChunksbooleanoff—Serialized. It does not add a sixth stage.
Relevance filter promptpolicySnapshot.relevancePromptstringlocale default textmax 12000Omitted when equal to the English default.
Evidence selection promptevidence.promptGuidancestringlocale default textmax 12000Ignored until evidence extraction is on.
Max files to analyzepolicySnapshot.maxDocumentsinteger51–30How many documents enter analysis.
Paragraphs per filepolicySnapshot.maxParagraphsPerDocinteger81–30Paragraph cap per analyzed document.
Max content charspolicySnapshot.maxContentCharsinteger2000200–12000Character budget for analysis prompts.
Analysis max tokenspolicySnapshot.analysisMaxTokensinteger2000100–32000Token budget for per-document analysis.
Document analysis promptpolicySnapshot.analysisPromptstringlocale default textmax 12000Omitted when equal to the English default.
not a stage titlepolicySnapshot.analysisOutputHintstringemptymax 6000Sent only when you type one. Empty is omitted.
Synthesis max tokenspolicySnapshot.synthesisMaxTokensinteger2000100–64000Token budget for the final answer.
Answer synthesis promptpolicySnapshot.synthesisPromptstringlocale default textmax 12000Omitted when equal to the English default.
not a stage titlepolicySnapshot.synthesisOutputHintstringemptymax 6000Sent only when you type one.
not a stage titleguarantees.embedGuaranteeNinteger40–100Serialized. No separate lab stage is named for it.
not a stage titleguarantees.ceGuaranteeSourcesinteger30–100Serialized. No separate lab stage is named for it.
not a stage titleguarantees.entityGuaranteePerSourceinteger20–100Serialized. No separate lab stage is named for it.

API-only objects that are not rows above: chunkRoles and discovery (field weights and paragraph discovery). They can be accepted by the schema. The lab does not give them these stage labels.

Save and the next run

The form starts as an unsaved default. Save policy stores the name and the snapshot the form built. The next run sends that snapshot. This guide does not say that a saved id alone loads the stored snapshot from the server. A prompt is omitted from the snapshot only when its text equals the English default. The Japanese default text differs, so it is sent. Identifier spelling stays question, count, and searchTopK.

Examples

These are not presets. To narrow Search only, set Search results topK to 10. Answer results topK stays 30. To ground a shorter answer, leave evidence extraction on and set Primary evidence max to 4. Latency and tokens may drop. This does not say the answer gets better.

Screenshot

The lab frame cat-policy-lab-en is open. Per-stage frames are open too.

Related documentation