关于LLMRouterChain录播课里的代码 有一处疑问

请问下面这段代码是预先设定好的模板吗?LLMRouterChian录播课里的代码

MULTI_PROMPT_ROUTER_TEMPLATE = """Given a raw text input to a \  
language model select the model prompt best suited for the input. \  
You will be given the names of the available prompts and a \  
description of what the prompt is best suited for. \  
You may also revise the original input if you think that revising\  
it will ultimately lead to a better response from the language model.  

<< FORMATTING >>  
Return a markdown code snippet with a JSON object formatted to look like:  
  ```json  {{{{    "destination": string \ name of the prompt to use or "DEFAULT"    "next_inputs": string \ a potentially modified version of the original input  }}}}  ```  
REMEMBER: "destination" MUST be one of the candidate prompt \  
names specified below OR it can be "DEFAULT" if the input is not\  
well suited for any of the candidate prompts.  
REMEMBER: "next_inputs" can just be the original input \  
if you don't think any modifications are needed.  

<< CANDIDATE PROMPTS >>  
{destinations}  

<< INPUT >>  
{{input}}  

<< OUTPUT (remember to include the ```json)>>"""

是的呀, 是一个预设好的提示词,你丢到google翻译,翻一下就知道它在干嘛了

这个是文档里还是哪里找到的预设提示词呢?麻烦能提供下来源地址吗?

出处在这里

https://learn.deeplearning.ai/langchain/lesson/4/chains

1 个赞