experimental: docstrings update (#18048)

Added missed docstrings. Formatted docsctrings to the consistent format.
This commit is contained in:
Leonid Ganeline
2024-02-23 18:24:16 -08:00
committed by GitHub
parent 56b955fc31
commit 3f6bf852ea
61 changed files with 316 additions and 102 deletions

View File

@@ -18,9 +18,10 @@ from langchain_experimental.fallacy_removal.prompts import (
class FallacyChain(Chain):
"""Chain for applying logical fallacy evaluations, modeled after Constitutional AI \
and in same format, but applying logical fallacies as generalized rules to remove \
in output
"""Chain for applying logical fallacy evaluations.
It is modeled after Constitutional AI and in same format, but
applying logical fallacies as generalized rules to remove in output.
Example:
.. code-block:: python

View File

@@ -3,7 +3,7 @@ from langchain_experimental.pydantic_v1 import BaseModel
class LogicalFallacy(BaseModel):
"""Class for a logical fallacy."""
"""Logical fallacy."""
fallacy_critique_request: str
fallacy_revision_request: str