id stringlengths 14 15 | text stringlengths 101 5.26k | source stringlengths 57 120 |
|---|---|---|
f3d7d96e5b74-3 | Document(page_content='@KanekoaTheGreat The Golden Rule', metadata={'created_at': 'Tue Apr 18 03:37:17 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'nothing', 'url': None, ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/twitter.html |
f3d7d96e5b74-4 | Document(page_content='@KanekoaTheGreat ๐ง', metadata={'created_at': 'Tue Apr 18 03:35:48 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'nothing', 'url': None, 'entities': {... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/twitter.html |
f3d7d96e5b74-5 | Document(page_content='@TRHLofficial Whatโs he talking about and why is it sponsored by Erikโs son?', metadata={'created_at': 'Tue Apr 18 03:32:17 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': N... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/twitter.html |
b35e67560a77-0 | .ipynb
.pdf
Facebook Chat
Facebook Chat#
Messenger is an American proprietary instant messaging app and platform developed by Meta Platforms. Originally developed as Facebook Chat in 2008, the company revamped its messaging service in 2010.
This notebook covers how to load data from the Facebook Chats into a format tha... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/facebook_chat.html |
0cb65e9464e2-0 | .ipynb
.pdf
URL
Contents
URL
Selenium URL Loader
Setup
Playwright URL Loader
Setup
URL#
This covers how to load HTML documents from a list of URLs into a document format that we can use downstream.
from langchain.document_loaders import UnstructuredURLLoader
urls = [
"https://www.understandingwar.org/backgrounde... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/url.html |
1cc314747d56-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/file_directory.html |
1cc314747d56-1 | The above exception was the direct cause of the following exception:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Traceback (most recent call last) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ in <module>:1 โ
โ ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/file_directory.html |
1cc314747d56-2 | '../../../../../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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/file_directory.html |
301b97ee0233-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/telegram.html |
d1f78e9bf388-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
d1f78e9bf388-1 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
d1f78e9bf388-2 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/spreedly.html |
10ec0342141a-0 | .ipynb
.pdf
Microsoft Excel
Microsoft Excel#
The UnstructuredExcelLoader is used to load Microsoft Excel files. The loader works with both .xlsx and .xls files. The page content will be the raw text of the Excel file. If you use the loader in "elements" mode, an HTML representation of the Excel file will be available i... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/excel.html |
213c19d6bcaa-0 | .ipynb
.pdf
WebBaseLoader
Contents
Loading multiple webpages
Load multiple urls concurrently
Loading a xml file, or using a different BeautifulSoup parser
WebBaseLoader#
This covers how to use WebBaseLoader to load all text from HTML webpages into a document format that we can use downstream. For more custom logic fo... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-1 | [Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to main content\n \n\n ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-2 | 24-YEAR RUNHow Washingtonโs NFL franchise sank on and off the field under owner Dan SnyderSnyder purchased one of the NFL's marquee franchises in 1999. Twenty-four years later, and with the team up for sale, he leaves a legacy of on-field futility and off-field scandal.13hJohn KeimESPNIOWA STAR STEPS UP AGAINJ-Will: Ca... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-3 | Sasahara, File)How to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreE... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-4 | """
# Use this piece of code for testing new custom BeautifulSoup parsers
import requests
from bs4 import BeautifulSoup
html_doc = requests.get("{INSERT_NEW_URL_HERE}")
soup = BeautifulSoup(html_doc.text, 'html.parser')
# Beautiful soup logic to be exported to langchain.document_loaders.webpage.py
# Example: transcript... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-5 | [Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Skip to main content\n \n\n ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-6 | 24-YEAR RUNHow Washingtonโs NFL franchise sank on and off the field under owner Dan SnyderSnyder purchased one of the NFL's marquee franchises in 1999. Twenty-four years later, and with the team up for sale, he leaves a legacy of on-field futility and off-field scandal.13hJohn KeimESPNIOWA STAR STEPS UP AGAINJ-Will: Ca... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-7 | Sasahara, File)How to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreE... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-8 | Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More ยปWeb History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Googleยฉ 2023 - Privacy - Terms ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)]
Load multiple urls concurrently#
You ca... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-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 ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-10 | 24-YEAR RUNHow Washingtonโs NFL franchise sank on and off the field under owner Dan SnyderSnyder purchased one of the NFL's marquee franchises in 1999. Twenty-four years later, and with the team up for sale, he leaves a legacy of on-field futility and off-field scandal.13hJohn KeimESPNIOWA STAR STEPS UP AGAINJ-Will: Ca... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-11 | Sasahara, File)How to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreE... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-12 | Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More ยปWeb History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Googleยฉ 2023 - Privacy - Terms ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)]
Loading a xml file, or using a differen... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
213c19d6bcaa-13 | 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 08, 2023. | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/web_base.html |
44b383ac697a-0 | .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 ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/psychic.html |
ba62855de28c-0 | .ipynb
.pdf
GitBook
Contents
Load from single GitBook page
Load from all paths in a given GitBook
GitBook#
GitBook is a modern documentation platform where teams can document everything from products to internal knowledge bases and APIs.
This notebook shows how to pull page data from any GitBook.
from langchain.docum... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/gitbook.html |
ba62855de28c-1 | # show second document
all_pages_data[2]
fetched 28 documents.
Document(page_content="Import\nFind out how to easily migrate your existing documentation and which formats are supported.\nThe import function allows you to migrate and unify existing documentation in GitBook. You can choose to import single or multiple pa... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/gitbook.html |
79a5a9cf1bdc-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/arxiv.html |
0e8f7eff7263-0 | .ipynb
.pdf
YouTube transcripts
Contents
Add video info
Add language preferences
YouTube loader from Google Cloud
Prerequisites
๐ง Instructions for ingesting your Google Docs data
YouTube transcripts#
YouTube is an online video sharing and social media platform created by Google.
This notebook covers how to load docu... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/youtube_transcript.html |
6cee5b073150-0 | .ipynb
.pdf
WhatsApp Chat
WhatsApp Chat#
WhatsApp (also called WhatsApp Messenger) is a freeware, cross-platform, centralized instant messaging (IM) and voice-over-IP (VoIP) service. It allows users to send text and voice messages, make voice and video calls, and share images, documents, user locations, and other conte... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/whatsapp_chat.html |
1247a1f19573-0 | .ipynb
.pdf
EverNote
EverNote#
EverNote is intended for archiving and creating notes in which photos, audio and saved web content can be embedded. Notes are stored in virtual โnotebooksโ and can be tagged, annotated, edited, searched, and exported.
This notebook shows how to load an Evernote export file (.enex) from di... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/evernote.html |
1c7732b985f5-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/aws_s3_directory.html |
2e1aaccf0e0b-0 | .ipynb
.pdf
Jupyter Notebook
Jupyter Notebook#
Jupyter Notebook (formerly IPython Notebook) is a web-based interactive computational environment for creating notebook documents.
This notebook covers how to load data from a Jupyter notebook (.ipynb) into a format suitable by LangChain.
from langchain.document_loaders im... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/jupyter_notebook.html |
0599ae702192-0 | .ipynb
.pdf
Copy Paste
Contents
Metadata
Copy Paste#
This notebook covers how to load a document object from something you just want to copy and paste. In this case, you donโt even need to use a DocumentLoader, but rather can just construct the Document directly.
from langchain.docstore.document import Document
text ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/copypaste.html |
f376dc233124-0 | .ipynb
.pdf
Blockchain
Contents
Overview
Load NFTs into Document Loader
Option 1: Ethereum Mainnet (default BlockchainType)
Option 2: Polygon Mainnet
Blockchain#
Overview#
The intention of this notebook is to provide a means of testing functionality in the Langchain Document Loader for Blockchain.
Initially this Load... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/blockchain.html |
67d75b8ef69a-0 | .ipynb
.pdf
Slack
Contents
๐ง Instructions for ingesting your own dataset
Slack#
Slack is an instant messaging program.
This notebook covers how to load documents from a Zipfile generated from a Slack export.
In order to get this Slack export, follow these instructions:
๐ง Instructions for ingesting your own dataset#... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/slack.html |
d31c01c200d5-0 | .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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
d31c01c200d5-1 | Document(page_content="This film was probably inspired by Godard's Masculin, fรฉminin and I urge you to see that film instead.<br /><br />The film has two strong elements and those are, (1) the realistic acting (2) the impressive, undeservedly good, photo. Apart from that, what strikes me most is the endless stream of s... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
d31c01c200d5-2 | 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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
d31c01c200d5-3 | 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 ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
d31c01c200d5-4 | 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 ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
d31c01c200d5-5 | 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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html |
cb3dd860122e-0 | .ipynb
.pdf
AZLyrics
AZLyrics#
AZLyrics is a large, legal, every day growing collection of lyrics.
This covers how to load AZLyrics webpages into a document format that we can use downstream.
from langchain.document_loaders import AZLyricsLoader
loader = AZLyricsLoader("https://www.azlyrics.com/lyrics/mileycyrus/flower... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/azlyrics.html |
b3fd877fb4bc-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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fe47b9f41d21-0 | .ipynb
.pdf
HTML
Contents
Loading HTML with BeautifulSoup4
HTML#
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser.
This covers how to load HTML documents into a document format that we can use downstream.
from langchain.document_loaders impo... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/html.html |
85ae03a3fd63-0 | .ipynb
.pdf
Unstructured File
Contents
Retain Elements
Define a Partitioning Strategy
PDF Example
Unstructured API
Unstructured File#
This notebook covers how to use Unstructured package to load files of many types. Unstructured currently supports loading of text files, powerpoints, html, pdfs, images, and more.
# # ... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html |
85ae03a3fd63-1 | Document(page_content='2', lookup_str='', metadata={'source': 'layout-parser-paper-fast.pdf', 'filename': 'layout-parser-paper-fast.pdf', 'page_number': 1, 'category': 'UncategorizedText'}, lookup_index=0),
Document(page_content='n', lookup_str='', metadata={'source': 'layout-parser-paper-fast.pdf', 'filename': 'layou... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html |
fa3415fe35cb-0 | .ipynb
.pdf
Joplin
Joplin#
Joplin is an open source note-taking app. Capture your thoughts and securely access them from any device.
This notebook covers how to load documents from a Joplin database.
Joplin has a REST API for accessing its local database. This loader uses the API to retrieve all notes in the database a... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/joplin.html |
4e25b4c8e721-0 | .ipynb
.pdf
Airbyte JSON
Airbyte JSON#
Airbyte is a data integration platform for ELT pipelines from APIs, databases & files to warehouses & lakes. It has the largest catalog of ELT connectors to data warehouses and databases.
This covers how to load any source from Airbyte into a local JSON file that can be read in as... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/airbyte_json.html |
84f5315caa17-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-1 | docs = loader.load()
docs
[Document(page_content='MUTUAL NON-DISCLOSURE AGREEMENT This Mutual Non-Disclosure Agreement (this โ Agreement โ) is entered into and made effective as of April 4 , 2018 between Docugami Inc. , a Delaware corporation , whose address is 150 Lake Street South , Suite 221 , Kirkland... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-2 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-3 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-4 | Document(page_content='9. Equitable Relief . Each party acknowledges that the unauthorized use or disclosure of the disclosing partyโs Confidential Information may cause the disclosing party to incur irreparable harm and significant damages, the degree of which may be difficult to ascertain. Accordingly, each party a... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-5 | Document(page_content='DOCUGAMI INC . : \n\n Caleb Divine : \n\n Signature: Signature: Name: \n\n Jean Paoli Name: Title: \n\n CEO Title:', metadata={'xpath': '/docset:MutualNon-disclosure/docset:Witness/docset:TheParties/docset:DocugamiInc/docset:DocugamiInc/xhtml:table', 'id': '43rj0ds7s0ur', 'name': 'NDA simple... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-6 | '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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-7 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-8 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-9 | from langchain.retrievers.self_query.base import SelfQueryRetriever
EXCLUDE_KEYS = ["id", "xpath", "structure"]
metadata_field_info = [
AttributeInfo(
name=key,
description=f"The {key} for this chunk",
type="string",
)
for key in documents[0].metadata
if key.lower() not in EXCLUD... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
84f5315caa17-10 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/docugami.html |
629e90c2473d-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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/notiondb.html |
1d144f3fb4e4-0 | .ipynb
.pdf
PySpark DataFrame Loader
PySpark DataFrame Loader#
This notebook goes over how to load data from a PySpark DataFrame.
#!pip install pyspark
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
1d144f3fb4e4-1 | Document(page_content='Marlins', metadata={' "Payroll (millions)"': ' 118.07', ' "Wins"': ' 69'}),
Document(page_content='Red Sox', metadata={' "Payroll (millions)"': ' 173.18', ' "Wins"': ' 69'}),
Document(page_content='Indians', metadata={' "Payroll (millions)"': ' 78.43', ' "Wins"': ' 68'}),
Docum... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/pyspark_dataframe.html |
e1da4b0a1d77-0 | .ipynb
.pdf
Modern Treasury
Modern Treasury#
Modern Treasury simplifies complex payment operations. It is a unified platform to power products and processes that move money.
Connect to banks and payment systems
Track transactions and balances in real-time
Automate payment operations for scale
This notebook covers how t... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/modern_treasury.html |
a1d5568b545a-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... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/figma.html |
a1d5568b545a-1 | response = generate_code("page top header")
Returns the following in response.content:
<!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:wg... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/figma.html |
91f7a6c62702-0 | .ipynb
.pdf
AWS S3 File
AWS S3 File#
Amazon Simple Storage Service (Amazon S3) is an object storage service.
AWS S3 Buckets
This covers how to load document objects from an AWS S3 File object.
from langchain.document_loaders import S3FileLoader
#!pip install boto3
loader = S3FileLoader("testing-hwc", "fake.docx")
loade... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/aws_s3_file.html |
7974f8b44a83-0 | .ipynb
.pdf
Azure Blob Storage Container
Contents
Specifying a prefix
Azure Blob Storage Container#
Azure Blob Storage is Microsoftโs object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data. Unstructured data is data that doesnโt adhere to a particular data mo... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/azure_blob_storage_container.html |
8c000bbefb77-0 | .ipynb
.pdf
Microsoft PowerPoint
Contents
Retain Elements
Microsoft PowerPoint#
Microsoft PowerPoint is a presentation program by Microsoft.
This covers how to load Microsoft PowerPoint documents into a document format that we can use downstream.
from langchain.document_loaders import UnstructuredPowerPointLoader
loa... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/microsoft_powerpoint.html |
8cbcba16de75-0 | .ipynb
.pdf
Stripe
Stripe#
Stripe is an Irish-American financial services and software as a service (SaaS) company. It offers payment-processing software and application programming interfaces for e-commerce websites and mobile applications.
This notebook covers how to load data from the Stripe REST API into a format t... | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/stripe.html |
6c539f1d9d84-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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/reddit.html |
6c539f1d9d84-1 | 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://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/reddit.html |
6c539f1d9d84-2 | previous
ReadTheDocs Documentation
next
Roam
By Harrison Chase
ยฉ Copyright 2023, Harrison Chase.
Last updated on Jun 08, 2023. | https://langchain.readthedocs.io/en/latest/modules/indexes/document_loaders/examples/reddit.html |
3bb553f592a4-0 | .ipynb
.pdf
Getting Started
Contents
Add texts
From Documents
Getting Started#
This notebook showcases basic functionality related to VectorStores. A key part of working with vectorstores is creating the vector to put in them, which is usually created via embeddings. Therefore, it is recommended that you familiarize ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/getting_started.html |
9cab5b2c6e40-0 | .ipynb
.pdf
Chroma
Contents
Similarity search with score
Persistance
Initialize PeristedChromaDB
Persist the Database
Load the Database from disk, and create the chain
Retriever options
MMR
Updating a Document
Chroma#
Chroma is a database for building AI applications with embeddings.
This notebook shows how to use fu... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/chroma.html |
9cab5b2c6e40-1 | # Now we can load the persisted database from disk, and use it as normal.
vectordb = Chroma(persist_directory=persist_directory, embedding_function=embedding)
Running Chroma using direct local API.
loaded in 4 embeddings
loaded in 1 collections
Retriever options#
This section goes over different options for how to use... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/chroma.html |
8e05c5847759-0 | .ipynb
.pdf
LanceDB
LanceDB#
LanceDB is an open-source database for vector-search built with persistent storage, which greatly simplifies retrevial, filtering and management of embeddings. Fully open source.
This notebook shows how to use functionality related to the LanceDB vector database based on the Lance data form... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/lancedb.html |
8e05c5847759-1 | And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nationโs top legal minds, who will continue Justice Breyerโs legacy of excellence.
A former top litigator in private practice. A former federal public defender. And from a family of public school educators and ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/lancedb.html |
9095b4ed7c86-0 | .ipynb
.pdf
SingleStoreDB vector search
SingleStoreDB vector search#
SingleStore DB is a high-performance distributed database that supports deployment both in the cloud and on-premises. For a significant duration, it has provided support for vector functions such as dot_product, thereby positioning itself as an ideal ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/singlestoredb.html |
308b2cfceaad-0 | .ipynb
.pdf
OpenSearch
Contents
Installation
similarity_search using Approximate k-NN
similarity_search using Script Scoring
similarity_search using Painless Scripting
Using a preexisting OpenSearch instance
OpenSearch#
OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytic... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/opensearch.html |
308b2cfceaad-1 | docsearch = OpenSearchVectorSearch(index_name="index-*", embedding_function=embeddings, opensearch_url="http://localhost:9200")
# you can specify custom field names to match the fields you're using to store your embedding, document text value, and metadata
docs = docsearch.similarity_search("Who was asking about gettin... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/opensearch.html |
8b9701db8ec0-0 | .ipynb
.pdf
Zilliz
Zilliz#
Zilliz Cloud is a fully managed service on cloud for LF AI Milvusยฎ,
This notebook shows how to use functionality related to the Zilliz Cloud managed vector database.
To run, you should have a Zilliz Cloud instance up and running. Here are the installation instructions
!pip install pymilvus
We... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/zilliz.html |
88942bced6d4-0 | .ipynb
.pdf
MatchingEngine
Contents
Create VectorStore from texts
Create Index and deploy it to an Endpoint
Imports, Constants and Configs
Using Tensorflow Universal Sentence Encoder as an Embedder
Inserting a test embedding
Creating Index
Creating Endpoint
Deploy Index
MatchingEngine#
This notebook shows how to use ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/matchingengine.html |
88942bced6d4-1 | ! gsutil mb -l $REGION -p $PROJECT_ID $BUCKET_URI
Using Tensorflow Universal Sentence Encoder as an Embedder#
# Load the Universal Sentence Encoder module
module_url = "https://tfhub.dev/google/universal-sentence-encoder-multilingual/3"
model = hub.load(module_url)
# Generate embeddings for each word
embeddings = model... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/matchingengine.html |
d734f1944376-0 | .ipynb
.pdf
Vectara
Contents
Connecting to Vectara from LangChain
Similarity search
Similarity search with score
Vectara as a Retriever
Vectara#
Vectara is a API platform for building LLM-powered applications. It provides a simple to use API for document indexing and query that is managed by Vectara and is optimized ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/vectara.html |
d734f1944376-1 | previous
Typesense
next
Weaviate
Contents
Connecting to Vectara from LangChain
Similarity search
Similarity search with score
Vectara as a Retriever
By Harrison Chase
ยฉ Copyright 2023, Harrison Chase.
Last updated on Jun 08, 2023. | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/vectara.html |
80176d750e7e-0 | .ipynb
.pdf
Redis
Contents
Installing
Example
Redis as Retriever
Redis#
Redis (Remote Dictionary Server) is an in-memory data structure store, used as a distributed, in-memory keyโvalue database, cache and message broker, with optional durability.
This notebook shows how to use functionality related to the Redis vect... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/redis.html |
6a404156b2eb-0 | .ipynb
.pdf
ElasticSearch
Contents
ElasticSearch
ElasticVectorSearch class
Installation
Example
ElasticKnnSearch Class
Test adding vectors
Test knn search using query vector builder
Test knn search using pre generated vector
Test source option
Test fields option
Test with es client connection rather than cloud_id
Ela... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/elasticsearch.html |
6a404156b2eb-1 | ElasticKnnSearch Class#
The ElasticKnnSearch implements features allowing storing vectors and documents in Elasticsearch for use with approximate kNN search
!pip install langchain elasticsearch
from langchain.vectorstores.elastic_vector_search import ElasticKnnSearch
from langchain.embeddings import ElasticsearchEmbedd... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/elasticsearch.html |
6a404156b2eb-2 | assert 'text' in hybrid_result['hits']['hits'][0]['fields'].keys()
Test with es client connection rather than cloud_id#
# Create Elasticsearch connection
es_connection = Elasticsearch(
hosts=['https://es_cluster_url:port'],
basic_auth=('user', 'password')
)
# Instantiate ElasticsearchEmbeddings using es_connec... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/elasticsearch.html |
fca24d2c0ba7-0 | .ipynb
.pdf
Typesense
Contents
Similarity Search
Typesense as a Retriever
Typesense#
Typesense is an open source, in-memory search engine, that you can either self-host or run on Typesense Cloud.
Typesense focuses on performance by storing the entire index in RAM (with a backup on disk) and also focuses on providing ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/typesense.html |
d437d5bc649e-0 | .ipynb
.pdf
Milvus
Milvus#
Milvus is a database that stores, indexes, and manages massive embedding vectors generated by deep neural networks and other machine learning (ML) models.
This notebook shows how to use functionality related to the Milvus vector database.
To run, you should have a Milvus instance up and runni... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/milvus.html |
208753f1c5c7-0 | .ipynb
.pdf
Supabase (Postgres)
Contents
Similarity search with score
Retriever options
Maximal Marginal Relevance Searches
Supabase (Postgres)#
Supabase is an open source Firebase alternative. Supabase is built on top of PostgreSQL, which offers strong SQL querying capabilities and enables a simple interface with al... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/supabase.html |
208753f1c5c7-1 | One of the most serious constitutional responsibilities a President has is nominating someone to serve on the United States Supreme Court.
And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nationโs top legal minds, who will continue Justice Breyerโs legacy of ... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/supabase.html |
208753f1c5c7-2 | But I want you to know that we are going to be okay.
When the history of this era is written Putinโs war on Ukraine will have left Russia weaker and the rest of the world stronger.
While it shouldnโt have taken something so terrible for people around the world to see whatโs at stake now everyone sees it clearly.
## D... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/supabase.html |
ddf8fbfa02ea-0 | .ipynb
.pdf
FAISS
Contents
Similarity Search with score
Saving and loading
Merging
FAISS#
Facebook AI Similarity Search (Faiss) is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any size, up to ones that possibly do not fit in RAM. I... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/faiss.html |
ddf8fbfa02ea-1 | docs = new_db.similarity_search(query)
docs[0]
Document(page_content='In state after state, new laws have been passed, not only to suppress the vote, but to subvert entire elections. \n\nWe cannot let this happen. \n\nTonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act.... | https://langchain.readthedocs.io/en/latest/modules/indexes/vectorstores/examples/faiss.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.