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

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

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

    REVISION_PROMPT

    Copy
    REVISION_PROMPT = FewShotPromptTemplate(
      example_prompt=revision_example,
      examples=examples,
      prefix='Below is a conversation between a human and an AI model.',
      suffix='Human: {input_prompt}\n\nModel: {output_from_model}\n\nCritique Request: {critique_request}\n\nCritique: {critique}\n\nIf the critique does not identify anything worth changing,
      ignore the Revision Request and do not make any revisions. Instead,
      return "No revisions needed".\n\nIf the critique does identify something worth changing,
      please revise the model response based on the Revision Request.\n\nRevision Request: {revision_request}\n\nRevision:',
      example_separator='\n === \n',
      input_variables=['input_prompt', 'output_from_model', 'critique_request', 'critique', 'revision_request']
    )
    View source on GitHub