Prompty i kontekst
Prompting and context engineering · id prompting
Dobór instrukcji i informacji dostępnych przy wywołaniu.
Choosing the instructions and information available at call time.
In one sentence
To przygotowanie polecenia oraz informacji, które model dostaje przed odpowiedzią.
This prepares the instructions and information a model receives before it answers.
Problem it solves
Model odpowiada nie na temat, gdy prośba jest niejasna lub brakuje mu potrzebnych informacji.
The model misses what you need when your request is unclear or important information is missing.
What it does
Podaje mu cel, potrzebne materiały, ograniczenia i wzór oczekiwanego wyniku, jak dobre zlecenie dla osoby pomagającej w pracy.
It supplies a goal, relevant material, limits and an example of the desired result, like a clear brief for someone helping you.
Everyday example
Prosisz o odpowiedź na reklamację, dołączając treść wiadomości, zasady zwrotów i przykład tonu, którego oczekujesz.
You ask for a complaint reply and include the customer's message, the returns policy and an example of the tone you want.
This concerns you if you…
- otrzymujesz odpowiedzi, które mijają się z twoją prośbą
- chcesz przekazać modelowi dokumenty i zasady przed odpowiedzią
- receive answers that miss what you asked for
- want to give the model documents and rules before it answers
Examples
- Prompt templates · context budget · few-shot · chain of thought · ReAct
Subtopics
- Budowa polecenia: instrukcje, rola i znaczniki (Prompt structure: instructions, roles and delimiters): Laying out a prompt with clear instructions, purpose, a role in the system prompt, data sections separated by delimiters and an output format description.
- Programowa optymalizacja promptów (Programmatic prompt optimisation): Automatically tuning prompts, and sometimes weights, against an evaluation score.
- Przykłady w poleceniu (few-shot) (Few-shot prompting and in-context learning): A few input–output pairs placed in the prompt show the model the task and answer format without changing its weights.
- Zarządzanie oknem kontekstu (Context window management: placement, compaction and context rot): Deciding which tokens enter a limited context and in what order: placement, trimming, summarisation and external notes.
Related topics
Courses
Sources