Skip to main content

Terminologies

In the field of prompt engineering, there are many terminologies. This page tries to summarize them add a short and easy explanation about each, that it becomes easy to remember and stays in memory longer.

  1. step-by-step prompting - here the prompt already contains the step by step method to be followed.

  2. Chain-of-Thought prompting - here the prompt is extended with additional text such as - 'Think step by step'. This is mostly zero-shot - without no examples provided , or few-shot where multiple example are provided.

  3. prompt chaining - Here the task is split into multiple steps and output of first step is sent as a prompt to next step.

  4. ReAct - Reason and Act Reasoning - The verb here means, the analysis performed by the LLM to take a certain path in solving a problem. Act - The action the LLM performs based on the reasons.

    Reasoning Meaning

    The action of thinking about something in a logical, sensible way.

    This is something what the LLM solely performs.

    Reason (taken from the chain of thought) → act → observe → iterate until all steps in the chain are completed.

    Reason to Act - Reasoning to finally do some action. and Act to Reason - Performing actions to enhance reasoning. This is where the tool usage comes in.

  5. Prompt Sensitivity - Even a small change to the prompt can lead to different answers from LLMs.

  6. heuristic - It's a shortcut for thinking. Intuition, gut feel, etc.

  7. Agent Strategy - Agent strategy means what LLM to use, what tools to use, which prompting strategy, etc.

  8. Forward Pass - It's the entire flow that's executed to generate the next token.

  9. Frankenprompt - It's prompt that's created by stitching together multiple prompts to create a new prompt. For every new thing that's learnt, we add a new line to the prompt.

  10. progressive disclosure - It's about adding more information to the context as needed. This is what's done with skills. The skill description is loaded only when required. Same is with tool search.

What's an agent?

Agent is the LLM plus the entire system surrounding it - Chat bot, tools, databases, memory, etc.

Prefill vs Decode
  • Prefill - This is about processing the input context. In this case, the vector of all known tokens are simply put in as a matrix and K, V and Q values are generated in one go and then K and V values of all known tokens are cached.
  • Decode - This is about generating the next token. Here the K and V values from previous generated are used from cache.