mirror of
https://github.com/hwchase17/langchain
synced 2024-11-16 06:13:16 +00:00
748a6ae609
**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> |
||
---|---|---|
.. | ||
parsers | ||
__init__.py | ||
test_arxiv.py | ||
test_astradb.py | ||
test_bigquery.py | ||
test_bilibili.py | ||
test_blockchain.py | ||
test_cassandra.py | ||
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 | ||
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 | ||
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 | ||
test_rocksetdb.py | ||
test_rss.py | ||
test_rst.py | ||
test_sitemap.py | ||
test_slack.py | ||
test_spreedly.py | ||
test_sql_database.py | ||
test_stripe.py | ||
test_telegram.py | ||
test_tensorflow_datasets.py | ||
test_tidb.py | ||
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 |