id
stringlengths
14
16
text
stringlengths
36
2.73k
source
stringlengths
49
117
443cccaaac29-0
.ipynb .pdf AWS S3 File AWS S3 File# Amazon Simple Storage Service (Amazon S3) is an object storage service. AWS S3 Buckets This covers how to load document objects from an AWS S3 File object. from langchain.document_loaders import S3FileLoader #!pip install boto3 loader = S3FileLoader("testing-hwc", "fake.docx") loade...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/aws_s3_file.html
0534d7a53b36-0
.ipynb .pdf WebBaseLoader Contents Loading multiple webpages Load multiple urls concurrently Loading a xml file, or using a different BeautifulSoup parser WebBaseLoader# This covers how to use WebBaseLoader to load all text from HTML webpages into a document format that we can use downstream. For more custom logic fo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-1
[Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to main content\n \n\n ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-2
Select Games\n\n\n\n\n\n\n\nNCAA Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Game...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-3
Opening Day? Here's your guide to MLB's offseason chaosWait, Jacob deGrom is on the Rangers now? Xander Bogaerts and Trea Turner signed where? And what about Carlos Correa? Yeah, you're going to need to read up before Opening Day.12hESPNIllustration by ESPNEverything you missed in the MLB offseason3h2:33World Series od...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-4
Jackson the most8h2:00Would Lamar sit out? Will Ravens draft a QB? Jackson trade request insightsLamar Jackson has asked Baltimore to trade him, but Ravens coach John Harbaugh hopes the QB will be back.3hJamison HensleyBallard, Colts will consider trading for QB JacksonJackson to Indy? Washington? Barnwell ranks the QB...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-5
find comparisons.16hKevin PeltonWOMEN'S ELITE EIGHT SCOREBOARDMONDAY'S GAMESCheck your bracket!NBA DRAFTHow top prospects fared on the road to the Final FourThe 2023 NCAA tournament is down to four teams, and ESPN's Jonathan Givony recaps the players who saw their NBA draft stock change.11hJonathan GivonyAndy Lyons/Get...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-6
Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-7
can follow throughout the Big Dance. Women's Tournament ChallengeIllustration by ESPNWomen's Tournament ChallengeCheck your bracket(s) in the 2023 Women's Tournament Challenge, which you can follow throughout the Big Dance. Best of ESPN+AP Photo/Lynne SladkyFantasy Baseball ESPN+ Cheat Sheet: Sleepers, busts, rookies a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-8
predictionsMel Kiper Jr. makes his predictions for Round 1 of the NFL draft, including projecting a trade in the top five. Trending NowAnne-Marie Sorvin-USA TODAY SBoston Bruins record tracker: Wins, points, milestonesThe B's are on pace for NHL records in wins and points, along with some individual superlatives as wel...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-9
on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreEvery XFL game will be streamed on ESPN+. Find out when and where else you can watch the eig...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-10
Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-11
ESPNCopyright: © ESPN Enterprises, Inc. All rights reserved.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", lookup_str='', metadata={'source': 'https://www.espn.com/'}, lookup_index=0)]
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-12
""" # Use this piece of code for testing new custom BeautifulSoup parsers import requests from bs4 import BeautifulSoup html_doc = requests.get("{INSERT_NEW_URL_HERE}") soup = BeautifulSoup(html_doc.text, 'html.parser') # Beautiful soup logic to be exported to langchain.document_loaders.webpage.py # Example: transcript...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-13
[Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to main content\n \n\n ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-14
Select Games\n\n\n\n\n\n\n\nNCAA Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Game...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-15
Opening Day? Here's your guide to MLB's offseason chaosWait, Jacob deGrom is on the Rangers now? Xander Bogaerts and Trea Turner signed where? And what about Carlos Correa? Yeah, you're going to need to read up before Opening Day.12hESPNIllustration by ESPNEverything you missed in the MLB offseason3h2:33World Series od...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-16
Jackson the most7h2:00Would Lamar sit out? Will Ravens draft a QB? Jackson trade request insightsLamar Jackson has asked Baltimore to trade him, but Ravens coach John Harbaugh hopes the QB will be back.3hJamison HensleyBallard, Colts will consider trading for QB JacksonJackson to Indy? Washington? Barnwell ranks the QB...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-17
find comparisons.16hKevin PeltonWOMEN'S ELITE EIGHT SCOREBOARDMONDAY'S GAMESCheck your bracket!NBA DRAFTHow top prospects fared on the road to the Final FourThe 2023 NCAA tournament is down to four teams, and ESPN's Jonathan Givony recaps the players who saw their NBA draft stock change.11hJonathan GivonyAndy Lyons/Get...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-18
Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-19
can follow throughout the Big Dance. Women's Tournament ChallengeIllustration by ESPNWomen's Tournament ChallengeCheck your bracket(s) in the 2023 Women's Tournament Challenge, which you can follow throughout the Big Dance. Best of ESPN+AP Photo/Lynne SladkyFantasy Baseball ESPN+ Cheat Sheet: Sleepers, busts, rookies a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-20
predictionsMel Kiper Jr. makes his predictions for Round 1 of the NFL draft, including projecting a trade in the top five. Trending NowAnne-Marie Sorvin-USA TODAY SBoston Bruins record tracker: Wins, points, milestonesThe B's are on pace for NHL records in wins and points, along with some individual superlatives as wel...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-21
on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreEvery XFL game will be streamed on ESPN+. Find out when and where else you can watch the eig...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-22
Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-23
ESPNCopyright: © ESPN Enterprises, Inc. All rights reserved.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", lookup_str='', metadata={'source': 'https://www.espn.com/'}, lookup_index=0),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-24
Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More »Web History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Google© 2023 - Privacy - Terms ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)] Load multiple urls concurrently# You ca...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-25
[Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to main content\n \n\n ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-26
Select Games\n\n\n\n\n\n\n\nNCAA Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Game...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-27
Opening Day? Here's your guide to MLB's offseason chaosWait, Jacob deGrom is on the Rangers now? Xander Bogaerts and Trea Turner signed where? And what about Carlos Correa? Yeah, you're going to need to read up before Opening Day.12hESPNIllustration by ESPNEverything you missed in the MLB offseason3h2:33World Series od...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-28
Jackson the most7h2:00Would Lamar sit out? Will Ravens draft a QB? Jackson trade request insightsLamar Jackson has asked Baltimore to trade him, but Ravens coach John Harbaugh hopes the QB will be back.3hJamison HensleyBallard, Colts will consider trading for QB JacksonJackson to Indy? Washington? Barnwell ranks the QB...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-29
find comparisons.16hKevin PeltonWOMEN'S ELITE EIGHT SCOREBOARDMONDAY'S GAMESCheck your bracket!NBA DRAFTHow top prospects fared on the road to the Final FourThe 2023 NCAA tournament is down to four teams, and ESPN's Jonathan Givony recaps the players who saw their NBA draft stock change.11hJonathan GivonyAndy Lyons/Get...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-30
Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-31
can follow throughout the Big Dance. Women's Tournament ChallengeIllustration by ESPNWomen's Tournament ChallengeCheck your bracket(s) in the 2023 Women's Tournament Challenge, which you can follow throughout the Big Dance. Best of ESPN+AP Photo/Lynne SladkyFantasy Baseball ESPN+ Cheat Sheet: Sleepers, busts, rookies a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-32
predictionsMel Kiper Jr. makes his predictions for Round 1 of the NFL draft, including projecting a trade in the top five. Trending NowAnne-Marie Sorvin-USA TODAY SBoston Bruins record tracker: Wins, points, milestonesThe B's are on pace for NHL records in wins and points, along with some individual superlatives as wel...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-33
on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreEvery XFL game will be streamed on ESPN+. Find out when and where else you can watch the eig...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-34
Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-35
ESPNCopyright: © ESPN Enterprises, Inc. All rights reserved.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", lookup_str='', metadata={'source': 'https://www.espn.com/'}, lookup_index=0),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-36
Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More »Web History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Google© 2023 - Privacy - Terms ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)] Loading a xml file, or using a differen...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-37
[Document(page_content='\n\n10\nEnergy\n3\n2018-01-01\n2018-01-01\nfalse\nUniform test method for the measurement of energy efficiency of commercial packaged boilers.\n§ 431.86\nSection § 431.86\n\nEnergy\nDEPARTMENT OF ENERGY\nENERGY CONSERVATION\nENERGY EFFICIENCY PROGRAM FOR CERTAIN COMMERCIAL AND INDUSTRIAL EQUIP...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-38
rated inputBtu/h\n\nStandards efficiency metric(§\u2009431.87)\n\nTest procedure(corresponding to\nstandards efficiency\nmetric required\nby §\u2009431.87)\n\n\n\nHot Water\nGas-fired\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nHot Water\nGas-fired\n>2,500,000\nCombustion Efficiency\nAppen...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-39
Efficiency\nAppendix A, Section 2.\n\n\nSteam\nOil-fired\n>2,500,000 and ≤5,000,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\n\u2003\n\n>5,000,000\nThermal Efficiency\nAppendix A, Section 2.OR\nAppendix A, Section 3. with Section 2.4.3.2.\n\n\n\n*\u2009Equipment classes for commercial packaged boilers as of July...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
0534d7a53b36-40
previous URL next Weather Contents Loading multiple webpages Load multiple urls concurrently Loading a xml file, or using a different BeautifulSoup parser By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
382f914e5a1d-0
.ipynb .pdf Wikipedia Contents Installation Examples Wikipedia# Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read refe...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/wikipedia.html
e43229f83a08-0
.ipynb .pdf Iugu Iugu# Iugu is a Brazilian services and software as a service (SaaS) company. It offers payment-processing software and application programming interfaces for e-commerce websites and mobile applications. This notebook covers how to load data from the Iugu REST API into a format that can be ingested into...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/iugu.html
93ac4c529fb2-0
.ipynb .pdf Copy Paste Contents Metadata Copy Paste# This notebook covers how to load a document object from something you just want to copy and paste. In this case, you don’t even need to use a DocumentLoader, but rather can just construct the Document directly. from langchain.docstore.document import Document text ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/copypaste.html
c03ab7d7f41a-0
.ipynb .pdf Weather Weather# OpenWeatherMap is an open source weather service provider This loader fetches the weather data from the OpenWeatherMap’s OneCall API, using the pyowm Python package. You must initialize the loader with your OpenWeatherMap API token and the names of the cities you want the weather data for. ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/weather.html
68fde9d54d1d-0
.ipynb .pdf URL Contents URL Selenium URL Loader Setup Playwright URL Loader Setup URL# This covers how to load HTML documents from a list of URLs into a document format that we can use downstream. from langchain.document_loaders import UnstructuredURLLoader urls = [ "https://www.understandingwar.org/backgrounde...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/url.html
68fde9d54d1d-1
!pip install "playwright" !pip install "unstructured" !playwright install from langchain.document_loaders import PlaywrightURLLoader urls = [ "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://goo.gl/maps/NDSHwePEyaHMFGwh8" ] loader = PlaywrightURLLoader(urls=urls, remove_selectors=["header", "footer"]) da...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/url.html
30e84b5ffd31-0
.ipynb .pdf IMSDb IMSDb# IMSDb is the Internet Movie Script Database. This covers how to load IMSDb webpages into a document format that we can use downstream. from langchain.document_loaders import IMSDbLoader loader = IMSDbLoader("https://imsdb.com/scripts/BlacKkKlansman.html") data = loader.load() data[0].page_conte...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html
aaa6a5bc343c-0
.ipynb .pdf File Directory Contents Show a progress bar Use multithreading Change loader class Auto detect file encodings with TextLoader A. Default Behavior B. Silent fail C. Auto detect encodings File Directory# This covers how to use the DirectoryLoader to load all documents in a directory. Under the hood, by defa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
aaa6a5bc343c-1
docs = loader.load() len(docs) 1 If you need to load Python source code files, use the PythonLoader. from langchain.document_loaders import PythonLoader loader = DirectoryLoader('../../../../../', glob="**/*.py", loader_cls=PythonLoader) docs = loader.load() len(docs) 691 Auto detect file encodings with TextLoader# In ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
aaa6a5bc343c-2
│ │ │ 319 │ def decode(self, input, final=False): │ │ 320 │ │ # decode input (taking the buffer into account) │ │ 321 │ │ ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
aaa6a5bc343c-3
│ 85 │ │ │ │ │ finally: │ │ 86 │ │ │ │ │ │ if pbar: │ │ 87 │ │ │ │ │ │ │ pbar.update(1) │ │ ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
aaa6a5bc343c-4
│ 45 │ │ │ except Exception as e: │ │ 46 │ │ │ │ raise RuntimeError(f"Error loading {self.file_path}") from e │ │ 47 │ ╰────────────────...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
aaa6a5bc343c-5
'../../../../../tests/integration_tests/examples/whatsapp_chat.txt', '../../../../../tests/integration_tests/examples/example-utf8.txt'] previous Facebook Chat next HTML Contents Show a progress bar Use multithreading Change loader class Auto detect file encodings with TextLoader A. Default Behavior B. Silent fail...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html
f8e1bad6452a-0
.ipynb .pdf Google Drive Contents Prerequisites 🧑 Instructions for ingesting your Google Docs data Google Drive# Google Drive is a file storage and synchronization service developed by Google. This notebook covers how to load documents from Google Drive. Currently, only Google Docs are supported. Prerequisites# Crea...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_drive.html
f8e1bad6452a-1
from langchain.document_loaders import GoogleDriveLoader loader = GoogleDriveLoader( folder_id="1yucgL9WGgWZdM1TOuKkeghlPizuzMYb5", # Optional: configure whether to recursively fetch files from subfolders. Defaults to False. recursive=False ) docs = loader.load() When you pass a folder_id by default all fil...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_drive.html
632b5161ef08-0
.ipynb .pdf PDF Contents Using PyPDF Using MathPix Using Unstructured Retain Elements Fetching remote PDFs using Unstructured Using PyPDFium2 Using PDFMiner Using PDFMiner to generate HTML text Using PyMuPDF PyPDF Directory Using pdfplumber PDF# Portable Document Format (PDF), standardized as ISO 32000, is a file for...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-1
Document(page_content='LayoutParser : A Uni\x0ced Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1( \x00), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1Allen Institute for AI\nshannons@allenai.org\n2Brown University\nruochen zhang@brown.edu\n3Ha...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-2
processing and computer\nvision, none of them are optimized for challenges in the domain of DIA.\nThis represents a major gap in the existing toolkit, as DIA is central to\nacademic research across a wide range of disciplines in the social sciences\nand humanities. This paper introduces LayoutParser , an open-source\nl...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-3
Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndocument image analysis (DIA) tasks including document image classi\x0ccation [ 11,arXiv:2103.15348v2 [cs.CV] 21 Jun 2021', metadata={'source': 'example_data/layout-parser-paper.pdf', 'page': 0})
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-4
An advantage of this approach is that documents can be retrieved with page numbers. We want to use OpenAIEmbeddings so we have to get the OpenAI API Key. import os import getpass os.environ['OPENAI_API_KEY'] = getpass.getpass('OpenAI API Key:') OpenAI API Key: ········ from langchain.vectorstores import FAISS from lang...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-5
loader = MathpixPDFLoader("example_data/layout-parser-paper.pdf") data = loader.load() Using Unstructured# from langchain.document_loaders import UnstructuredPDFLoader loader = UnstructuredPDFLoader("example_data/layout-parser-paper.pdf") data = loader.load() Retain Elements# Under the hood, Unstructured creates differ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-6
Document(page_content='LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1 (�), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1 Allen Institute for AI\nshannons@allenai.org\n2 Brown University\nruochen zhang@brown.edu\n3 Harvar...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-7
processing and computer\nvision, none of them are optimized for challenges in the domain of DIA.\nThis represents a major gap in the existing toolkit, as DIA is central to\nacademic research across a wide range of disciplines in the social sciences\nand humanities. This paper introduces LayoutParser, an open-source\nli...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-8
Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndocument image analysis (DIA) tasks including document image classification [11,\narXiv:2103.15348v2 [cs.CV] 21 Jun 2021\n', lookup_str='', metadata={'file_path': 'example_data/layout-parser-paper.pdf', 'page_number': 1, 'total_pages': 16, 'fo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-9
Fetching remote PDFs using Unstructured# This covers how to load online pdfs into a document format that we can use downstream. This can be used for various online pdf sites such as https://open.umn.edu/opentextbooks/textbooks/ and https://arxiv.org/archive/ Note: all other pdf loaders can also be used to fetch remote ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-10
[Document(page_content='A WEAK ( k, k ) -LEFSCHETZ THEOREM FOR PROJECTIVE TORIC ORBIFOLDS\n\nWilliam D. Montoya\n\nInstituto de Matem´atica, Estat´ıstica e Computa¸c˜ao Cient´ıfica,\n\nIn [3] we proved that, under suitable conditions, on a very general codimension s quasi- smooth intersection subvariety X in a projectiv...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-11
theorem for projective orbifolds ([11]). When p = d + 1 − s the proof relies on the Cayley trick, a trick which associates to X a quasi-smooth hypersurface Y in a projective vector bundle, and the Cayley Proposition (4.3) which gives an isomorphism of some primitive cohomologies (4.2) of X and Y . The Cayley trick, fol...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-12
N ⊗ Z R .\n\nif there exist k linearly independent primitive elements e\n\n, . . . , e k ∈ N such that σ = { µ\n\ne\n\n+ ⋯ + µ k e k } . • The generators e i are integral if for every i and any nonnegative rational number µ the product µe i is in N only if µ is an integer. • Given two rational simplicial cones σ , σ ′ ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-13
< σ and σ ∩ σ ′ < σ ′ ;\n\nN R = σ\n\n∪ ⋅ ⋅ ⋅ ∪ σ t .\n\nA rational simplicial complete d -dimensional fan Σ defines a d -dimensional toric variety P d Σ having only orbifold singularities which we assume to be projective. Moreover, T ∶ = N ⊗ Z C ∗ ≃ ( C ∗ ) d is the torus action on P d Σ . We denote by Σ ( i ) the i -d...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-14
locus Z ( Σ ) ∶ = V ( B Σ ) in the affine space A d ∶ = Spec ( S ) is the irrelevant locus.\n\nProposition 2.3 (Theorem 5.1.11 [5]) . The toric variety P d Σ is a categorical quotient A d ∖ Z ( Σ ) by the group Hom ( Cl ( Σ ) , C ∗ ) and the group action is induced by the Cl ( Σ ) - grading of S .\n\nNow we give a brief ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-15
A differential form on a complex orbifold Z is defined locally at z ∈ Z as a G -invariant differential form on C d where G ⊂ Gl ( d, C ) and Z is locally isomorphic to d\n\nRoughly speaking the local geometry of orbifolds reduces to local G -invariant geometry.\n\nWe have a complex of differential forms ( A ● ( Z ) , d ) a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-16
. Quasi-smooth hypersurfaces or more generally quasi-smooth intersection sub-\n\nExample 3.2 . Quasi-smooth hypersurfaces or more generally quasi-smooth intersection sub- varieties are quasi-smooth subvarieties (see [2] or [7] for more details).\n\nRemark 3.3 . Quasi-smooth subvarieties are suborbifolds of P d Σ in the...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-17
/ H 2 ( X, O X ) ≃ Dolbeault H 2 ( X, C ) deRham ≃ H 2 dR ( X, C ) / / H 0 , 2 ¯ ∂ ( X )\n\nof the proof follows as the ( 1 , 1 ) -Lefschetz theorem in [6].\n\nRemark 3.5 . For k = 1 and P d Σ as the projective space, we recover the classical ( 1 , 1 ) - Lefschetz theorem.\n\nBy the Hard Lefschetz Theorem for projectiv...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-18
If the dimension of X is 1 , 2 or 3 . The Hodge conjecture holds on X\n\nProof. If the dim C X = 1 the result is clear by the Hard Lefschetz theorem for projective orbifolds. The dimension 2 and 3 cases are covered by Theorem 3.5 and the Hard Lefschetz.\n\nCayley trick and Cayley proposition\n\nThe Cayley trick is a wa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-19
Cox ring, without considering the grading, of P d Σ is C [ x 1 , . . . , x m ] then the Cox ring of P ( E ) is\n\nMoreover for X a quasi-smooth intersection subvariety cut off by f 1 , . . . , f s with deg ( f i ) = [ L i ] we relate the hypersurface Y cut off by F = y 1 f 1 + ⋅ ⋅ ⋅ + y s f s which turns out to be quasi-...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-20
y ) ∈ Y with y ≠ 0 has a preimage. Hence for any subvariety W = V ( I W ) ⊂ X ⊂ P d Σ there exists W ′ ⊂ Y ⊂ P d + s − 1 Σ ,X such that π ( W ′ ) = W , i.e., W ′ = { z = ( x, y ) ∣ x ∈ W } .\n\nFor X ⊂ P d Σ a quasi-smooth intersection variety the morphism in cohomology induced by the inclusion i ∗ ∶ H d − s ( P d Σ , ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-21
− s prim ( X, Q ) with rational coefficients.\n\nH d − s ( P d Σ , C ) and H d − s ( X, C ) have pure Hodge structures, and the morphism i ∗ is com- patible with them, so that H d − s prim ( X ) gets a pure Hodge structure.\n\nThe next Proposition is the Cayley proposition.\n\nProposition 4.3. [Proposition 2.3 in [3] ] L...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-22
C . See the beginning of Section 7.1 in [10] for more details.\n\nTheorem 5.1. Let Y = { F = y 1 f 1 + ⋯ + y k f k = 0 } ⊂ P 2 k + 1 Σ ,X be the quasi-smooth hypersurface associated to the quasi-smooth intersection surface X = X f 1 ∩ ⋅ ⋅ ⋅ ∩ X f k ⊂ P k + 2 Σ . Then on Y the Hodge conjecture holds.\n\nthe Hodge conjec...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-23
1 , . . . , λ C n with rational coefficients of H 1 , 1 prim ( X, Q ) , that is, there are n ∶ = h 1 , 1 prim ( X, Q ) algebraic curves C 1 , . . . , C n in X such that under the Poincar´e duality the class in homology [ C i ] goes to λ C i , [ C i ] ↦ λ C i . Recall that the Cox ring of P k + 2 is contained in the Cox r...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-24
degree. Moreover, by Remark 4.1 each C i is contained in Y = { F = y 1 f 1 + ⋯ + y k f k = 0 } and\n\nfurthermore it has codimension k .\n\nClaim: { C i } ni = 1 is a basis of prim ( ) . It is enough to prove that λ C i is different from zero in H k,k prim ( Y, Q ) or equivalently that the cohomology classes { λ C i } n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-25
,X such that V ∩ Y = C j so they are equal as a homology class of P 2 k + 1 Σ ,X ,i.e., [ V ∩ Y ] = [ C j ] . It is easy to check that π ( V ) ∩ X = C j as a subvariety of P k + 2 Σ where π ∶ ( x, y ) ↦ x . Hence [ π ( V ) ∩ X ] = [ C j ] which is equivalent to say that λ C j comes from P k + 2 Σ which contradicts the ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-26
0 } ⊂ P 2 k + 1 Σ ,X be the quasi-smooth hypersurface associated to a quasi-smooth intersection subvariety X = X f 1 ∩ ⋅ ⋅ ⋅ ∩ X f s ⊂ P d Σ such that d + s = 2 ( k + 1 ) . If the Hodge conjecture holds on X then it holds as well on Y .\n\nCorollary 5.4. If the dimension of Y is 2 s − 1 , 2 s or 2 s + 1 then the Hodge ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-27
U., and Montoya, W. On the Hodge conjecture for quasi-smooth in- tersections in toric varieties. S˜ao Paulo J. Math. Sci. Special Section: Geometry in Algebra and Algebra in Geometry (\n\n). [\n\n] Caramello Jr, F. C. Introduction to orbifolds. a\n\niv:\n\nv\n\n(\n\n). [\n\n] Cox, D., Little, J., and Schenck, H. Toric ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-28
Steenbrink, J. H. M. Intersection form for quasi-homogeneous singularities. Com- positio Mathematica\n\n,\n\n(\n\n),\n\n–\n\n[\n\n] Voisin, C. Hodge Theory and Complex Algebraic Geometry I, vol.\n\nof Cambridge Studies in Advanced Mathematics . Cambridge University Press,\n\n[\n\n] Wang, Z. Z., and Zaffran, D. A remark...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-29
U., and Montoya, W. On the Hodge conjecture for quasi-smooth in- tersections in toric varieties. S˜ao Paulo J. Math. Sci. Special Section: Geometry in Algebra and Algebra in Geometry (2021).\n\nA. R. Cohomology of complete intersections in toric varieties. Pub-', lookup_str='', metadata={'source': '/var/folders/ph/hhm7...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-30
Using PyPDFium2# from langchain.document_loaders import PyPDFium2Loader loader = PyPDFium2Loader("example_data/layout-parser-paper.pdf") data = loader.load() Using PDFMiner# from langchain.document_loaders import PDFMinerLoader loader = PDFMinerLoader("example_data/layout-parser-paper.pdf") data = loader.load() Using P...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-31
cur_text = c.text snippets.append((cur_text,cur_fs)) # Note: The above logic is very straightforward. One can also add more strategies such as removing duplicate snippets (as # headers/footers in a PDF appear on multiple pages so if we find duplicatess safe to assume that it is redundant info) from langchain.docstore.d...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-32
# section (e.g. title of a pdf will have the highest font size but we don't want it to subsume all sections) metadata={'heading':s[0], 'content_font': 0, 'heading_font': s[1]} metadata.update(data.metadata) semantic_snippets.append(Document(page_content='',metadata=metadata)) cur_idx += 1 semantic_snipp...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-33
Document(page_content='Recently, various DL models and datasets have been developed for layout analysis\ntasks. The dhSegment [22] utilizes fully convolutional networks [20] for segmen-\ntation tasks on historical documents. Object detection-based methods like Faster\nR-CNN [28] and Mask R-CNN [12] are used for identif...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-34
by Neudecker et al. [21], it is designed for\nanalyzing historical documents, and provides no supports for recent DL models.\nThe DocumentLayoutAnalysis project8 focuses on processing born-digital PDF\ndocuments via analyzing the stored PDF data. Repositories like DeepLayout9\nand Detectron2-PubLayNet10 are individual ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-35
type as ‘code’.\n7 https://ocr-d.de/en/about\n8 https://github.com/BobLd/DocumentLayoutAnalysis\n9 https://github.com/leonlulu/DeepLayout\n10 https://github.com/hpanwar08/detectron2\n11 https://github.com/JaidedAI/EasyOCR\n12 https://github.com/PaddlePaddle/PaddleOCR\n4\nZ. Shen et al.\nFig. 1: The overall architecture...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-36
and deploying models for general computer\nvision and natural language processing problems. LayoutParser, on the other\nhand, specializes specifically in DIA tasks. LayoutParser is also equipped with a\ncommunity platform inspired by established model hubs such as Torch Hub [23]\nand TensorFlow Hub [1]. It enables the s...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-37
Using PyMuPDF# This is the fastest of the PDF parsing options, and contains detailed metadata about the PDF and its pages, as well as returns one document per page. from langchain.document_loaders import PyMuPDFLoader loader = PyMuPDFLoader("example_data/layout-parser-paper.pdf") data = loader.load() data[0]
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-38
Document(page_content='LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1 (�), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1 Allen Institute for AI\nshannons@allenai.org\n2 Brown University\nruochen zhang@brown.edu\n3 Harvar...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-39
processing and computer\nvision, none of them are optimized for challenges in the domain of DIA.\nThis represents a major gap in the existing toolkit, as DIA is central to\nacademic research across a wide range of disciplines in the social sciences\nand humanities. This paper introduces LayoutParser, an open-source\nli...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-40
Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndocument image analysis (DIA) tasks including document image classification [11,\narXiv:2103.15348v2 [cs.CV] 21 Jun 2021\n', lookup_str='', metadata={'file_path': 'example_data/layout-parser-paper.pdf', 'page_number': 1, 'total_pages': 16, 'fo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-41
Additionally, you can pass along any of the options from the PyMuPDF documentation as keyword arguments in the load call, and it will be pass along to the get_text() call. PyPDF Directory# Load PDFs from directory from langchain.document_loaders import PyPDFDirectoryLoader loader = PyPDFDirectoryLoader("example_data/")...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
632b5161ef08-42
Document(page_content='LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1 ((cid:0)), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1 Allen Institute for AI\n1202 shannons@allenai.org\n2 Brown University\nruochen zhang@brown.e...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html