mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
Fix documentation typos (#3870)
Co-authored-by: Liviu Asnash <liviua@maximallearning.com>
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"master_yoda_principal = ConstitutionalPrinciple(\n",
|
||||
"master_yoda_principle = ConstitutionalPrinciple(\n",
|
||||
" name='Master Yoda Principle',\n",
|
||||
" critique_request='Identify specific ways in which the model\\'s response is not in the style of Master Yoda.',\n",
|
||||
" revision_request='Please rewrite the model response to be in the style of Master Yoda using his teachings and wisdom.',\n",
|
||||
@@ -172,7 +172,7 @@
|
||||
"\n",
|
||||
"constitutional_chain = ConstitutionalChain.from_llm(\n",
|
||||
" chain=evil_qa_chain,\n",
|
||||
" constitutional_principles=[ethical_principle, master_yoda_principal],\n",
|
||||
" constitutional_principles=[ethical_principle, master_yoda_principle],\n",
|
||||
" llm=llm,\n",
|
||||
" verbose=True,\n",
|
||||
")\n",
|
||||
|
@@ -7,7 +7,7 @@
|
||||
"source": [
|
||||
"# OpenAPI Chain\n",
|
||||
"\n",
|
||||
"This notebook shows an example of using an OpenAPI chain to call an endpoint in natural language, and get back a response in natural language"
|
||||
"This notebook shows an example of using an OpenAPI chain to call an endpoint in natural language, and get back a response in natural language."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user