id stringlengths 14 16 | text stringlengths 29 2.73k | source stringlengths 49 117 |
|---|---|---|
e2e20e925ede-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
e2e20e925ede-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
e2e20e925ede-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
04c23f61b4ba-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html |
04c23f61b4ba-1 | previous
CSV
next
EPub
Contents
Using Unstructured
Retain Elements
Using OutlookMessageLoader
By Harrison Chase
ยฉ Copyright 2023, Harrison Chase.
Last updated on Jun 02, 2023. | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html |
183b0b9f265c-0 | .ipynb
.pdf
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.
from lang... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html |
183b0b9f265c-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 |
183b0b9f265c-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 |
183b0b9f265c-3 | the resources in the sidebar.\n\nBe aware that these answers are just opinions of Redditors and should be used as a starting point for your research. You should strongly consider seeing a registered investment adviser if you need professional support before making any financial decisions!', metadata={'post_subreddit': ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html |
183b0b9f265c-4 | 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 |
183b0b9f265c-5 | 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 |
600ab6fef4e5-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/telegram.html |
2e81eb8ada8e-0 | .ipynb
.pdf
iFixit
Contents
Searching iFixit using /suggest
iFixit#
iFixit is the largest, open repair community on the web. The site contains nearly 100k repair manuals, 200k Questions & Answers on 42k devices, and all the data is licensed under CC-BY-NC-SA 3.0.
This loader will allow you to download the text of a r... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-1 | data = loader.load()
data
[Document(page_content="# Banana Teardown\nIn this teardown, we open a banana to see what's inside. Yellow and delicious, but most importantly, yellow.\n\n\n###Tools Required:\n\n - Fingers\n\n - Teeth\n\n - Thumbs\n\n\n###Parts Required:\n\n - None\n\n\n## Step 1\nTake one banana from the bu... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-2 | [Document(page_content='# My iPhone 6 is typing and opening apps by itself\nmy iphone 6 is typing and opening apps by itself. How do i fix this. I just bought it last week.\nI restored as manufactures cleaned up the screen\nthe problem continues\n\n## 27 Answers\n\nFilter by: \n\nMost Helpful\nNewest\nOldest\n\n### Acc... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-3 | reset the hardware (hold the power and home button till the screen goes off and comes back with apple logo). release the buttons when you see this.\nThen, connect to your laptop and log in to iTunes and reset your phone completely. (please take a back-up first).\nAnd your phone should be good to use again.\nWhat really... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-4 | a repair shop, they opened the phone, disconnected the three ribbons the screen has, blew up and cleaned the connectors and connected the screen again and it solved the issueโฆ itโs hardware, not software.\n\n\n\n### Other Answer\nHey.\nJust had this problem now. As it turns out, you just need to plug in your phone. I u... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-5 | Hope I can fix it!!!!\n\n\n\n### Other Answer\nNo answer, but same problem with iPhone 6 plus--random, self-generated jumping amongst apps and typing on its own--plus freezing regularly (aha--maybe that\'s what the "plus" in "6 plus" refers to?). An Apple Genius recommended upgrading to iOS 11.3.1 from 11.2.2, to see ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-6 | on typing letters incorrectly. I have been doing it for a day until i come across this article. Very helpful! God bless you!!\n\n\n\n### Other Answer\nI just turned it off, and turned it back on.\n\n\n\n### Other Answer\nMy problem has not gone away completely but its better now i changed my charger and turned off pred... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-7 | below. I took it off and it stopped. I ordered more protectors from amazon and replaced it\n\n\n\n### Other Answer\niPhone 6 Plus first generationโฆ.I had the same issues as all above, apps opening by themselves, self typing, ultra sensitive screen, items jumping around all overโฆ.it even called someone on FaceTime twice... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-8 | I try to remove the screen or should I follow your step above.\n\n\n\n### Other Answer\nI tried everything and it seems to come back to needing the original iPhone cableโฆor at least another 1 that would have come with another iPhoneโฆnot the $5 Store fast charging cables. My original cable is pretty beat up - like most... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-9 | self or touch IC. in my country some repair shops just change them all for almost 40$ since they dont want to troubleshoot one by one. readers of this comment also should know that partial screen not responding in other iphone models might also have an issue in LCD connector on the motherboard, specially if you lock/un... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-10 | loader = IFixitLoader("https://www.ifixit.com/Device/Standard_iPad")
data = loader.load()
data
[Document(page_content="Standard iPad\nThe standard edition of the tablet computer made by Apple.\n== Background Information ==\n\nOriginally introduced in January 2010, the iPad is Apple's standard edition of their tablet co... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-11 | data = IFixitLoader.load_suggestions("Banana")
data
[Document(page_content='Banana\nTasty fruit. Good source of potassium. Yellow.\n== Background Information ==\n\nCommonly misspelled, this wildly popular, phone shaped fruit serves as nutrition and an obstacle to slow down vehicles racing close behind you. Also used co... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
2e81eb8ada8e-12 | Document(page_content="# Banana Teardown\nIn this teardown, we open a banana to see what's inside. Yellow and delicious, but most importantly, yellow.\n\n\n###Tools Required:\n\n - Fingers\n\n - Teeth\n\n - Thumbs\n\n\n###Parts Required:\n\n - None\n\n\n## Step 1\nTake one banana from the bunch.\nDon't squeeze too har... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/ifixit.html |
999075dc9f74-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 |
999075dc9f74-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 |
999075dc9f74-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 |
999075dc9f74-3 | โ 85 โ โ โ โ โ finally: โ
โ 86 โ โ โ โ โ โ if pbar: โ
โ 87 โ โ โ โ โ โ โ pbar.update(1) โ
โ ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/file_directory.html |
999075dc9f74-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 |
999075dc9f74-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 |
c9176bb1c732-0 | .ipynb
.pdf
Spreedly
Spreedly#
Spreedly is a service that allows you to securely store credit cards and use them to transact against any number of payment gateways and third party APIs. It does this by simultaneously providing a card tokenization/vault service as well as a gateway and receiver integration service. Paym... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-1 | Using embedded DuckDB without persistence: data will be transient
# Test the retriever
spreedly_doc_retriever.get_relevant_documents("CRC")
[Document(page_content='installment_grace_period_duration\nreference_data_code\ninvoice_number\ntax_management_indicator\noriginal_amount\ninvoice_amount\nvat_tax_rate\nmobile_remo... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-2 | Document(page_content='BG\nBH\nBI\nBJ\nBM\nBN\nBO\nBR\nBS\nBT\nBW\nBY\nBZ\nCA\nCC\nCF\nCH\nCK\nCL\nCM\nCN\nCO\nCR\nCV\nCX\nCY\nCZ\nDE\nDJ\nDK\nDO\nDZ\nEC\nEE\nEG\nEH\nES\nET\nFI\nFJ\nFK\nFM\nFO\nFR\nGA\nGB\nGD\nGE\nGF\nGG\nGH\nGI\nGL\nGM\nGN\nGP\nGQ\nGR\nGT\nGU\nGW\nGY\nHK\nHM\nHN\nHR\nHT\nHU\nID\nIE\nIL\nIM\nIN\nIO\nI... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-3 | KZ\nLA\nLC\nLI\nLK\nLS\nLT\nLU\nLV\nMA\nMC\nMD\nME\nMG\nMH\nMK\nML\nMN\nMO\nMP\nMQ\nMR\nMS\nMT\nMU\nMV\nMW\nMX\nMY\nMZ\nNA\nNC\nNE\nNF\nNG\nNI\nNL\nNO\nNP\nNR\nNU\nNZ\nOM\nPA\nPE\nPF\nPH\nPK\nPL\nPN\nPR\nPT\nPW\nPY\nQA\nRE\nRO\nRS\nRU\nRW\nSA\nSB\nSC\nSE\nSG\nSI\nSK\nSL\nSM\nSN\nST\nSV\nSZ\nTC\nTD\nTF\nTG\nTH\nTJ\nTK\n... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-4 | VI\nVN\nVU\nWF\nWS\nYE\nYT\nZA\nZM\nsupported_cardtypes: | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-5 | visa\nmaster\namerican_express\ndiscover\njcb\nmaestro\nelo\nnaranja\ncabal\nunionpay\nregions: asia_pacific\neurope\nmiddle_east\nnorth_america\nhomepage: http://worldpay.com\ndisplay_api_url: https://secure.worldpay.com/jsp/merchant/xml/paymentService.jsp\ncompany_name: WorldPay', metadata={'source': 'https://core.sp... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-6 | Document(page_content='gateway_specific_fields: receipt_email\nradar_session_id\nskip_radar_rules\napplication_fee\nstripe_account\nmetadata\nidempotency_key\nreason\nrefund_application_fee\nrefund_fee_amount\nreverse_transfer\naccount_id\ncustomer_id\nvalidate\nmake_default\ncancellation_reason\ncapture_method\nconfir... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-7 | Document(page_content='mdd_field_57\nmdd_field_58\nmdd_field_59\nmdd_field_60\nmdd_field_61\nmdd_field_62\nmdd_field_63\nmdd_field_64\nmdd_field_65\nmdd_field_66\nmdd_field_67\nmdd_field_68\nmdd_field_69\nmdd_field_70\nmdd_field_71\nmdd_field_72\nmdd_field_73\nmdd_field_74\nmdd_field_75\nmdd_field_76\nmdd_field_77\nmdd... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-8 | ERROR: type should be string, got "https://api.cybersource.com\\ncompany_name: CyberSource REST', metadata={'source': 'https://core.spreedly.com/v1/gateways_options.json'})]" | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
c9176bb1c732-9 | previous
Slack
next
Stripe
By Harrison Chase
ยฉ Copyright 2023, Harrison Chase.
Last updated on Jun 02, 2023. | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
7e9ba266321c-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/subtitle.html |
96e49a51a3e7-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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\... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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,... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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 ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-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... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
96e49a51a3e7-12 | previous
BiliBili
next
Gutenberg
By Harrison Chase
ยฉ Copyright 2023, Harrison Chase.
Last updated on Jun 02, 2023. | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html |
7cf29f7389d6-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 |
82fb8091e6ab-0 | .ipynb
.pdf
Google Cloud Storage Directory
Contents
Specifying a prefix
Google Cloud Storage Directory#
Google Cloud Storage is a managed service for storing unstructured data.
This covers how to load document objects from an Google Cloud Storage (GCS) directory (bucket).
# !pip install google-cloud-storage
from lang... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html |
82fb8091e6ab-1 | warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpz37njh7u/fake.docx'}, lookup_index=0)]
Specifying a prefix#
You can also specify a prefix for more finegrained control over what fil... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html |
82fb8091e6ab-2 | warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpylg6291i/fake.docx'}, lookup_index=0)]
previous
Google BigQuery
next
Google Cloud Storage File
Contents
Specifying a prefix
By H... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html |
d97d18faf74a-0 | .ipynb
.pdf
Arxiv
Contents
Installation
Examples
Arxiv#
arXiv is an open-access archive for 2 million scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics.
This notebook shows how t... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/arxiv.html |
d97d18faf74a-1 | 'Authors': 'Caprice Stanley, Tobias Windisch',
'Summary': 'Graphs on lattice points are studied whose edges come from a finite set of\nallowed moves of arbitrary length. We show that the diameter of these graphs on\nfibers of a fixed integer matrix can be bounded from above by a constant. We\nthen study the mixing beh... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/arxiv.html |
eff34618fb04-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 |
eff34618fb04-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 |
eff34618fb04-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 |
eff34618fb04-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 |
eff34618fb04-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 |
eff34618fb04-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 |
eff34618fb04-6 | Document(page_content='How much do you want?', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 9, 'sender_name': 'User 1', 'timestamp_ms': 1675594799696}),
Document(page_content='Goodmorning! $50 is too low.', metadata={'... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html |
eff34618fb04-7 | metadata["sender_name"] = record.get("sender_name")
metadata["timestamp_ms"] = record.get("timestamp_ms")
if "source" in metadata:
source = metadata["source"].split("/")
source = source[source.index("langchain"):]
metadata["source"] = "/".join(source)
return metadata
loader = JS... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html |
eff34618fb04-8 | Document(page_content='Im not interested in this bag. Im interested in the blue one!', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 5, 'sender_name': 'User 1', 'timestamp_ms': 1675595109305}),
Document(page_content='Here is $129', metadata={... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html |
eff34618fb04-9 | Document(page_content='Hi! Im interested in your bag. Im offering $50. Let me know if you are interested. Thanks!', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 11, 'sender_name': 'User 1', 'timestamp_ms': 1675549022673})]
Common JSON structu... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html |
8f5aa8608be3-0 | .ipynb
.pdf
Docugami
Contents
Prerequisites
Quick start
Advantages vs Other Chunking Techniques
Load Documents
Basic Use: Docugami Loader for Document QA
Using Docugami to Add Metadata to Chunks for High Accuracy Document QA
Docugami#
This notebook covers how to load documents from Docugami. It provides the advantage... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-1 | Advantages vs Other Chunking Techniques#
Appropriate chunking of your documents is critical for retrieval from documents. Many chunking techniques exist, including simple ones that rely on whitespace and recursive chunk splitting based on character length. Docugami offers a different approach:
Intelligent Chunking: Doc... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-2 | DOCUGAMI_API_KEY=os.environ.get('DOCUGAMI_API_KEY')
# To load all docs in the given docset ID, just don't provide document_ids
loader = DocugamiLoader(docset_id="ecxqpipcoe2p", document_ids=["43rj0ds7s0ur"])
docs = loader.load()
docs
[Document(page_content='MUTUAL NON-DISCLOSURE AGREEMENT This Mutual Non-Disclosure Ag... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-3 | Document(page_content='The above named parties desire to engage in discussions regarding a potential agreement or other transaction between the parties (the โPurposeโ). In connection with such discussions, it may be necessary for the parties to disclose to each other certain confidential information or materials to ena... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-4 | Document(page_content='1. Confidential Information . For purposes of this Agreement , โ Confidential Information โ means any information or materials disclosed by one party to the other party that: (i) if disclosed in writing or in the form of tangible materials, is marked โconfidentialโ or โproprietaryโ at the tim... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-5 | Document(page_content="2. Obligations and Restrictions . Each party agrees: (i) to maintain the other party's Confidential Information in strict confidence; (ii) not to disclose such Confidential Information to any third party; and (iii) not to use such Confidential Information for any purpose except for the Pur... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-6 | Document(page_content='3. Exceptions. The obligations and restrictions in Section 2 will not apply to any information or materials that:', metadata={'xpath': '/docset:MutualNon-disclosure/docset:MutualNon-disclosure/docset:MUTUALNON-DISCLOSUREAGREEMENT-section/docset:MUTUALNON-DISCLOSUREAGREEMENT/docset:Consideration... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-7 | Document(page_content='(ii) were rightfully known by the receiving party prior to receiving such information or materials from the disclosing party;', metadata={'xpath': '/docset:MutualNon-disclosure/docset:MutualNon-disclosure/docset:MUTUALNON-DISCLOSUREAGREEMENT-section/docset:MUTUALNON-DISCLOSUREAGREEMENT/docset:Con... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-8 | Document(page_content='4. Compelled Disclosure . Nothing in this Agreement will be deemed to restrict a party from disclosing the other partyโs Confidential Information to the extent required by any order, subpoena, law, statute or regulation; provided, that the party required to make such a disclosure uses reasona... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-9 | Document(page_content='5. Return of Confidential Information . Upon the completion or abandonment of the Purpose, and in any event upon the disclosing partyโs request, the receiving party will promptly return to the disclosing party all tangible items and embodiments containing or consisting of the disclosing partyโs... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-10 | Document(page_content='6. No Obligations . Each party retains the right to determine whether to disclose any Confidential Information to the other party.', metadata={'xpath': '/docset:MutualNon-disclosure/docset:MutualNon-disclosure/docset:MUTUALNON-DISCLOSUREAGREEMENT-section/docset:MUTUALNON-DISCLOSUREAGREEMENT/do... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-11 | Document(page_content='8. Term. This Agreement will remain in effect for a period of seven ( 7 ) years from the date of last disclosure of Confidential Information by either party, at which time it will terminate.', metadata={'xpath': '/docset:MutualNon-disclosure/docset:MutualNon-disclosure/docset:MUTUALNON-DIS... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-12 | Document(page_content='10. Non-compete. To the maximum extent permitted by applicable law, during the Term of this Agreement and for a period of one ( 1 ) year thereafter, Caleb Divine may not market software products or do business that directly or indirectly competes with Docugami software products .', me... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-13 | Document(page_content='11. Miscellaneous. This Agreement will be governed and construed in accordance with the laws of the State of Washington , excluding its body of law controlling conflict of laws. This Agreement is the complete and exclusive understanding and agreement between the parties regarding the subje... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-14 | Document(page_content='[SIGNATURE PAGE FOLLOWS] IN WITNESS WHEREOF, the parties hereto have executed this Mutual Non-Disclosure Agreement by their duly authorized officers or representatives as of the date first set forth above.', metadata={'xpath': '/docset:MutualNon-disclosure/docset:Witness/docset:TheParties/doc... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-15 | tag: Semantic tag for the chunk, using various generative and extractive techniques. More details here: https://github.com/docugami/DFM-benchmarks
Basic Use: Docugami Loader for Document QA#
You can use the Docugami Loader like a standard loader for Document QA over multiple docs, albeit with much better chunks that fo... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-16 | )
Using embedded DuckDB without persistence: data will be transient
# Try out the retriever with an example query
qa_chain("What can tenants do with signage on their properties?")
{'query': 'What can tenants do with signage on their properties?',
'result': ' Tenants may place signs (digital or otherwise) or other form... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-17 | 'source_documents': [Document(page_content='ARTICLE VI SIGNAGE 6.01 Signage . Tenant may place or attach to the Premises signs (digital or otherwise) or other such identification as needed after receiving written permission from the Landlord , which permission shall not be unreasonably withheld. Any damage caused... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-18 | Document(page_content='Signage. Tenant may place or attach to the Premises signs (digital or otherwise) or other such identification as needed after receiving written permission from the Landlord , which permission shall not be unreasonably withheld. Any damage caused to the Premises by the Tenant โs erecting or ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-19 | Document(page_content='Landlord , its agents, servants, employees, licensees, invitees, and contractors during the last year of the term of this Lease at any and all times during regular business hours, after 24 hour notice to tenant, to pass and repass on and through the Premises, or such portion thereof as may ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-20 | Document(page_content="24. SIGNS . No signage shall be placed by Tenant on any portion of the Project . However, Tenant shall be permitted to place a sign bearing its name in a location approved by Landlord near the entrance to the Premises (at Tenant's cost ) and will be furnished a single listing of its nam... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-21 | Using Docugami to Add Metadata to Chunks for High Accuracy Document QA#
One issue with large documents is that the correct answer to your question may depend on chunks that are far apart in the document. Typical chunking techniques, even with overlap, will struggle with providing the LLM sufficent context to answer suc... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-22 | chain_response["source_documents"]
[Document(page_content='1.1 Landlord . DHA Group , a Delaware limited liability company authorized to transact business in New Jersey .', metadata={'xpath': '/docset:OFFICELEASE-section/docset:OFFICELEASE/docset:THISOFFICELEASE/docset:WITNESSETH-section/docset:WITNESSETH/docset:Th... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-23 | Document(page_content='WITNESSES: LANDLORD: DHA Group , a Delaware limited liability company', metadata={'xpath': '/docset:OFFICELEASE-section/docset:OFFICELEASE/docset:THISOFFICELEASE/docset:WITNESSETH-section/docset:WITNESSETH/docset:GrossRentCreditTheRentCredit-section/docset:GrossRentCreditTheRentCredit/docset:Gu... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-24 | Document(page_content="1.16 Landlord 's Notice Address . DHA Group , Suite 1010 , 111 Bauer Dr , Oakland , New Jersey , 07436 , with a copy to the Building Management Office at the Project , Attention: On - Site Property Manager .", metadata={'xpath': '/docset:OFFICELEASE-section/docset:OFFICELEASE/docset... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-25 | Document(page_content='1.6 Rentable Area of the Premises. 9,753 square feet . This square footage figure includes an add-on factor for Common Areas in the Building and has been agreed upon by the parties as final and correct and is not subject to challenge or dispute by either party.', metadata={'xpath': '/docset:O... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-26 | 'id': 'v1bvgaozfkak',
'name': 'TruTone Lane 2.docx',
'structure': 'p',
'tag': 'ThisOfficeLeaseAgreement',
'Landlord': 'BUBBA CENTER PARTNERSHIP',
'Tenant': 'Truetone Lane LLC'}
We can use a self-querying retriever to improve our query accuracy, using this additional metadata:
from langchain.chains.query_constructo... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-27 | qa_chain("What is rentable area for the property owned by DHA Group?")
query='rentable area' filter=Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='Landlord', value='DHA Group')
{'query': 'What is rentable area for the property owned by DHA Group?',
'result': ' 13,500 square feet.',
'source_documents': [Docum... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
8f5aa8608be3-28 | Document(page_content='WITNESSES: LANDLORD: DHA Group , a Delaware limited liability company', metadata={'xpath': '/docset:OFFICELEASE-section/docset:OFFICELEASE/docset:THISOFFICELEASE/docset:WITNESSETH-section/docset:WITNESSETH/docset:GrossRentCreditTheRentCredit-section/docset:GrossRentCreditTheRentCredit/docset:Gu... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.