id
stringlengths
14
16
text
stringlengths
36
2.73k
source
stringlengths
49
117
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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
f97307439be7-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 28, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/web_base.html
880f683a3e21-0
.ipynb .pdf Google BigQuery Contents Basic Usage Specifying Which Columns are Content vs Metadata Adding Source to Metadata Google BigQuery# Google BigQuery is a serverless and cost-effective enterprise data warehouse that works across clouds and scales with your data. BigQuery is a part of the Google Cloud Platform....
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_bigquery.html
880f683a3e21-1
loader = BigQueryLoader(BASE_QUERY) data = loader.load() print(data) [Document(page_content='id: 1\ndna_sequence: ATTCGA\norganism: Lokiarchaeum sp. (strain GC14_75).', lookup_str='', metadata={}, lookup_index=0), Document(page_content='id: 2\ndna_sequence: AGGCGA\norganism: Heimdallarchaeota archaeon (strain LC_2).', ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_bigquery.html
880f683a3e21-2
id as source FROM ( SELECT ARRAY ( SELECT AS STRUCT 1 AS id, "ATTCGA" AS dna_sequence, "Lokiarchaeum sp. (strain GC14_75)." AS organism UNION ALL SELECT AS STRUCT 2 AS id, "AGGCGA" AS dna_sequence, "Heimdallarchaeota archaeon (strain LC_2)." AS organism UNION ALL SELECT AS ST...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_bigquery.html
880f683a3e21-3
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 28, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_bigquery.html
a1949ba553d3-0
.ipynb .pdf Image captions Contents Prepare a list of image urls from Wikimedia Create the loader Create the index Query Image captions# By default, the loader utilizes the pre-trained Salesforce BLIP image captioning model. This notebook shows how to use the ImageCaptionLoader to generate a query-able index of image...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
a1949ba553d3-1
'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Messier83_-_Heic1403a.jpg/277px-Messier83_-_Heic1403a.jpg', 'https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/2022-01-22_Men%27s_World_Cup_at_2021-22_St._Moritz%E2%80%93Celerina_Luge_World_Cup_and_European_Championships_by_Sandro_Halank%E2%80%93257...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
a1949ba553d3-2
warnings.warn( [Document(page_content='an image of a frog on a flower [SEP]', metadata={'image_path': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Hyla_japonica_sep01.jpg/260px-Hyla_japonica_sep01.jpg'}), Document(page_content='an image of a shark swimming in the ocean [SEP]', metadata={'image_path': 'ht...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
a1949ba553d3-3
Document(page_content='an image of the spiral galaxy [SEP]', metadata={'image_path': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Messier83_-_Heic1403a.jpg/277px-Messier83_-_Heic1403a.jpg'}), Document(page_content='an image of a man on skis in the snow [SEP]', metadata={'image_path': 'https://upload.wiki...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
a1949ba553d3-4
index = VectorstoreIndexCreator().from_loaders([loader]) /Users/saitosean/dev/langchain/.venv/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html from .autonotebook import tqdm as notebo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
167e3614c119-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
bf8f11091703-0
.ipynb .pdf Twitter Twitter# Twitter is an online social media and social networking service. This loader fetches the text from the Tweets of a list of Twitter users, using the tweepy Python package. You must initialize the loader with your Twitter API token, and you need to pass in the Twitter username you want to ext...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-1
[Document(page_content='@MrAndyNgo @REI One store after another shutting down', metadata={'created_at': 'Tue Apr 18 03:45:50 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-2
[], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-3
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-4
Document(page_content='@KanekoaTheGreat @joshrogin @glennbeck Large ships are fundamentally vulnerable to ballistic (hypersonic) missiles', metadata={'created_at': 'Tue Apr 18 03:43:25 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-5
down', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-6
'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-7
Document(page_content='@KanekoaTheGreat The Golden Rule', metadata={'created_at': 'Tue Apr 18 03:37:17 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'nothing', 'url': None, ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-8
'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-9
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-10
Document(page_content='@KanekoaTheGreat 🧐', metadata={'created_at': 'Tue Apr 18 03:35:48 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'nothing', 'url': None, 'entities': {...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-11
'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-12
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-13
Document(page_content='@TRHLofficial What’s he talking about and why is it sponsored by Erik’s son?', metadata={'created_at': 'Tue Apr 18 03:32:17 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': N...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-14
'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="ht...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-15
'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
bf8f11091703-16
previous 2Markdown next Text Splitters By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 28, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
5662859b224c-0
.ipynb .pdf Facebook Chat Facebook Chat# Messenger is an American proprietary instant messaging app and platform developed by Meta Platforms. Originally developed as Facebook Chat in 2008, the company revamped its messaging service in 2010. This notebook covers how to load data from the Facebook Chats into a format tha...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/facebook_chat.html
5662859b224c-1
loader = FacebookChatLoader("example_data/facebook_chat.json") loader.load() [Document(page_content='User 2 on 2023-02-05 03:46:11: Bye!\n\nUser 1 on 2023-02-05 03:43:55: Oh no worries! Bye\n\nUser 2 on 2023-02-05 03:24:37: No Im sorry it was my mistake, the blue one is not for sale\n\nUser 1 on 2023-02-05 03:05:40: I ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/facebook_chat.html
234be6c72e12-0
.ipynb .pdf Images Contents Using Unstructured Retain Elements Images# This covers how to load images such as JPG or PNG into a document format that we can use downstream. Using Unstructured# #!pip install pdfminer from langchain.document_loaders.image import UnstructuredImageLoader loader = UnstructuredImageLoader("...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
234be6c72e12-1
Document(page_content="LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\n\n\n‘Zxjiang Shen' (F3}, Ruochen Zhang”, Melissa Dell*, Benjamin Charles Germain\nLeet, Jacob Carlson, and Weining LiF\n\n\nsugehen\n\nshangthrows, et\n\n“Abstract. Recent advanocs in document image analysis (DIA) h...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
234be6c72e12-2
streamlining the sage of DL in DIA research and appicn\n‘tons The core LayoutFaraer brary comes with a sch of simple and\nIntative interfaee or applying and eutomiing DI. odel fr Inyo de\npltfom for sharing both protrined modes an fal document dist\n{ation pipeline We demonutate that LayootPareer shea fr both\nlightwei...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
234be6c72e12-3
Retain Elements# Under the hood, Unstructured creates different “elements” for different chunks of text. By default we combine those together, but you can easily keep that separation by specifying mode="elements". loader = UnstructuredImageLoader("layout-parser-paper-fast.jpg", mode="elements") data = loader.load() dat...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
1d44d2d2038b-0
.ipynb .pdf Joplin Joplin# Joplin is an open source note-taking app. Capture your thoughts and securely access them from any device. This notebook covers how to load documents from a Joplin database. Joplin has a REST API for accessing its local database. This loader uses the API to retrieve all notes in the database a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/joplin.html
331a3cde2d6c-0
.ipynb .pdf Obsidian Obsidian# Obsidian is a powerful and extensible knowledge base that works on top of your local folder of plain text files. This notebook covers how to load documents from an Obsidian database. Since Obsidian is just stored on disk as a folder of Markdown files, the loader just takes a path to this ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/obsidian.html
dd375cd5f1ef-0
.ipynb .pdf Reddit Reddit# Reddit (reddit) is an American social news aggregation, content rating, and discussion website. This loader fetches the text from the Posts of Subreddits or Reddit users, using the praw Python package. Make a Reddit Application and initialize the loader with with your Reddit API credentials. ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-1
documents = loader.load() documents[:5] [Document(page_content='Hello, I am not looking for investment advice. I will apply my own due diligence. However, I am interested if anyone knows as a UK resident how fees and exchange rate differences would impact performance?\n\nI am planning to create a pie of index funds (pe...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-2
Document(page_content='Have a general question? Want to offer some commentary on markets? Maybe you would just like to throw out a neat fact that doesn\'t warrant a self post? Feel free to post here! \n\nIf your question is "I have $10,000, what do I do?" or other "advice for my personal situation" questions, you sh...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-3
big debts (include interest rate) or expenses? \n* And any other relevant financial information will be useful to give you a proper answer. \n\nPlease consider consulting our FAQ first - https://www.reddit.com/r/investing/wiki/faq\nAnd our [side bar](https://www.reddit.com/r/investing/about/sidebar) also has useful r...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-4
Thread - April 27, 2023', 'post_score': 5, 'post_id': '130eszz', 'post_url': 'https://www.reddit.com/r/investing/comments/130eszz/daily_general_discussion_and_advice_thread_april/', 'post_author': Redditor(name='AutoModerator')}),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-5
Document(page_content="Based on recent news about salt battery advancements and the overall issues of lithium, I was wondering what would be feasible ways to invest into non-lithium based battery technologies? CATL is of course a choice, but the selection of brokers I currently have in my disposal don't provide HK stoc...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
dd375cd5f1ef-6
Document(page_content='Hello everyone,\n\nI would really like to invest in an ETF that follows spy or another big index, as I think this form of investment suits me best. \n\nThe problem is, that I live in Denmark where ETFs and funds are taxed annually on unrealised gains at quite a steep rate. This means that an ETF ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
d23a7ee676bb-0
.ipynb .pdf Jupyter Notebook Jupyter Notebook# Jupyter Notebook (formerly IPython Notebook) is a web-based interactive computational environment for creating notebook documents. This notebook covers how to load data from a Jupyter notebook (.ipynb) into a format suitable by LangChain. from langchain.document_loaders im...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/jupyter_notebook.html
d23a7ee676bb-1
traceback (bool): whether to include full traceback (default is False). loader.load() [Document(page_content='\'markdown\' cell: \'[\'# Notebook\', \'\', \'This notebook covers how to load data from an .ipynb notebook into a format suitable by LangChain.\']\'\n\n \'code\' cell: \'[\'from langchain.document_loaders impo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/jupyter_notebook.html
3f51c6a121d1-0
.ipynb .pdf Modern Treasury Modern Treasury# Modern Treasury simplifies complex payment operations. It is a unified platform to power products and processes that move money. Connect to banks and payment systems Track transactions and balances in real-time Automate payment operations for scale This notebook covers how t...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/modern_treasury.html
490b25d45d1b-0
.ipynb .pdf 2Markdown 2Markdown# 2markdown service transforms website content into structured markdown files. # You will need to get your own API key. See https://2markdown.com/login api_key = "" from langchain.document_loaders import ToMarkdownLoader loader = ToMarkdownLoader.from_api_key(url="https://python.langchain...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
490b25d45d1b-1
Concepts and terminology. - [Concepts and terminology](https://python.langchain.com/en/latest/getting_started/concepts.html) Tutorials created by community experts and presented on YouTube. - [Tutorials](https://python.langchain.com/en/latest/getting_started/tutorials.html) ## Modules [\#](\#modules "Permalink to this ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
490b25d45d1b-2
- [Callbacks](https://python.langchain.com/en/latest/modules/callbacks/getting_started.html): Callbacks let you log and stream the intermediate steps of any chain, making it easy to observe, debug, and evaluate the internals of an application. ## Use Cases [\#](\#use-cases "Permalink to this headline") Best practices a...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
490b25d45d1b-3
- [Code Understanding](https://python.langchain.com/en/latest/use_cases/code.html): Recommended reading if you want to use language models to analyze code. - [Interacting with APIs](https://python.langchain.com/en/latest/use_cases/apis.html): Enabling language models to interact with APIs is extremely powerful. It give...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
490b25d45d1b-4
- [Gallery](https://python.langchain.com/en/latest/additional_resources/gallery.html): A collection of our favorite projects that use LangChain. Useful for finding inspiration or seeing how things were done in other applications. - [Deployments](https://python.langchain.com/en/latest/additional_resources/deployments.ht...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
5ef5fa757b19-0
.ipynb .pdf Roam Contents 🧑 Instructions for ingesting your own dataset Roam# ROAM is a note-taking tool for networked thought, designed to create a personal knowledge base. This notebook covers how to load documents from a Roam database. This takes a lot of inspiration from the example repo here. 🧑 Instructions fo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/roam.html
e430d6d5462a-0
.ipynb .pdf AWS S3 Directory Contents Specifying a prefix AWS S3 Directory# Amazon Simple Storage Service (Amazon S3) is an object storage service AWS S3 Directory This covers how to load document objects from an AWS S3 Directory object. #!pip install boto3 from langchain.document_loaders import S3DirectoryLoader loa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/aws_s3_directory.html
a4ba0b0dcac6-0
.ipynb .pdf Confluence Confluence# Confluence is a wiki collaboration platform that saves and organizes all of the project-related material. Confluence is a knowledge base that primarily handles content management activities. A loader for Confluence pages. This currently supports both username/api_key and Oauth2 login....
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/confluence.html
ec1a23edc730-0
.ipynb .pdf EPub Contents Retain Elements EPub# EPUB is an e-book file format that uses the “.epub” file extension. The term is short for electronic publication and is sometimes styled ePub. EPUB is supported by many e-readers, and compatible software is available for most smartphones, tablets, and computers. This co...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/epub.html
af5b7033b8a4-0
.ipynb .pdf Unstructured File Contents Retain Elements Define a Partitioning Strategy PDF Example Unstructured API Unstructured File# This notebook covers how to use Unstructured package to load files of many types. Unstructured currently supports loading of text files, powerpoints, html, pdfs, images, and more. # # ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
af5b7033b8a4-1
loader = UnstructuredFileLoader("./example_data/state_of_the_union.txt", mode="elements") docs = loader.load() docs[:5] [Document(page_content='Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.', lookup_str=...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
af5b7033b8a4-2
from langchain.document_loaders import UnstructuredFileLoader loader = UnstructuredFileLoader("layout-parser-paper-fast.pdf", strategy="fast", mode="elements") docs = loader.load() docs[:5] [Document(page_content='1', lookup_str='', metadata={'source': 'layout-parser-paper-fast.pdf', 'filename': 'layout-parser-paper-fa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
af5b7033b8a4-3
docs = loader.load() docs[:5] [Document(page_content='LayoutParser : A Unified Toolkit for Deep Learning Based Document Image Analysis', lookup_str='', metadata={'source': '../../layout-parser-paper.pdf'}, lookup_index=0), Document(page_content='Zejiang Shen 1 ( (ea)\n ), Ruochen Zhang 2 , Melissa Dell 3 , Benjamin Cha...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
af5b7033b8a4-4
loader = UnstructuredAPIFileLoader( file_path=filenames[0], api_key="FAKE_API_KEY", ) docs = loader.load() docs[0] Document(page_content='Lorem ipsum dolor sit amet.', metadata={'source': 'example_data/fake.docx'}) You can also batch multiple files through the Unstructured API in a single API using Unstructured...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
745009f27e5e-0
.ipynb .pdf JSON Contents Using JSONLoader Extracting metadata The metadata_func Common JSON structures with jq schema JSON# JSON (JavaScript Object Notation) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pair...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-1
{'content': 'Im not interested in this bag. Im interested in the ' 'blue one!', 'sender_name': 'User 1', 'timestamp_ms': 1675595109305}, {'content': 'Here is $129', 'sender_name': 'User 2', 'timestamp_ms': 1675595068468}...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-2
loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[].content') data = loader.load() pprint(data) [Document(page_content='Bye!', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-3
Document(page_content='Online is at least $100', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 8}), Document(page_content='How much do you want?', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/index...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-4
Additionally, we now have to explicitly specify in the loader, via the content_key argument, the key from the record where the value for the page_content needs to be extracted from. # Define the metadata extraction function. def metadata_func(record: dict, metadata: dict) -> dict: metadata["sender_name"] = record.g...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-5
Document(page_content='I thought you were selling the blue one!', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 4, 'sender_name': 'User 1', 'timestamp_ms': 1675595140251}), Document(page_content='Im not interested in th...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-6
Document(page_content='Goodmorning! $50 is too low.', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 10, 'sender_name': 'User 2', 'timestamp_ms': 1675577876645}), Document(page_content='Hi! Im interested in your bag. Im ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-7
return metadata loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[]', content_key="content", metadata_func=metadata_func ) data = loader.load() pprint(data) [Document(page_content='Bye!', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
745009f27e5e-8
Document(page_content='Here is $129', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 6, 'sender_name': 'User 2', 'timestamp_ms': 1675595068468}), Document(page_content='', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/ex...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html