Prompt Coding Limited info

Describe What a Language Model Program Is Designed to Do

Shows the model pseudo-code for a pipeline of language model calls and an example of it in use, and asks what type of task the program appears to solve and how it works.

  • 🤖 Any chat LLM
  • 🗂️ Coding

Prompt by Stanford NLP (stanfordnlp/dspy) · Original source (opens in a new tab)

Describe What a Language Model Program Is Designed to Do — prompt preview

The prompt

prompt
Below is some pseudo-code for a pipeline that solves tasks with calls to language models. Please describe what type of task this program appears to be designed to solve, and how it appears to work.

What it is

Shows the model pseudo-code for a pipeline of language model calls and an example of it in use, and asks what type of task the program appears to solve and how it works. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the dspy repository (MIT licence, Copyright (c) 2023 Stanford Future Data Systems). Original author: Stanford NLP (stanfordnlp/dspy).

Who it's for

  • Developers of LLM pipelines
  • Prompt optimization researchers

يعرض على النموذج شيفرة وهمية لسلسلة من استدعاءات النماذج ومثالًا لاستخدامها، ويسأل عن نوع المهمة وطريقة عملها.

Tips

  • This is the instruction of a DSPy signature. DSPy adds two input fields (the program code and an example) and one output field.
  • In DSPy this description is later fed to the prompt that proposes a new instruction.