id
stringlengths
14
16
source
stringlengths
49
117
text
stringlengths
16
2.73k
603dabfb35d3-7
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 ...
603dabfb35d3-8
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
[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...
603dabfb35d3-9
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 R .\n\nif there exist k linearly independent primitive elements e\n\n, . . . , e k ∈ N such that σ ...
603dabfb35d3-10
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
. 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.2. The irrelevant ideal of P d Σ is the monomial ideal B Σ ∶ =< x ˆ σ ∣ σ ∈ Σ > and the zero locus Z ...
603dabfb35d3-11
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
d, C ) and Z is locally isomorphic to d\n\nRoughly speaking the local geometry of orbifolds reduces to local G -invariant geometry.\n\nWe have a complex of differential forms ( A ● ( Z ) , d ) and a double complex ( A ● , ● ( Z ) , ∂, ¯ ∂ ) of bigraded differential forms which define the de Rham and the Dolbeault cohomolo...
603dabfb35d3-12
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 ( X, C ) / / H 0 , 2 ¯ ∂ ( X )\n\nof the proof follows as the ( 1 , 1 ) -Lefschetz theorem in [6].\n\nRemark 3.5 . For k = 1 and P d Σ as the projective space,...
603dabfb35d3-13
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
a quasi- smooth hypersurface. Let L 1 , . . . , L s be line bundles on P d Σ and let π ∶ P ( E ) → P d Σ be the projective space bundle associated to the vector bundle E = L 1 ⊕ ⋯ ⊕ L s . It is known that P ( E ) is a ( d + s − 1 ) -dimensional simplicial toric variety whose fan depends on the degrees of the line bundl...
603dabfb35d3-14
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
= W , i.e., W ′ = { z = ( x, y ) ∣ x ∈ W } .\n\nFor X ⊂ P d Σ a quasi-smooth intersection variety the morphism in cohomology induced by the inclusion i ∗ ∶ H d − s ( P d Σ , C ) → H d − s ( X, C ) is injective by Proposition 1.4 in [7].\n\nDefinition 4.2. The primitive cohomology of H d − s prim ( X ) is the quotient H ...
603dabfb35d3-15
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
[10] for more details.\n\nTheorem 5.1. Let Y = { F = y 1 f 1 + ⋯ + y k f k = 0 } ⊂ P 2 k + 1 Σ ,X be the quasi-smooth hypersurface associated to the quasi-smooth intersection surface X = X f 1 ∩ ⋅ ⋅ ⋅ ∩ X f k ⊂ P k + 2 Σ . Then on Y the Hodge conjecture holds.\n\nthe Hodge conjecture holds.\n\nProof. If H k,k prim ( X,...
603dabfb35d3-16
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
,X ) . So the polynomials defining C i ⊂ P k + 2 Σ can be interpreted in P 2 k + 1 X, Σ but with different degree. Moreover, by Remark 4.1 each C i is contained in Y = { F = y 1 f 1 + ⋯ + y k f k = 0 } and\n\nfurthermore it has codimension k .\n\nClaim: { C i } ni = 1 is a basis of prim ( ) . It is enough to prove that λ...
603dabfb35d3-17
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
j ] .\n\nRemark 5.2 . Into the proof of the previous theorem, the key fact was that on X the Hodge conjecture holds and we translate it to Y by contradiction. So, using an analogous argument we have:\n\nargument we have:\n\nProposition 5.3. Let Y = { F = y 1 f s +⋯+ y s f s = 0 } ⊂ P 2 k + 1 Σ ,X be the quasi-smooth hy...
603dabfb35d3-18
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
F. C. Introduction to orbifolds. a\n\niv:\n\nv\n\n(\n\n). [\n\n] Cox, D., Little, J., and Schenck, H. Toric varieties, vol.\n\nAmerican Math- ematical Soc.,\n\n[\n\n] Griffiths, P., and Harris, J. Principles of Algebraic Geometry. John Wiley & Sons, Ltd,\n\n[\n\n] Mavlyutov, A. R. Cohomology of complete intersections i...
603dabfb35d3-19
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
W. On the Hodge conjecture for quasi-smooth in- tersections in toric varieties. S˜ao Paulo J. Math. Sci. Special Section: Geometry in Algebra and Algebra in Geometry (\n\n).\n\n[3] Bruzzo, U., and Montoya, W. On the Hodge conjecture for quasi-smooth in- tersections in toric varieties. S˜ao Paulo J. Math. Sci. Special S...
603dabfb35d3-20
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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...
603dabfb35d3-21
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
# 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.document import Document cur_idx = -1 semantic_snippet...
603dabfb35d3-22
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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_snippets[4]
603dabfb35d3-23
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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...
603dabfb35d3-24
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 type as ‘code’.\n7 https://ocr-d.de/en/about\n8 https://github.com/BobLd/DocumentLayoutAnalysis\n9 https://...
603dabfb35d3-25
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
a variety of document data collections to facilitate the\ndevelopment of DL models. Some examples include PRImA [3](magazine layouts),\nPubLayNet [38](academic paper layouts), Table Bank [18](tables in academic\npapers), Newspaper Navigator Dataset [16, 17](newspaper figure layouts) and\nHJDataset [31](historical Japane...
603dabfb35d3-26
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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]
603dabfb35d3-27
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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...
603dabfb35d3-28
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 · Deep Learning · Layout Analysis\n· Character Recognition · Open Source library · Toolkit.\n1\nIntroduct...
603dabfb35d3-29
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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/")...
603dabfb35d3-30
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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...
603dabfb35d3-31
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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 at https://layout-pars...
603dabfb35d3-32
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/pdf.html
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...
440a994e25ae-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/telegram.html
.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 ...
1a81e6bbbae5-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/microsoft_word.html
.ipynb .pdf Microsoft Word Contents Using Docx2txt Using Unstructured Retain Elements Microsoft Word# Microsoft Word is a word processor developed by Microsoft. This covers how to load Word documents into a document format that we can use downstream. Using Docx2txt# Load .docx using Docx2txt into a document. from lan...
b52b44a5c9e0-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/duckdb.html
.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...
b52b44a5c9e0-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/duckdb.html
Specifying Which Columns are Content vs Metadata Adding Source to Metadata By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
8c34f966069b-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/aws_s3_directory.html
.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...
9dc95cd27194-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/obsidian.html
.ipynb .pdf Obsidian Obsidian# Obsidian is a powerful and extensible knowledge base that works on top of your local folder of plain text files. This notebook covers how to load documents from an Obsidian database. Since Obsidian is just stored on disk as a folder of Markdown files, the loader just takes a path to this ...
925140b0955e-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/readthedocs_documentation.html
.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...
83e1e63d419e-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/toml.html
.ipynb .pdf TOML TOML# TOML is a file format for configuration files. It is intended to be easy to read and write, and is designed to map unambiguously to a dictionary. Its specification is open-source. TOML is implemented in many programming languages. The name TOML is an acronym for “Tom’s Obvious, Minimal Language” ...
4cec7df05e83-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blackboard.html
.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...
5c1f192141a4-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
.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...
5c1f192141a4-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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: Docugami breaks down every document into a h...
5c1f192141a4-2
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
# 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 Agreement (this “ Agreement ”) is entered into and ma...
5c1f192141a4-3
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-4
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-5
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-6
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-7
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-8
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-9
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-10
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-11
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-12
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-13
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-14
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-15
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-16
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
# 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 of identification on the premises after receiving written permissio...
5c1f192141a4-17
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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 ...
5c1f192141a4-18
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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 ...
5c1f192141a4-19
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-20
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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 such questions. With upcoming very large context LLMs, it may be possible t...
5c1f192141a4-21
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
[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:TheTerms/dg:chunk/docset:BasicLeaseIn...
5c1f192141a4-22
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-23
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-24
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-25
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
'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...
5c1f192141a4-26
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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': [Document(page_content='1.1 Landlord . DHA Group , a Delaware limited liabi...
5c1f192141a4-27
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-28
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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...
5c1f192141a4-29
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
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:...
5c1f192141a4-30
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/docugami.html
Last updated on Jun 04, 2023.
ccc6e1fd7144-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notiondb.html
.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...
ccc6e1fd7144-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notiondb.html
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 these steps: Open your database in Notion. Click on the ...
ccc6e1fd7144-2
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notiondb.html
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. Create a Notion Table Database 2. Create a Notion Integration 3. Connect the Integration t...
1c6ae21b4ba8-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/psychic.html
.ipynb .pdf Psychic Contents Prerequisites Loading documents Converting the docs to embeddings Psychic# This notebook covers how to load documents from Psychic. See here for more details. Prerequisites# Follow the Quick Start section in this document Log into the Psychic dashboard and get your secret key Install the ...
1c6ae21b4ba8-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/psychic.html
from langchain.text_splitter import CharacterTextSplitter from langchain.llms import OpenAI from langchain.chains import RetrievalQAWithSourcesChain text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) texts = text_splitter.split_documents(documents) embeddings = OpenAIEmbeddings() docsearch = Chroma...
a2bb55f59598-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/chatgpt_loader.html
.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...
81de9fe3e15c-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
.ipynb .pdf HuggingFace dataset Contents Example HuggingFace dataset# The Hugging Face Hub is home to over 5,000 datasets in more than 100 languages that can be used for a broad range of tasks across NLP, Computer Vision, and Audio. They used for a diverse range of tasks such as translation, automatic speech recognit...
81de9fe3e15c-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
[Document(page_content='I rented I AM CURIOUS-YELLOW from my video store because of all the controversy that surrounded it when it was first released in 1967. I also heard that at first it was seized by U.S. customs if it ever tried to enter this country, therefore being a fan of films considered "controversial" I real...
81de9fe3e15c-2
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='"I Am Curious: Yellow" is a risible and pretentious steaming pile. It doesn\'t matter what one\'s political views are because this film can hardly be taken seriously on any level. As for the claim that frontal male nudity is an automatic NC-17, that isn\'t true. I\'ve seen R-rated films with male...
81de9fe3e15c-3
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content="If only to avoid making this type of film in the future. This film is interesting as an experiment but tells no cogent story.<br /><br />One might feel virtuous for sitting thru it because it touches on so many IMPORTANT issues but it does so without any discernable motive. The viewer comes away ...
81de9fe3e15c-4
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='Oh, brother...after hearing about this ridiculous film for umpteen years all I can think of is that old Peggy Lee song..<br /><br />"Is that all there is??" ...I was just an early teen when this smoked fish hit the U.S. I was too young to get in the theater (although I did manage to sneak into "G...
81de9fe3e15c-5
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
the film industry"...<br /><br />Yeesh, avoid like the plague..Or if you MUST see it - rent the video and fast forward to the "dirty" parts, just to get it over with.<br /><br />', metadata={'label': 0}),
81de9fe3e15c-6
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content="I would put this at the top of my list of films in the category of unwatchable trash! There are films that are bad, but the worst kind are the ones that are unwatchable but you are suppose to like them because they are supposed to be good for you! The sex sequences, so shocking in its day, couldn...
81de9fe3e15c-7
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='When I first saw a glimpse of this movie, I quickly noticed the actress who was playing the role of Lucille Ball. Rachel York\'s portrayal of Lucy is absolutely awful. Lucille Ball was an astounding comedian with incredible talent. To think about a legend like Lucille Ball being portrayed the way...
81de9fe3e15c-8
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='Who are these "They"- the actors? the filmmakers? Certainly couldn\'t be the audience- this is among the most air-puffed productions in existence. It\'s the kind of movie that looks like it was a lot of fun to shoot\x97 TOO much fun, nobody is getting any actual work done, and that almost always ...
81de9fe3e15c-9
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
had in mind; his stage musicals of the 20\'s may have been slight, but at least they were long on charm. "They All Laughed" tries to coast on its good intentions, but nobody- least of all Peter Bogdanovich - has the good sense to put on the brakes.<br /><br />Due in no small part to the tragic death of Dorothy Stratten...
81de9fe3e15c-10
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content="This is said to be a personal film for Peter Bogdonavitch. He based it on his life but changed things around to fit the characters, who are detectives. These detectives date beautiful models and have no problem getting them. Sounds more like a millionaire playboy filmmaker than a detective, doesn...
81de9fe3e15c-11
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='It was great to see some of my favorite stars of 30 years ago including John Ritter, Ben Gazarra and Audrey Hepburn. They looked quite wonderful. But that was it. They were not given any characters or good lines to work with. I neither understood or cared what the characters were doing.<br /><br ...
81de9fe3e15c-12
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content="I can't believe that those praising this movie herein aren't thinking of some other film. I was prepared for the possibility that this would be awful, but the script (or lack thereof) makes for a film that's also pointless. On the plus side, the general level of craft on the part of the actors an...
81de9fe3e15c-13
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content="Its not the cast. A finer group of actors, you could not find. Its not the setting. The director is in love with New York City, and by the end of the film, so are we all! Woody Allen could not improve upon what Bogdonovich has done here. If you are going to fall in love, or find love, Manhattan i...
81de9fe3e15c-14
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Document(page_content='Today I found "They All Laughed" on VHS on sale in a rental. It was a really old and very used VHS, I had no information about this movie, but I liked the references listed on its cover: the names of Peter Bogdanovich, Audrey Hepburn, John Ritter and specially Dorothy Stratten attracted me, the p...
81de9fe3e15c-15
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
the most popular Brazilian singer since the end of the 60\'s and is called by his fans as "The King". I will keep this movie in my collection only because of these attractions (manly Dorothy Stratten). My vote is four.<br /><br />Title (Brazil): "Muito Riso e Muita Alegria" ("Many Laughs and Lots of Happiness")', metad...
81de9fe3e15c-16
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
Example# In this example, we use data from a dataset to answer a question from langchain.indexes import VectorstoreIndexCreator from langchain.document_loaders.hugging_face_dataset import HuggingFaceDatasetLoader dataset_name="tweet_eval" page_content_column="text" name="stance_climate" loader=HuggingFaceDatasetLoader(...
d88d66483d5a-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
.ipynb .pdf 2Markdown 2Markdown# 2markdown service transforms website content into structured markdown files. # You will need to get your own API key. See https://2markdown.com/login api_key = "" from langchain.document_loaders import ToMarkdownLoader loader = ToMarkdownLoader.from_api_key(url="https://python.langchain...
d88d66483d5a-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
- [Concepts and terminology](https://python.langchain.com/en/latest/getting_started/concepts.html) Tutorials created by community experts and presented on YouTube. - [Tutorials](https://python.langchain.com/en/latest/getting_started/tutorials.html) ## Modules [\#](\#modules "Permalink to this headline") These modules a...
d88d66483d5a-2
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
- [Callbacks](https://python.langchain.com/en/latest/modules/callbacks/getting_started.html): Callbacks let you log and stream the intermediate steps of any chain, making it easy to observe, debug, and evaluate the internals of an application. ## Use Cases [\#](\#use-cases "Permalink to this headline") Best practices a...
d88d66483d5a-3
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
- [Code Understanding](https://python.langchain.com/en/latest/use_cases/code.html): Recommended reading if you want to use language models to analyze code. - [Interacting with APIs](https://python.langchain.com/en/latest/use_cases/apis.html): Enabling language models to interact with APIs is extremely powerful. It give...
d88d66483d5a-4
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/tomarkdown.html
- [Gallery](https://python.langchain.com/en/latest/additional_resources/gallery.html): A collection of our favorite projects that use LangChain. Useful for finding inspiration or seeing how things were done in other applications. - [Deployments](https://python.langchain.com/en/latest/additional_resources/deployments.ht...
7c75de01fe54-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/joplin.html
.ipynb .pdf Joplin Joplin# Joplin is an open source note-taking app. Capture your thoughts and securely access them from any device. This notebook covers how to load documents from a Joplin database. Joplin has a REST API for accessing its local database. This loader uses the API to retrieve all notes in the database a...
50a8111094f9-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/conll-u.html
.ipynb .pdf CoNLL-U CoNLL-U# CoNLL-U is revised version of the CoNLL-X format. Annotations are encoded in plain text files (UTF-8, normalized to NFC, using only the LF character as line break, including an LF character at the end of file) with three types of lines: Word lines containing the annotation of a word/token i...
31db6fd93cd5-0
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
.ipynb .pdf Image captions Contents Prepare a list of image urls from Wikimedia Create the loader Create the index Query Image captions# By default, the loader utilizes the pre-trained Salesforce BLIP image captioning model. This notebook shows how to use the ImageCaptionLoader to generate a query-able index of image...
31db6fd93cd5-1
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Messier83_-_Heic1403a.jpg/277px-Messier83_-_Heic1403a.jpg', 'https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/2022-01-22_Men%27s_World_Cup_at_2021-22_St._Moritz%E2%80%93Celerina_Luge_World_Cup_and_European_Championships_by_Sandro_Halank%E2%80%93257...
31db6fd93cd5-2
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
[Document(page_content='an image of a frog on a flower [SEP]', metadata={'image_path': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Hyla_japonica_sep01.jpg/260px-Hyla_japonica_sep01.jpg'}), Document(page_content='an image of a shark swimming in the ocean [SEP]', metadata={'image_path': 'https://upload.wi...
31db6fd93cd5-3
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image_captions.html
Document(page_content='an image of the spiral galaxy [SEP]', metadata={'image_path': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Messier83_-_Heic1403a.jpg/277px-Messier83_-_Heic1403a.jpg'}), Document(page_content='an image of a man on skis in the snow [SEP]', metadata={'image_path': 'https://upload.wiki...