id stringlengths 14 16 | text stringlengths 36 2.73k | source stringlengths 59 127 |
|---|---|---|
b00eb29f0e62-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/jupyter_notebook.html |
6a17f8844184-0 | .ipynb
.pdf
YouTube transcripts
Contents
Add video info
Add language preferences
YouTube loader from Google Cloud
Prerequisites
🧑 Instructions for ingesting your Google Docs data
YouTube transcripts#
YouTube is an online video sharing and social media platform created by Google.
This notebook covers how to load docu... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/youtube_transcript.html |
6a17f8844184-1 | GoogleApiYoutubeLoader can load from a list of Google Docs document ids or a folder id. You can obtain your folder and document id from the URL:
Note depending on your set up, the service_account_path needs to be set up. See here for more details.
from langchain.document_loaders import GoogleApiClient, GoogleApiYoutube... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/youtube_transcript.html |
e2dc33b558e0-0 | .ipynb
.pdf
DuckDB
Contents
Specifying Which Columns are Content vs Metadata
Adding Source to Metadata
DuckDB#
DuckDB is an in-process SQL OLAP database management system.
Load a DuckDB query with one document per row.
#!pip install duckdb
from langchain.document_loaders import DuckDBLoader
%%file example.csv
Team,Pa... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/duckdb.html |
e2dc33b558e0-1 | previous
Docugami
next
Fauna
Contents
Specifying Which Columns are Content vs Metadata
Adding Source to Metadata
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Jun 16, 2023. | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/duckdb.html |
4749d6a8152e-0 | .ipynb
.pdf
College Confidential
College Confidential#
College Confidential gives information on 3,800+ colleges and universities.
This covers how to load College Confidential webpages into a document format that we can use downstream.
from langchain.document_loaders import CollegeConfidentialLoader
loader = CollegeCon... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-1 | [Document(page_content='\n\n\n\n\n\n\n\nA68FEB02-9D19-447C-B8BC-818149FD6EAF\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Media (2)\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nE45B8B13-33D4-450E-B7DB-F66EFE8F2097\n\n\n\n\n\n\n\n\n\nE45B8B13-33D4-450E-B7DB-F66EFE8F2097\n\n\n\n\n\n\n\n\n\n\n\n\n\... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-2 | Brown has fraternities and sororities.\nPlanning to play sports? Brown has many options for athletes. See them all and learn more about life at Brown on the Student Life page.\n\n\n\n2022 Brown Facts At-A-Glance\n\n\n\n\n\nAcademic Calendar\nOther\n\n\nOverall Acceptance Rate\n6%\n\n\nEarly Decision Acceptance Rate\n16... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-3 | for U.S. colleges and universities is 61% for public schools, and 67% for private, non-profit schools.\nJob Outcomes for Brown Grads\nJob placement stats are a good resource for understanding the value of a degree from Brown by providing a look on how job placement has gone for other grads. \nCheck with Brown directly,... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-4 | as soon as you can. Visit the FAFSA website to apply for student aid. Remember, the first F in FAFSA stands for FREE! You should never have to pay to submit the Free Application for Federal Student Aid (FAFSA), so be very wary of anyone asking you for money.\nLearn more about Tuition and Financial Aid at Brown.\nBased ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-5 | RI 02912\n \n\n\n\n Campus Setting: Urban\n \n\n\n\n\n\n\n\n (401) 863-2378\n \n\n Website\n \n\n Virtual Tour\n \n\n\n\n\n\n\n\n\n\n... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-6 | \n\n \n The deadline for Fall transfer applications to Brown is \n Mar 1. \n \n \n \n\n \n Check the school website \n for more information about deadlines for specific programs or special admissions programs\n ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-7 | Take the Next ACT Test\n \n\n\n\n\n\nBrown SAT Scores\n\n\n\n\nic_reflect\n\n\n\n\n\n\n\n\nComposite SAT Range\n\n\n \n 720 - 770\n \n \n\n\n\nic_reflect\n\n\n\n\n\n\n\n\nMath SAT Range\n\n\n \n ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-8 | & Fees\n\n\n\n $82,286\n \nIn State\n\n\n\n\n $82,286\n \nOut-of-State\n\n\n\n\n\n\n\nCost Breakdown\n\n\nIn State\n\n\nOut-of-State\n\n\n\n\nState Tuition\n\n\n\n $62,680\n \n\n\n\n ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-9 | \n\n\n\n\nHousing\n\n\n\n $15,840\n \n\n\n\n $15,840\n \n\n\n\n\nBooks\n\n\n\n $1,300\n \n\n\n\n $1,300\n \n\n\n\n\n\n ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-10 | \n\n\n\n $82,286\n \n\n\n\n\n\n\n\n\n\n\n\nStudent Life\n\n Wondering what life at Brown is like? There are approximately \n 10,696 students enrolled at \n Brown, \n including 7,349 undergraduate students and \n 3,347 graduate student... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-11 | 4%\n \nPart Time\n\n\n\n\n\n\n\n 94%\n \n\n\n\n\nResidency\n\n\n\n 6%\n \nIn State\n\n\n\n\n 94%\n \nOut-of-State\n\n\n\n\n\n\n\n Data Source: IPEDs and Peterso... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
4749d6a8152e-12 | previous
BiliBili
next
Gutenberg
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Jun 16, 2023. | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/college_confidential.html |
fe29a40320ba-0 | .ipynb
.pdf
WhatsApp Chat
WhatsApp Chat#
WhatsApp (also called WhatsApp Messenger) is a freeware, cross-platform, centralized instant messaging (IM) and voice-over-IP (VoIP) service. It allows users to send text and voice messages, make voice and video calls, and share images, documents, user locations, and other conte... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/whatsapp_chat.html |
e7cc554065b7-0 | .ipynb
.pdf
Blackboard
Blackboard#
Blackboard Learn (previously the Blackboard Learning Management System) is a web-based virtual learning environment and learning management system developed by Blackboard Inc. The software features course management, customizable open architecture, and scalable design that allows inte... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/blackboard.html |
56c69f662e47-0 | .ipynb
.pdf
Microsoft PowerPoint
Contents
Retain Elements
Microsoft PowerPoint#
Microsoft PowerPoint is a presentation program by Microsoft.
This covers how to load Microsoft PowerPoint documents into a document format that we can use downstream.
from langchain.document_loaders import UnstructuredPowerPointLoader
loa... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/microsoft_powerpoint.html |
21e52f3d9afb-0 | .ipynb
.pdf
Fauna
Contents
Query data example
Query with Pagination
Fauna#
Fauna is a Document Database.
Query Fauna documents
#!pip install fauna
Query data example#
from langchain.document_loaders.fauna import FaunaLoader
secret = "<enter-valid-fauna-secret>"
query = "Item.all()" # Fauna query. Assumes that the col... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/fauna.html |
76bac03996f4-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-2 | 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_reply_to_status_id': 1648134341678051328, 'in_reply_to_status_id_str': '1648134341678051328', 'in_reply_to_user_id': 2835451658, 'in_reply_to_user... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-3 | 'DDEEF6', 'profile_text_color': '333333', 'profile_use_background_image': True, 'has_extended_profile': True, 'default_profile': False, 'default_profile_image': False, 'following': None, 'follow_request_sent': None, 'notifications': None, 'translator_type': 'none', 'withheld_in_countries': []}}), | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-5 | '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_reply_to_status_id': 1648134341678051328, 'in_reply_to_status_id_str': '1648134341678051328', 'in_reply_to_user_id': 2835451... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-6 | 'C0DEED', 'profile_sidebar_fill_color': 'DDEEF6', 'profile_text_color': '333333', 'profile_use_background_image': True, 'has_extended_profile': True, 'default_profile': False, 'default_profile_image': False, 'following': None, 'follow_request_sent': None, 'notifications': None, 'translator_type': 'none', 'withheld_in_c... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-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, ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-8 | 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_reply_to_status_id': 1648134341678051328, 'in_reply_to_status_id_str': '1648134341678051328', 'in_reply_to_user_id': 2835451658, 'in_reply_to_user_id_st... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-9 | 'DDEEF6', 'profile_text_color': '333333', 'profile_use_background_image': True, 'has_extended_profile': True, 'default_profile': False, 'default_profile_image': False, 'following': None, 'follow_request_sent': None, 'notifications': None, 'translator_type': 'none', 'withheld_in_countries': []}}), | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-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': {... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-11 | 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_reply_to_status_id': 1648134341678051328, 'in_reply_to_status_id_str': '1648134341678051328', 'in_reply_to_user_id': 2835451658, 'in_reply_to_user_id_st... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-12 | 'DDEEF6', 'profile_text_color': '333333', 'profile_use_background_image': True, 'has_extended_profile': True, 'default_profile': False, 'default_profile_image': False, 'following': None, 'follow_request_sent': None, 'notifications': None, 'translator_type': 'none', 'withheld_in_countries': []}}), | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-14 | 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_reply_to_status_id': 1648134341678051328, 'in_reply_to_status_id_str': '1648134341678051328', 'in_reply_to_user_id': 2835451658, 'in_reply_to_user... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-15 | 'DDEEF6', 'profile_text_color': '333333', 'profile_use_background_image': True, 'has_extended_profile': True, 'default_profile': False, 'default_profile_image': False, 'following': None, 'follow_request_sent': None, 'notifications': None, 'translator_type': 'none', 'withheld_in_countries': []}})] | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
76bac03996f4-16 | previous
2Markdown
next
Text Splitters
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Jun 16, 2023. | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/twitter.html |
5bb3b27a8220-0 | .ipynb
.pdf
PySpark DataFrame Loader
PySpark DataFrame Loader#
This notebook goes over how to load data from a PySpark DataFrame.
#!pip install pyspark
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
5bb3b27a8220-1 | Document(page_content='Athletics', metadata={' "Payroll (millions)"': ' 55.37', ' "Wins"': ' 94'}),
Document(page_content='Rangers', metadata={' "Payroll (millions)"': ' 120.51', ' "Wins"': ' 93'}),
Document(page_content='Orioles', metadata={' "Payroll (millions)"': ' 81.43', ' "Wins"': ' 93'}),
Docum... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
5bb3b27a8220-2 | Document(page_content='Diamondbacks', metadata={' "Payroll (millions)"': ' 74.28', ' "Wins"': ' 81'}),
Document(page_content='Pirates', metadata={' "Payroll (millions)"': ' 63.43', ' "Wins"': ' 79'}),
Document(page_content='Padres', metadata={' "Payroll (millions)"': ' 55.24', ' "Wins"': ' 76'}),
Docum... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
5bb3b27a8220-3 | Document(page_content='Rockies', metadata={' "Payroll (millions)"': ' 78.06', ' "Wins"': ' 64'}),
Document(page_content='Cubs', metadata={' "Payroll (millions)"': ' 88.19', ' "Wins"': ' 61'}),
Document(page_content='Astros', metadata={' "Payroll (millions)"': ' 60.65', ' "Wins"': ' 55'})]
previo... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
95535fabdf64-0 | .ipynb
.pdf
Subtitle
Subtitle#
The SubRip file format is described on the Matroska multimedia container format website as “perhaps the most basic of all subtitle formats.” SubRip (SubRip Text) files are named with the extension .srt, and contain formatted lines of plain text in groups separated by a blank line. Subtitl... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/subtitle.html |
127a21c98f3e-0 | .ipynb
.pdf
Telegram
Telegram#
Telegram Messenger is a globally accessible freemium, cross-platform, encrypted, cloud-based and centralized instant messaging service. The application also provides optional end-to-end encrypted chats and video calling, VoIP, file sharing and several other features.
This notebook covers ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/telegram.html |
0520909e4e58-0 | .ipynb
.pdf
Email
Contents
Using Unstructured
Retain Elements
Using OutlookMessageLoader
Email#
This notebook shows how to load email (.eml) or Microsoft Outlook (.msg) files.
Using Unstructured#
#!pip install unstructured
from langchain.document_loaders import UnstructuredEmailLoader
loader = UnstructuredEmailLoader... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/email.html |
0520909e4e58-1 | previous
CSV
next
EPub
Contents
Using Unstructured
Retain Elements
Using OutlookMessageLoader
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Jun 16, 2023. | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/email.html |
fa57e49e1aa5-0 | .ipynb
.pdf
Blockchain
Contents
Overview
Load NFTs into Document Loader
Option 1: Ethereum Mainnet (default BlockchainType)
Option 2: Polygon Mainnet
Blockchain#
Overview#
The intention of this notebook is to provide a means of testing functionality in the Langchain Document Loader for Blockchain.
Initially this Load... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/blockchain.html |
fa57e49e1aa5-1 | nfts = blockchainLoader.load()
nfts[:2]
Option 2: Polygon Mainnet#
contractAddress = "0x448676ffCd0aDf2D85C1f0565e8dde6924A9A7D9" # Polygon Mainnet contract address
blockchainType = BlockchainType.POLYGON_MAINNET
blockchainLoader = BlockchainDocumentLoader(contract_address=contractAddress,
... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/blockchain.html |
d49372cc10e2-0 | .ipynb
.pdf
Airtable
Airtable#
! pip install pyairtable
from langchain.document_loaders import AirtableLoader
Get your API key here.
Get ID of your base here.
Get your table ID from the table url as shown here.
api_key="xxx"
base_id="xxx"
table_id="xxx"
loader = AirtableLoader(api_key,table_id,base_id)
docs = loader.lo... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/airtable.html |
04f25361658b-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/google_drive.html |
04f25361658b-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/google_drive.html |
b8bd9ca5879e-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-2 | also incorporates a community\nplatform for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available at https://layout-parser.github.io ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-3 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-4 | 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 different “elements” for different chunks of text. By default we combine... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-5 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-6 | for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available at https://layout-parser.github.io.\nKeywords: Document Image Analysis · De... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-7 | 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 ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-8 | [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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-9 | we translate some results for quasi-smooth intersection subvarieties to\n\nAcknowledgement. I thank Prof. Ugo Bruzzo and Tiago Fonseca for useful discus- sions. I also acknowledge support from FAPESP postdoctoral grant No. 2019/23499-7.\n\nLet M be a free abelian group of rank d , let N = Hom ( M, Z ) , and N R = N ⊗ Z... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-10 | 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 -dimensional cones\n\nFor a cone σ ∈ Σ, ˆ σ is the set of 1-dimensional cone in Σ that are not contained in σ\n\nand x ˆ σ ∶ = ∏ ρ ∈ ˆ σ x ρ is the associated monomial in S .\n\nDefinition 2.... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-11 | 2.5. 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 ) , ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-12 | 1 (O ∗ X ) → H 2 ( X, Z ) → H 2 (O X ) ≃ H 0 , 2 ( X )\n\nwhere the last isomorphisms is due to Steenbrink in [9]. Now, it is enough to prove the commutativity of the next diagram\n\nwhere the last isomorphisms is due to Steenbrink in [9]. Now,\n\nH 2 ( X, Z ) / / H 2 ( X, O X ) ≃ Dolbeault H 2 ( X, C ) deRham ≃ H 2 dR... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-13 | 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 way to associate to a quasi-smooth intersection subvariety a quasi-... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-14 | 4.1 . There is a morphism ι ∶ X → Y ⊂ P d + s − 1 Σ ,X . Moreover every point z ∶ = ( x, 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 intersec... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-15 | ⋅ ⋅∩ X s be a quasi-smooth intersec- tion subvariety in P d Σ cut off by homogeneous polynomials f 1 . . . f s . Then for p ≠ d + s − 1 2 , d + s − 3 2\n\nRemark 4.5 . The above isomorphisms are also true with rational coefficients since H ● ( X, C ) = H ● ( X, Q ) ⊗ Q C . See the beginning of Section 7.1 in [10] for more... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-16 | 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 ring of P 2 k + 1 Σ ,X without considering the grading. Considering the grad... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-17 | of homology there exists a ( k + 2 ) -dimensional algebraic subvariety V ⊂ P 2 k + 1 Σ ,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 ] = [ ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-18 | Hodge conjecture holds on Y .\n\nProof. By Proposition 5.3 and Corollary 3.6.\n\n[\n\n] Angella, D. Cohomologies of certain orbifolds. Journal of Geometry and Physics\n\n(\n\n),\n\n–\n\n[\n\n] Batyrev, V. V., and Cox, D. A. On the Hodge structure of projective hypersur- faces in toric varieties. Duke Mathematical Journ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-19 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-20 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-21 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-22 | # 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-23 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-24 | usually do not come with comprehensive functionalities for other\nDIA tasks like layout analysis.\nRecent years have also seen numerous efforts to create libraries for promoting\nreproducibility and reusability in the field of DL. Libraries like Dectectron2 [35],\n6 The number shown is obtained by specifying the search t... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-25 | Torch Hub [23]\nand TensorFlow Hub [1]. It enables the sharing of pretrained models as well as\nfull document processing pipelines that are unique to DIA tasks.\nThere have been a variety of document data collections to facilitate the\ndevelopment of DL models. Some examples include PRImA [3](magazine layouts),\nPubLay... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-26 | 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] | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-27 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-28 | for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available at https://layout-parser.github.io.\nKeywords: Document Image Analysis · De... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-29 | 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/")... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-30 | 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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-31 | promote extensibility, LayoutParser also incorporates a community\nplatform for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
b8bd9ca5879e-32 | previous
Pandas DataFrame
next
Sitemap
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
By Harrison Chase
© Copyright 2023, Harri... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/pdf.html |
667e148cf600-0 | .ipynb
.pdf
Open Document Format (ODT)
Open Document Format (ODT)#
The Open Document Format for Office Applications (ODF), also known as OpenDocument, is an open file format for word processing documents, spreadsheets, presentations and graphics and using ZIP-compressed XML files. It was developed with the aim of provi... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/odt.html |
5d05c9047a0f-0 | .ipynb
.pdf
Azure Blob Storage Container
Contents
Specifying a prefix
Azure Blob Storage Container#
Azure Blob Storage is Microsoft’s object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data. Unstructured data is data that doesn’t adhere to a particular data mo... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/azure_blob_storage_container.html |
5d05c9047a0f-1 | previous
AWS S3 File
next
Azure Blob Storage File
Contents
Specifying a prefix
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Jun 16, 2023. | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/azure_blob_storage_container.html |
b2447fbabcc9-0 | .ipynb
.pdf
Trello
Contents
Features
Trello#
Trello is a web-based project management and collaboration tool that allows individuals and teams to organize and track their tasks and projects. It provides a visual interface known as a “board” where users can create lists and cards to represent their tasks and activitie... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/trello.html |
b2447fbabcc9-1 | from getpass import getpass
API_KEY = getpass()
TOKEN = getpass()
········
········
from langchain.document_loaders import TrelloLoader
# Get the open cards from "Awesome Board"
loader = TrelloLoader.from_credentials(
"Awesome Board",
api_key=API_KEY,
token=TOKEN,
card_filter="open",
)
documents = l... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/trello.html |
b2447fbabcc9-2 | loader = TrelloLoader.from_credentials(
"test",
api_key=API_KEY,
token=TOKEN,
include_card_name= False,
include_checklist= False,
include_comments= False,
)
documents = loader.load()
print("Document: " + documents[0].page_content)
print(documents[0].metadata)
Contents
Features
By Harrison Ch... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/trello.html |
ea6eba7eeaa4-0 | .ipynb
.pdf
ReadTheDocs Documentation
ReadTheDocs Documentation#
Read the Docs is an open-sourced free software documentation hosting platform. It generates documentation written with the Sphinx documentation generator.
This notebook covers how to load content from HTML that was generated as part of a Read-The-Docs bui... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/readthedocs_documentation.html |
4d1c3837677f-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... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-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 ... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-2 | 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: Sign Up\n\n\n\n\n\n\n\nHow To Watch PGA TOUR\n\n\n\n\n\n\nFa... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-3 | fantasy baseball for free!TOP HEADLINESQB Jackson has requested trade from RavensSources: 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, NuggetsLyn... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-4 | 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/Getty ImagesTALKING BASKETBALLWhy AD needs to be more assertive with LeBron on the court10h1:33Why Perk won't blame... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-5 | Men's Tournament ChallengeIllustration by ESPNMen's Tournament ChallengeCheck your bracket(s) in the 2023 Men's Tournament Challenge, which you 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,... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-6 | Watch on ESPN+Gregory Fisher/Icon Sportswire2023 NCAA men's hockey: Results, bracket, how to watchThe matchups in Tampa promise to be thrillers, featuring plenty of star power, high-octane offense and stellar defense.(AP Photo/Koji Sasahara, File)How to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playof... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
4d1c3837677f-7 | Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball: Sign Up\n\n\n\n\n\n\n\nHow To Watch PGA TOUR\n\n\nESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n... | rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.