id
stringlengths
14
16
text
stringlengths
36
2.73k
source
stringlengths
59
127
4d1c3837677f-8
""" # 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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-9
[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-10
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-11
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-12
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 court9h1:33Why Perk won't blame ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-13
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-14
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-15
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
4d1c3837677f-16
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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-17
[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-18
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-19
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-20
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 court9h1:33Why Perk won't blame ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-21
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-22
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-23
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
4d1c3837677f-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)] Loading a xml file, or using a differen...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-25
[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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-26
Efficiency\nAppendix A, Section 2.\n\n\nHot Water\nOil-fired\n>2,500,000\nCombustion Efficiency\nAppendix A, Section 3.\n\n\nSteam\nGas-fired (all*)\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nSteam\nGas-fired (all*)\n>2,500,000 and ≤5,000,000\nThermal Efficiency\nAppendix A, Section 2.\n\...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-27
2016]\n\n\nEnergy Efficiency Standards\n\n', lookup_str='', metadata={'source': 'https://www.govinfo.gov/content/pkg/CFR-2018-title10-vol3/xml/CFR-2018-title10-vol3-sec431-86.xml'}, lookup_index=0)]
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
4d1c3837677f-28
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 Jun 16, 2023.
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/web_base.html
ef74e007b26d-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("...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/image.html
ef74e007b26d-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/image.html
ef74e007b26d-2
Image Analysis» Deep Learning Layout Analysis\n‘Character Renguition - Open Serres dary « Tol\n\n\nIntroduction\n\n\n‘Deep Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndoctiment image analysis (DIA) tea including document image clasiffeation [I]\n", lookup_str='', metadata={'source': 'lay...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/image.html
ef74e007b26d-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/image.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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 ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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 ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-29
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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-30
Document(page_content='1.6 Rentable Area of the Premises. 13,500 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:...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/docugami.html
2a992d1a892c-31
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/docugami.html
b1a5b5a13320-0
.ipynb .pdf Weather Weather# OpenWeatherMap is an open source weather service provider This loader fetches the weather data from the OpenWeatherMap’s OneCall API, using the pyowm Python package. You must initialize the loader with your OpenWeatherMap API token and the names of the cities you want the weather data for. ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/weather.html
999653733c2d-0
.ipynb .pdf ChatGPT Data ChatGPT Data# ChatGPT is an artificial intelligence (AI) chatbot developed by OpenAI. This notebook covers how to load conversations.json from your ChatGPT data export folder. You can get your data export by email by going to: https://chat.openai.com/ -> (Profile) - Settings -> Export data -> C...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/chatgpt_loader.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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}...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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': ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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={'...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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={...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
2a3684027487-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/json.html
72ac12c8158c-0
.ipynb .pdf Figma Figma# Figma is a collaborative web application for interface design. This notebook covers how to load data from the Figma REST API into a format that can be ingested into LangChain, along with example usage for code generation. import os from langchain.document_loaders.figma import FigmaFileLoader fr...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/figma.html
72ac12c8158c-1
# See https://python.langchain.com/en/latest/modules/models/chat/getting_started.html for chat info system_prompt_template = """You are expert coder Jon Carmack. Use the provided design context to create idomatic HTML/CSS code as possible based on the user request. Everything must be inline in one file and your...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/figma.html
72ac12c8158c-2
<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <style>\n @import url(\'https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=Inter:wght@600&display=swap\');\n\n body {\n margin...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/figma.html
72ac12c8158c-3
}\n\n .header nav {\n display: flex;\n align-items: center;\n }\n\n .header nav a {\n font-size: 14px;\n font-weight: 500;\n text-decoration: none;\n color: #000;\n margin-left: 20px;\n }\n\n @media (max-widt...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/figma.html
72ac12c8158c-4
previous Fauna next GitBook 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/figma.html
6e338ca2469f-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/aws_s3_file.html
3f3238f4cab7-0
.ipynb .pdf BiliBili BiliBili# Bilibili is one of the most beloved long-form video sites in China. This loader utilizes the bilibili-api to fetch the text transcript from Bilibili. With this BiliBiliLoader, users can easily obtain the transcript of their desired video content on the platform. #!pip install bilibili-api...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/bilibili.html
db369b858f99-0
.ipynb .pdf Git Contents Load existing repository from disk Clone repository from url Filtering files to load Git# Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software d...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/git.html
db369b858f99-1
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/git.html
bb774a8bc713-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/arxiv.html
bb774a8bc713-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/arxiv.html
5c09bf64f18f-0
.ipynb .pdf Notion DB 2/2 Contents Requirements Setup 1. Create a Notion Table Database 2. Create a Notion Integration 3. Connect the Integration to the Database 4. Get the Database ID Usage Notion DB 2/2# Notion is a collaboration platform with modified Markdown support that integrates kanban boards, tasks, wikis an...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/notiondb.html
5c09bf64f18f-1
Click the “Submit” button to create the integration. Once the integration is created, you’ll be provided with an Integration Token (API key). Copy this token and keep it safe, as you’ll need it to use the NotionDBLoader. 3. Connect the Integration to the Database# To connect your integration to the database, follow the...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/notiondb.html
5c09bf64f18f-2
········ from langchain.document_loaders import NotionDBLoader loader = NotionDBLoader( integration_token=NOTION_TOKEN, database_id=DATABASE_ID, request_timeout_sec=30 # optional, defaults to 10 ) docs = loader.load() print(docs) previous Modern Treasury next Notion DB 1/2 Contents Requirements Setup 1...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/notiondb.html
6ac33a98b020-0
.ipynb .pdf Wikipedia Contents Installation Examples Wikipedia# Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read refe...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/wikipedia.html
27342a449e42-0
.ipynb .pdf Google Cloud Storage File Google Cloud Storage File# Google Cloud Storage is a managed service for storing unstructured data. This covers how to load document objects from an Google Cloud Storage (GCS) file object (blob). # !pip install google-cloud-storage from langchain.document_loaders import GCSFileLoad...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/google_cloud_storage_file.html
f85ecba3862a-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...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/aws_s3_directory.html
4e82b56dfde1-0
.ipynb .pdf IMSDb IMSDb# IMSDb is the Internet Movie Script Database. This covers how to load IMSDb webpages into a document format that we can use downstream. from langchain.document_loaders import IMSDbLoader loader = IMSDbLoader("https://imsdb.com/scripts/BlacKkKlansman.html") data = loader.load() data[0].page_conte...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/imsdb.html
2b0042d6f350-0
.ipynb .pdf CSV Contents Customizing the csv parsing and loading Specify a column to identify the document source UnstructuredCSVLoader CSV# A comma-separated values (CSV) file is a delimited text file that uses a comma to separate values. Each line of the file is a data record. Each record consists of one or more fi...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-1
[Document(page_content='Team: Nationals\n"Payroll (millions)": 81.34\n"Wins": 98', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 0}, lookup_index=0), Document(page_content='Team: Reds\n"Payroll (millions)": 82.20\n"Wins": 97', lookup_str='', metadata={'source': './example_data/mlb_teams...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-2
6}, lookup_index=0), Document(page_content='Team: Orioles\n"Payroll (millions)": 81.43\n"Wins": 93', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 7}, lookup_index=0), Document(page_content='Team: Rays\n"Payroll (millions)": 64.17\n"Wins": 90', lookup_str='', metadata={'source': './exam...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-3
'row': 13}, lookup_index=0), Document(page_content='Team: Brewers\n"Payroll (millions)": 97.65\n"Wins": 83', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 14}, lookup_index=0), Document(page_content='Team: Phillies\n"Payroll (millions)": 174.54\n"Wins": 81', lookup_str='', metadata={'so...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-4
'row': 20}, lookup_index=0), Document(page_content='Team: Blue Jays\n"Payroll (millions)": 75.48\n"Wins": 73', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 21}, lookup_index=0), Document(page_content='Team: Royals\n"Payroll (millions)": 60.91\n"Wins": 72', lookup_str='', metadata={'sou...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-5
'row': 27}, lookup_index=0), Document(page_content='Team: Cubs\n"Payroll (millions)": 88.19\n"Wins": 61', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 28}, lookup_index=0), Document(page_content='Team: Astros\n"Payroll (millions)": 60.65\n"Wins": 55', lookup_str='', metadata={'source':...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-6
Customizing the csv parsing and loading# See the csv module documentation for more information of what csv args are supported. loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv', csv_args={ 'delimiter': ',', 'quotechar': '"', 'fieldnames': ['MLB Team', 'Payroll in millions', 'Wins'] }) data = ...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-7
[Document(page_content='MLB Team: Team\nPayroll in millions: "Payroll (millions)"\nWins: "Wins"', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 0}, lookup_index=0), Document(page_content='MLB Team: Nationals\nPayroll in millions: 81.34\nWins: 98', lookup_str='', metadata={'source': './e...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-8
lookup_index=0), Document(page_content='MLB Team: Rangers\nPayroll in millions: 120.51\nWins: 93', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 7}, lookup_index=0), Document(page_content='MLB Team: Orioles\nPayroll in millions: 81.43\nWins: 93', lookup_str='', metadata={'source': './ex...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-9
Document(page_content='MLB Team: White Sox\nPayroll in millions: 96.92\nWins: 85', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 14}, lookup_index=0), Document(page_content='MLB Team: Brewers\nPayroll in millions: 97.65\nWins: 83', lookup_str='', metadata={'source': './example_data/mlb_...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-10
lookup_index=0), Document(page_content='MLB Team: Mets\nPayroll in millions: 93.35\nWins: 74', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 21}, lookup_index=0), Document(page_content='MLB Team: Blue Jays\nPayroll in millions: 75.48\nWins: 73', lookup_str='', metadata={'source': './exa...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-11
lookup_index=0), Document(page_content='MLB Team: Rockies\nPayroll in millions: 78.06\nWins: 64', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 28}, lookup_index=0), Document(page_content='MLB Team: Cubs\nPayroll in millions: 88.19\nWins: 61', lookup_str='', metadata={'source': './examp...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html
2b0042d6f350-12
Specify a column to identify the document source# Use the source_column argument to specify a source for the document created from each row. Otherwise file_path will be used as the source for all documents created from the CSV file. This is useful when using documents loaded from CSV files for chains that answer questi...
rtdocs_stable/api.python.langchain.com/en/stable/modules/indexes/document_loaders/examples/csv.html