forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
693 B
Plaintext
8 lines
693 B
Plaintext
12 months ago
|
# Self-critique chain with constitutional AI
|
||
|
The ConstitutionalChain is a chain that ensures the output of a language model adheres to a predefined set of constitutional principles. By incorporating specific rules and guidelines, the ConstitutionalChain filters and modifies the generated content to align with these principles, thus providing more controlled, ethical, and contextually appropriate responses. This mechanism helps maintain the integrity of the output while minimizing the risk of generating content that may violate guidelines, be offensive, or deviate from the desired context.
|
||
|
|
||
|
|
||
|
import Example from "@snippets/modules/chains/additional/constitutional_chain.mdx"
|
||
|
|
||
|
<Example/>
|