Fix documentation typos (#3870)

Co-authored-by: Liviu Asnash <liviua@maximallearning.com>
This commit is contained in:
liviuasnash1
2023-05-02 06:58:38 +03:00
committed by GitHub
parent 109927cdb2
commit 6396a4ad8d
5 changed files with 7 additions and 7 deletions

View File

@@ -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",

View File

@@ -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."
]
},
{