langchain/libs/community/tests/unit_tests
Peter Vandenabeele e830a4e731
community[patch]: Add remove_comments option (default True): do not extract html comments (#13259)
- **Description:** add `remove_comments` option (default: True): do not
extract html _comments_,
  - **Issue:** None,
  - **Dependencies:** None,
  - **Tag maintainer:** @nfcampos ,
  - **Twitter handle:** peter_v

I ran `make format`, `make lint` and `make test`.

Discussion: I my use case, I prefer to not have the comments in the
extracted text:
* e.g. from a Google tag that is added in the html as comment
* e.g. content that the authors have temporarily hidden to make it non
visible to the regular reader

Removing the comments makes the extracted text more alike the intended
text to be seen by the reader.


**Choice to make:** do we prefer to make the default for this
`remove_comments` option to be True or False?
I have changed it to True in a second commit, since that is how I would
prefer to use it by default. Have the
cleaned text (without technical Google tags etc.) and also closer to the
actually visible and intended content.
I am not sure what is best aligned with the conventions of langchain in
general ...


INITIAL VERSION (new version above):
~**Choice to make:** do we prefer to make the default for this
`ignore_comments` option to be True or False?
I have set it to False now to be backwards compatible. On the other
hand, I would use it mostly with True.
I am not sure what is best aligned with the conventions of langchain in
general ...~

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-04-02 00:19:12 +00:00
..
agent_toolkits community[minor]: Update Azure Cognitive Services to Azure AI Services (#19488) 2024-03-28 03:19:02 +00:00
callbacks community[minor] : adds callback handler for Fiddler AI (#17708) 2024-02-25 18:17:03 -08:00
chat_loaders
chat_message_histories
chat_models community[minor]: Update ChatZhipuAI to support GLM-4 model (#16695) 2024-04-01 18:11:21 +00:00
docstore
document_loaders community[minor]: add support for llmsherpa (#19741) 2024-03-29 16:04:57 -07:00
document_transformers community[patch]: Add remove_comments option (default True): do not extract html comments (#13259) 2024-04-02 00:19:12 +00:00
embeddings community[patch]: OllamaEmbeddings - Pass headers to post request (#16880) 2024-03-29 18:44:52 +00:00
examples
graphs comunity[patch]: Fix neo4j sanitizing values (#18750) 2024-03-07 19:21:52 -08:00
indexes
llms community[patch]: introduce convert_to_secret() to bananadev llm (#14283) 2024-03-30 00:52:25 +00:00
retrievers community[minor]: Add Dria retriever (#17098) 2024-04-01 12:04:19 -07:00
storage add mongodb_store (#13801) 2024-02-13 22:33:22 -05:00
tools community[minor]: add hugging face text-to-speech inference API (#18880) 2024-03-29 15:02:29 +00:00
utilities community[minor]: Add Dria retriever (#17098) 2024-04-01 12:04:19 -07:00
utils
vectorstores community[minor]: Pathway vectorstore(#14859) 2024-03-29 10:50:39 -07:00
__init__.py
conftest.py
test_dependencies.py
test_imports.py
test_sql_database_schema.py infra: mv SQLDatabase tests to community (#17276) 2024-02-08 17:05:43 -08:00
test_sql_database.py community[minor]: Add lazy_table_reflection param to SqlDatabase (#18742) 2024-03-08 14:10:23 -05:00
test_sqlalchemy.py