langchain/libs/community/tests/integration_tests/document_loaders
Lei Zhang 748a6ae609
community[patch]: add HTTP response headers Content-Type to metadata of RecursiveUrlLoader document (#20875)
**Description:** 
The RecursiveUrlLoader loader offers a link_regex parameter that can
filter out URLs. However, this filtering capability is limited, and if
the internal links of the website change, unexpected resources may be
loaded. These resources, such as font files, can cause problems in
subsequent embedding processing.

>
https://blog.langchain.dev/assets/fonts/source-sans-pro-v21-latin-ext_latin-regular.woff2?v=0312715cbf

We can add the Content-Type in the HTTP response headers to the document
metadata so developers can choose which resources to use. This allows
developers to make their own choices.

For example, the following may be a good choice for text knowledge.

- text/plain - simple text file
- text/html - HTML web page
- text/xml - XML format file
- text/json - JSON format data
- application/pdf - PDF file
- application/msword - Word document

and ignore the following

- text/css - CSS stylesheet
- text/javascript - JavaScript script
- application/octet-stream - binary data
- image/jpeg - JPEG image
- image/png - PNG image
- image/gif - GIF image
- image/svg+xml - SVG image
- audio/mpeg - MPEG audio files
- video/mp4 - MP4 video file
- application/font-woff - WOFF font file
- application/font-ttf - TTF font file
- application/zip - ZIP compressed file
- application/octet-stream - binary data

**Twitter handle:** @coolbeevip

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-04-25 11:29:41 -07:00
..
parsers community[patch]: move pdf text tests to integration (#18746) 2024-03-07 10:34:22 -08:00
__init__.py
test_arxiv.py
test_astradb.py community[patch]: Use astrapy built-in pagination prefetch in AstraDBLoader (#17569) 2024-02-15 09:52:56 -05:00
test_bigquery.py
test_bilibili.py community[patch]: fix bugs for bilibili Loader (#18036) 2024-03-28 16:39:38 -07:00
test_blockchain.py
test_cassandra.py community[minor]: Add async methods to CassandraLoader (#20609) 2024-04-18 19:45:20 +00:00
test_confluence.py
test_couchbase.py
test_csv_loader.py
test_dataframe.py
test_docusaurus.py
test_duckdb.py
test_email.py
test_etherscan.py
test_excel.py
test_facebook_chat.py
test_fauna.py
test_figma.py
test_geodataframe.py
test_gitbook.py
test_github.py community[patch]: Add Pagination to GitHubIssuesLoader for Efficient GitHub Issues Retrieval (#16934) 2024-02-12 18:30:36 -08:00
test_google_speech_to_text.py
test_ifixit.py
test_joplin.py
test_json_loader.py
test_lakefs.py
test_language.py
test_larksuite.py
test_llmsherpa.py community[minor]: add support for llmsherpa (#19741) 2024-03-29 16:04:57 -07:00
test_mastodon.py
test_max_compute.py
test_modern_treasury.py
test_news.py
test_nuclia.py
test_odt.py
test_org_mode.py
test_pdf.py
test_polars_dataframe.py
test_pubmed.py
test_pyspark_dataframe_loader.py
test_python.py
test_quip.py
test_recursive_url_loader.py community[patch]: add HTTP response headers Content-Type to metadata of RecursiveUrlLoader document (#20875) 2024-04-25 11:29:41 -07:00
test_rocksetdb.py
test_rss.py
test_rst.py
test_sitemap.py
test_slack.py
test_spreedly.py
test_sql_database.py community[minor]: Add SQLDatabaseLoader document loader (#18281) 2024-02-28 21:02:28 +00:00
test_stripe.py
test_telegram.py
test_tensorflow_datasets.py
test_tidb.py community[minor]: Add tidb loader support (#17788) 2024-02-21 16:42:33 -08:00
test_tsv.py
test_unstructured.py
test_url_playwright.py
test_url.py
test_whatsapp_chat.py
test_wikipedia.py
test_xml.py
test_xorbits.py