Fixed 1 spelling error in docs (#236)

This commit is contained in:
Alex Telon
2023-11-29 22:51:06 +01:00
committed by GitHub
parent bf22a106bc
commit 12ba79ab13
+1 -1
View File
@@ -69,7 +69,7 @@ While it calls out the objectionable content, it doesn't provide any details on
## Adding Custom Validation
By adding a validator to the `answer` field, we can try to catch the issue and correct it.
Lets integrate `llm_validator` into the model and see the error message. Its important to not that you can use all of pydantic's validators as you would normally as long as you raise a `ValidationError` with a helpful error message as it will be used as part of the self correction prompt.
Lets integrate `llm_validator` into the model and see the error message. Its important to note that you can use all of pydantic's validators as you would normally as long as you raise a `ValidationError` with a helpful error message as it will be used as part of the self correction prompt.
```python
class QuestionAnswerNoEvil(BaseModel):