Questionário vinculado ao guia · Difícil Nível

Otimização automática de prompt e questionário DSPy

Teste o que você sabe sobre pontuação de prompts em relação a uma métrica, como o APE e o OPRO procuram instruções e como funcionam as assinaturas e otimizadores DSPy.

Caminhos de guia relacionadosOtimização automática de prompt e Dspy
Pergunta 1 de 8

O que você deve fornecer para que a otimização automática de prompt funcione?

Visualize cada pergunta8 perguntas

As respostas e explicações aparecem conforme você responde ao teste.

  1. O que você deve fornecer para que a otimização automática de prompt funcione?
    • Only a longer prompt
    • A task, a set of example inputs and a metric to score outputs
    • A fine-tuned model and a GPU cluster
    • A list of banned words
  2. No OPRO, qual é o papel do otimizador?
    • A gradient descent step on the model's weights
    • A human prompt engineer
    • A random search with no feedback
    • An LLM given a meta-prompt listing earlier instructions and their scores
  3. O que ilustra o resultado “Respire fundo e trabalhe neste problema passo a passo” do OPRO?
    • Optimized wording can be unintuitive and specific to a model
    • Breathing instructions work for every model
    • Math tasks do not need prompts
    • OPRO only works for writing tasks
  4. O que é uma assinatura DSPy?
    • A cryptographic key for the API
    • A model's version number
    • A declaration of a step's inputs and outputs, such as "question, context -> answer"
    • A watermark on generated text
  5. Como o BootstrapFewShot do DSPy consegue suas demonstrações?
    • It downloads examples from the internet
    • It runs the program on training inputs and keeps the traces where the metric passes
    • It asks the user to label every intermediate step
    • It uses the longest available examples
  6. Why should you keep a separate held-out set when optimizing prompts?
    • To reduce the size of the prompt
    • To make the optimizer run faster
    • It is required by the API
    • To check whether the optimized prompt has overfit the training examples
  7. What were DSPy's optimizers called earlier?
    • Teleprompters
    • Compilers
    • Tokenizers
    • Retrievers
  8. What approach did APE (Automatic Prompt Engineer) take?
    • It fine-tuned model weights on instructions
    • It hand-wrote prompts from expert interviews
    • It had a model propose instructions from input-output examples and kept the highest-scoring ones
    • It removed instructions entirely