diff --git a/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py b/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py index 901aed2bdf2..4fb27cfafeb 100644 --- a/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py +++ b/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py @@ -132,6 +132,7 @@ class BeautifulSoupTransformer(BaseDocumentTransformer): Args: html_content: The original HTML content string. tags: A list of tags to be extracted from the HTML. + remove_comments: If set to True, the comments will be removed. Returns: A string combining the content of the extracted tags. @@ -184,6 +185,7 @@ def get_navigable_strings( Args: element: A BeautifulSoup element. + remove_comments: If set to True, the comments will be removed. Returns: A generator of strings.