D3: Input Processing & Prompt Building
GH-300 GitHub Copilot exam practice questions · 10 flashcards
Question
Context gathering?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Input Processing & Prompt Building practice questions and answers
- Context gathering?Copilot collects code before/after cursor, open tabs, related files, language, file path.
- Fill-in-the-middle (FIM)?Uses code before and after the cursor to complete in between.
- Neighbouring tabs?Open files provide additional context.
- Prompt construction?Context snippets prioritized and assembled within token limits.
- Chat context?User message + history + references (#file, selection) + instructions + workspace retrieval.
- Retrieval for @workspace?Indexes/searches repository to find relevant snippets.
- Token limits effect?Lower-priority context is truncated.
- Content exclusions in context?Excluded files aren't used as context.
- Instructions files in prompt?Automatically added to chat requests.
- Scenario: suggestions ignore a helper in another file. Fix?Open that file or reference it with #file.