LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicchainsconstitutional_aipromptsCRITIQUE_PROMPT
    Attribute●Since v1.0

    CRITIQUE_PROMPT

    Copy
    CRITIQUE_PROMPT = FewShotPromptTemplate(
      example_prompt=critique_example,
      examples=[{k: v for k, v in (e.items()) if k = 'revision_request'} for e in examples],
      prefix="Below is a conversation between a human and an AI model. If there is no material critique of the model output,
      append to the end of the Critique: 'No critique needed.' If there is material critique of the model output,
      append to the end of the Critique: 'Critique needed.'",
      suffix='Human: {input_prompt}\nModel: {output_from_model}\n\nCritique Request: {critique_request}\n\nCritique:',
      example_separator='\n === \n',
      input_variables=['input_prompt', 'output_from_model', 'critique_request']
    )
    View source on GitHub