Unnamed: 0
stringlengths
1
178
link
stringlengths
31
163
text
stringlengths
18
32.8k
495
https://python.langchain.com/docs/integrations/document_loaders/github
ComponentsDocument loadersGitHubOn this pageGitHubThis notebooks shows how you can load issues and pull requests (PRs) for a given repository on GitHub. We will use the LangChain Python repository as an example.Setup access token​To access the GitHub API, you need a personal access token - you can set up yours here: ht...
496
https://python.langchain.com/docs/integrations/document_loaders/google_bigquery
ComponentsDocument loadersGoogle BigQueryOn this pageGoogle BigQueryGoogle BigQuery is a serverless and cost-effective enterprise data warehouse that works across clouds and scales with your data. BigQuery is a part of the Google Cloud Platform.Load a BigQuery query with one document per row.#!pip install google-cloud-...
497
https://python.langchain.com/docs/integrations/document_loaders/google_cloud_storage_directory
ComponentsDocument loadersGoogle Cloud Storage DirectoryOn this pageGoogle Cloud Storage DirectoryGoogle Cloud Storage is a managed service for storing unstructured data.This covers how to load document objects from an Google Cloud Storage (GCS) directory (bucket).# !pip install google-cloud-storagefrom langchain.docum...
498
https://python.langchain.com/docs/integrations/document_loaders/google_cloud_storage_file
ComponentsDocument loadersGoogle Cloud Storage FileGoogle Cloud Storage FileGoogle 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-storagefrom langchain.document_loaders import GCS...
499
https://python.langchain.com/docs/integrations/document_loaders/google_drive
ComponentsDocument loadersGoogle DriveOn this pageGoogle DriveGoogle Drive is a file storage and synchronization service developed by Google.This notebook covers how to load documents from Google Drive. Currently, only Google Docs are supported.Prerequisites​Create a Google Cloud project or use an existing projectEnabl...
500
https://python.langchain.com/docs/integrations/document_loaders/grobid
ComponentsDocument loadersGrobidGrobidGROBID is a machine learning library for extracting, parsing, and re-structuring raw documents.It is designed and expected to be used to parse academic papers, where it works particularly well. Note: if the articles supplied to Grobid are large documents (e.g. dissertations) exceed...
501
https://python.langchain.com/docs/integrations/document_loaders/gutenberg
ComponentsDocument loadersGutenbergGutenbergProject Gutenberg is an online library of free eBooks.This notebook covers how to load links to Gutenberg e-books into a document format that we can use downstream.from langchain.document_loaders import GutenbergLoaderloader = GutenbergLoader("https://www.gutenberg.org/cache/...
502
https://python.langchain.com/docs/integrations/document_loaders/hacker_news
ComponentsDocument loadersHacker NewsHacker NewsHacker News (sometimes abbreviated as HN) is a social news website focusing on computer science and entrepreneurship. It is run by the investment fund and startup incubator Y Combinator. In general, content that can be submitted is defined as "anything that gratifies one'...
503
https://python.langchain.com/docs/integrations/document_loaders/huawei_obs_directory
ComponentsDocument loadersHuawei OBS DirectoryOn this pageHuawei OBS DirectoryThe following code demonstrates how to load objects from the Huawei OBS (Object Storage Service) as documents.# Install the required package# pip install esdk-obs-pythonfrom langchain.document_loaders import OBSDirectoryLoaderendpoint = "your...
504
https://python.langchain.com/docs/integrations/document_loaders/huawei_obs_file
ComponentsDocument loadersHuawei OBS FileOn this pageHuawei OBS FileThe following code demonstrates how to load an object from the Huawei OBS (Object Storage Service) as document.# Install the required package# pip install esdk-obs-pythonfrom langchain.document_loaders.obs_file import OBSFileLoaderendpoint = "your-endp...
505
https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset
ComponentsDocument loadersHuggingFace datasetOn this pageHuggingFace datasetThe 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 reco...
506
https://python.langchain.com/docs/integrations/document_loaders/ifixit
ComponentsDocument loadersiFixitOn this pageiFixitiFixit is the largest, open repair community on the web. The site contains nearly 100k repair manuals, 200k Questions & Answers on 42k devices, and all the data is licensed under CC-BY-NC-SA 3.0.This loader will allow you to download the text of a repair guide, text of ...
507
https://python.langchain.com/docs/integrations/document_loaders/image
ComponentsDocument loadersImagesOn this pageImagesThis covers how to load images such as JPG or PNG into a document format that we can use downstream.Using Unstructured​#!pip install pdfminerfrom langchain.document_loaders.image import UnstructuredImageLoaderloader = UnstructuredImageLoader("layout-parser-paper-fast.jp...
508
https://python.langchain.com/docs/integrations/document_loaders/image_captions
ComponentsDocument loadersImage captionsOn this pageImage captionsBy 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 captions#!pip install transformersfrom langchain.document_loaders import ...
509
https://python.langchain.com/docs/integrations/document_loaders/imsdb
ComponentsDocument loadersIMSDbIMSDbIMSDb 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 IMSDbLoaderloader = IMSDbLoader("https://imsdb.com/scripts/BlacKkKlansman.html")data = loader.load()data[0].page...
510
https://python.langchain.com/docs/integrations/document_loaders/iugu
ComponentsDocument loadersIuguIuguIugu is a Brazilian 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 Iugu REST API into a format that can be ing...
511
https://python.langchain.com/docs/integrations/document_loaders/joplin
ComponentsDocument loadersJoplinJoplinJoplin 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 d...
512
https://python.langchain.com/docs/integrations/document_loaders/jupyter_notebook
ComponentsDocument loadersJupyter NotebookJupyter NotebookJupyter 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 (.html) into a format suitable by LangChain.from langchain.document_lo...
513
https://python.langchain.com/docs/integrations/document_loaders/larksuite
ComponentsDocument loadersLarkSuite (FeiShu)LarkSuite (FeiShu)LarkSuite is an enterprise collaboration platform developed by ByteDance.This notebook covers how to load data from the LarkSuite REST API into a format that can be ingested into LangChain, along with example usage for text summarization.The LarkSuite API re...
514
https://python.langchain.com/docs/integrations/document_loaders/mastodon
ComponentsDocument loadersMastodonMastodonMastodon is a federated social media and social networking service.This loader fetches the text from the "toots" of a list of Mastodon accounts, using the Mastodon.py Python package.Public accounts can the queried by default without any authentication. If non-public accounts or...
515
https://python.langchain.com/docs/integrations/document_loaders/mediawikidump
ComponentsDocument loadersMediaWiki DumpMediaWiki DumpMediaWiki XML Dumps contain the content of a wiki (wiki pages with all their revisions), without the site-related data. A XML dump does not create a full backup of the wiki database, the dump does not contain user accounts, images, edit logs, etc.This covers how to ...
516
https://python.langchain.com/docs/integrations/document_loaders/merge_doc
ComponentsDocument loadersMerge Documents LoaderMerge Documents LoaderMerge the documents returned from a set of specified data loaders.from langchain.document_loaders import WebBaseLoaderloader_web = WebBaseLoader( "https://github.com/basecamp/handbook/blob/master/37signals-is-you.md")from langchain.document_loader...
517
https://python.langchain.com/docs/integrations/document_loaders/mhtml
ComponentsDocument loadersmhtmlmhtmlMHTML is a is used both for emails but also for archived webpages. MHTML, sometimes referred as MHT, stands for MIME HTML is a single file in which entire webpage is archived. When one saves a webpage as MHTML format, this file extension will contain HTML code, images, audio files, f...
518
https://python.langchain.com/docs/integrations/document_loaders/microsoft_onedrive
ComponentsDocument loadersMicrosoft OneDriveOn this pageMicrosoft OneDriveMicrosoft OneDrive (formerly SkyDrive) is a file hosting service operated by Microsoft.This notebook covers how to load documents from OneDrive. Currently, only docx, doc, and pdf files are supported.Prerequisites​Register an application with the...
519
https://python.langchain.com/docs/integrations/document_loaders/microsoft_powerpoint
ComponentsDocument loadersMicrosoft PowerPointOn this pageMicrosoft PowerPointMicrosoft 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 UnstructuredPowerPointLoaderloader = U...
520
https://python.langchain.com/docs/integrations/document_loaders/microsoft_sharepoint
ComponentsDocument loadersMicrosoft SharePointOn this pageMicrosoft SharePointMicrosoft SharePoint is a website-based collaboration system that uses workflow applications, “list” databases, and other web parts and security features to empower business teams to work together developed by Microsoft.This notebook covers h...
521
https://python.langchain.com/docs/integrations/document_loaders/microsoft_word
ComponentsDocument loadersMicrosoft WordOn this pageMicrosoft WordMicrosoft 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.pip install docx2txtfrom langchain.document_loader...
522
https://python.langchain.com/docs/integrations/document_loaders/modern_treasury
ComponentsDocument loadersModern TreasuryModern TreasuryModern Treasury simplifies complex payment operations. It is a unified platform to power products and processes that move money.Connect to banks and payment systemsTrack transactions and balances in real-timeAutomate payment operations for scaleThis notebook cover...
523
https://python.langchain.com/docs/integrations/document_loaders/mongodb
ComponentsDocument loadersMongoDBOn this pageMongoDBMongoDB is a NoSQL , document-oriented database that supports JSON-like documents with a dynamic schema.Overview​The MongoDB Document Loader returns a list of Langchain Documents from a MongoDB database.The Loader requires the following parameters:MongoDB connection s...
524
https://python.langchain.com/docs/integrations/document_loaders/news
ComponentsDocument loadersNews URLNews URLThis covers how to load HTML news articles from a list of URLs into a document format that we can use downstream.from langchain.document_loaders import NewsURLLoaderurls = [ "https://www.bbc.com/news/world-us-canada-66388172", "https://www.bbc.com/news/entertainment-arts-...
525
https://python.langchain.com/docs/integrations/document_loaders/notion
ComponentsDocument loadersNotion DB 1/2On this pageNotion DB 1/2Notion is a collaboration platform with modified Markdown support that integrates kanban boards, tasks, wikis and databases. It is an all-in-one workspace for notetaking, knowledge and data management, and project and task management.This notebook covers h...
526
https://python.langchain.com/docs/integrations/document_loaders/notiondb
ComponentsDocument loadersNotion DB 2/2On this pageNotion DB 2/2Notion is a collaboration platform with modified Markdown support that integrates kanban boards, tasks, wikis and databases. It is an all-in-one workspace for notetaking, knowledge and data management, and project and task management.NotionDBLoader is a Py...
527
https://python.langchain.com/docs/integrations/document_loaders/nuclia
ComponentsDocument loadersNucliaOn this pageNucliaNuclia automatically indexes your unstructured data from any internal and external source, providing optimized search results and generative answers. It can handle video and audio transcription, image content extraction, and document parsing.The Nuclia Understanding API...
528
https://python.langchain.com/docs/integrations/document_loaders/obsidian
ComponentsDocument loadersObsidianObsidianObsidian 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...
529
https://python.langchain.com/docs/integrations/document_loaders/odt
ComponentsDocument loadersOpen Document Format (ODT)Open Document Format (ODT)The Open Document Format for Office Applications (ODF), also known as OpenDocument, is an open file format for word processing documents, spreadsheets, presentations and graphics and using ZIP-compressed XML files. It was developed with the a...
530
https://python.langchain.com/docs/integrations/document_loaders/open_city_data
ComponentsDocument loadersOpen City DataOpen City DataSocrata provides an API for city open data. For a dataset such as SF crime, to to the API tab on top right. That provides you with the dataset identifier.Use the dataset identifier to grab specific tables for a given city_id (data.sfgov.org) - E.g., vw6y-z8j6 for SF...
531
https://python.langchain.com/docs/integrations/document_loaders/org_mode
ComponentsDocument loadersOrg-modeOn this pageOrg-modeA Org Mode document is a document editing, formatting, and organizing mode, designed for notes, planning, and authoring within the free software text editor Emacs.UnstructuredOrgModeLoader​You can load data from Org-mode files with UnstructuredOrgModeLoader using th...
532
https://python.langchain.com/docs/integrations/document_loaders/pandas_dataframe
ComponentsDocument loadersPandas DataFramePandas DataFrameThis notebook goes over how to load data from a pandas DataFrame.#!pip install pandasimport pandas as pddf = pd.read_csv("example_data/mlb_teams_2012.csv")df.head()<div><style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; } ...
533
https://python.langchain.com/docs/integrations/document_loaders/pdf-amazonTextractPDFLoader
ComponentsDocument loadersAmazon TextractOn this pageAmazon TextractAmazon Textract is a machine learning (ML) service that automatically extracts text, handwriting, and data from scanned documents. It goes beyond simple optical character recognition (OCR) to identify, understand, and extract data from forms and tables...
534
https://python.langchain.com/docs/integrations/document_loaders/polars_dataframe
ComponentsDocument loadersPolars DataFramePolars DataFrameThis notebook goes over how to load data from a polars DataFrame.#!pip install polarsimport polars as pldf = pl.read_csv("example_data/mlb_teams_2012.csv")df.head()<div><style>.dataframe > thead > tr > th,.dataframe > tbody > tr > td { text-align: right;}</styl...
535
https://python.langchain.com/docs/integrations/document_loaders/psychic
ComponentsDocument loadersPsychicOn this pagePsychicThis notebook covers how to load documents from Psychic. See here for more details.Prerequisites​Follow the Quick Start section in this documentLog into the Psychic dashboard and get your secret keyInstall the frontend react library into your web app and have a user a...
536
https://python.langchain.com/docs/integrations/document_loaders/pubmed
ComponentsDocument loadersPubMedPubMedPubMed® by The National Center for Biotechnology Information, National Library of Medicine comprises more than 35 million citations for biomedical literature from MEDLINE, life science journals, and online books. Citations may include links to full text content from PubMed Central ...
537
https://python.langchain.com/docs/integrations/document_loaders/pyspark_dataframe
ComponentsDocument loadersPySparkPySparkThis notebook goes over how to load data from a PySpark DataFrame.#!pip install pysparkfrom pyspark.sql import SparkSessionspark = SparkSession.builder.getOrCreate() Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use s...
538
https://python.langchain.com/docs/integrations/document_loaders/readthedocs_documentation
ComponentsDocument loadersReadTheDocs DocumentationReadTheDocs DocumentationRead 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-Th...
539
https://python.langchain.com/docs/integrations/document_loaders/recursive_url
ComponentsDocument loadersRecursive URLRecursive URLWe may want to process load all URLs under a root directory.For example, let's look at the Python 3.9 Document.This has many interesting child pages that we may want to read in bulk.Of course, the WebBaseLoader can load a list of pages. But, the challenge is traversin...
540
https://python.langchain.com/docs/integrations/document_loaders/reddit
ComponentsDocument loadersRedditRedditReddit 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.f...
541
https://python.langchain.com/docs/integrations/document_loaders/roam
ComponentsDocument loadersRoamOn this pageRoamROAM is a note-taking tool for networked thought, designed to create a personal knowledge base.This notebook covers how to load documents from a Roam database. This takes a lot of inspiration from the example repo here.🧑 Instructions for ingesting your own dataset​Export y...
542
https://python.langchain.com/docs/integrations/document_loaders/rockset
ComponentsDocument loadersRocksetOn this pageRocksetRockset is a real-time analytics database which enables queries on massive, semi-structured data without operational burden. With Rockset, ingested data is queryable within one second and analytical queries against that data typically execute in milliseconds. Rockset ...
543
https://python.langchain.com/docs/integrations/document_loaders/rss
ComponentsDocument loadersRSS FeedsRSS FeedsThis covers how to load HTML news articles from a list of RSS feed URLs into a document format that we can use downstream.pip install feedparser newspaper3k listparserfrom langchain.document_loaders import RSSFeedLoaderurls = ["https://news.ycombinator.com/rss"]Pass in urls t...
544
https://python.langchain.com/docs/integrations/document_loaders/rst
ComponentsDocument loadersRSTOn this pageRSTA reStructured Text (RST) file is a file format for textual data used primarily in the Python programming language community for technical documentation.UnstructuredRSTLoader​You can load data from RST files with UnstructuredRSTLoader using the following workflow.from langcha...
545
https://python.langchain.com/docs/integrations/document_loaders/sitemap
ComponentsDocument loadersSitemapOn this pageSitemapExtends from the WebBaseLoader, SitemapLoader loads a sitemap from a given URL, and then scrape and load all pages in the sitemap, returning each page as a Document.The scraping is done concurrently. There are reasonable limits to concurrent requests, defaulting to 2...
546
https://python.langchain.com/docs/integrations/document_loaders/slack
ComponentsDocument loadersSlackOn this pageSlackSlack 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​Export your Slack data. You can do thi...
547
https://python.langchain.com/docs/integrations/document_loaders/snowflake
ComponentsDocument loadersSnowflakeSnowflakeThis notebooks goes over how to load documents from Snowflakepip install snowflake-connector-pythonimport settings as sfrom langchain.document_loaders import SnowflakeLoaderQUERY = "select text, survey_id from CLOUD_DATA_SOLUTIONS.HAPPY_OR_NOT.OPEN_FEEDBACK limit 10"snowflake...
548
https://python.langchain.com/docs/integrations/document_loaders/source_code
ComponentsDocument loadersSource CodeOn this pageSource CodeThis notebook covers how to load source code files using a special approach with language parsing: each top-level function and class in the code is loaded into separate documents. Any remaining code top-level code outside the already loaded functions and class...
549
https://python.langchain.com/docs/integrations/document_loaders/spreedly
ComponentsDocument loadersSpreedlySpreedlySpreedly 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 se...
550
https://python.langchain.com/docs/integrations/document_loaders/stripe
ComponentsDocument loadersStripeStripeStripe 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 ...
551
https://python.langchain.com/docs/integrations/document_loaders/subtitle
ComponentsDocument loadersSubtitleSubtitleThe SubRip file format is described on the Matroska multimedia container format website as "perhaps the most basic of all subtitle formats." SubRip (SubRip Text) files are named with the extension .srt, and contain formatted lines of plain text in groups separated by a blank li...
552
https://python.langchain.com/docs/integrations/document_loaders/telegram
ComponentsDocument loadersTelegramTelegramTelegram 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 notebo...
553
https://python.langchain.com/docs/integrations/document_loaders/tencent_cos_directory
ComponentsDocument loadersTencent COS DirectoryOn this pageTencent COS DirectoryThis covers how to load document objects from a Tencent COS Directory.#! pip install cos-python-sdk-v5from langchain.document_loaders import TencentCOSDirectoryLoaderfrom qcloud_cos import CosConfigconf = CosConfig( Region="your cos regi...
554
https://python.langchain.com/docs/integrations/document_loaders/tencent_cos_file
ComponentsDocument loadersTencent COS FileTencent COS FileThis covers how to load document object from a Tencent COS File.#! pip install cos-python-sdk-v5from langchain.document_loaders import TencentCOSFileLoaderfrom qcloud_cos import CosConfigconf = CosConfig( Region="your cos region", SecretId="your cos secret...
555
https://python.langchain.com/docs/integrations/document_loaders/tensorflow_datasets
ComponentsDocument loadersTensorFlow DatasetsOn this pageTensorFlow DatasetsTensorFlow Datasets is a collection of datasets ready to use, with TensorFlow or other Python ML frameworks, such as Jax. All datasets are exposed as tf.data.Datasets, enabling easy-to-use and high-performance input pipelines. To get started se...
556
https://python.langchain.com/docs/integrations/document_loaders/tomarkdown
ComponentsDocument loaders2Markdown2Markdown2markdown service transforms website content into structured markdown files.# You will need to get your own API key. See https://2markdown.com/loginapi_key = ""from langchain.document_loaders import ToMarkdownLoaderloader = ToMarkdownLoader.from_api_key( url="https://pytho...
557
https://python.langchain.com/docs/integrations/document_loaders/toml
ComponentsDocument loadersTOMLTOMLTOML 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...
558
https://python.langchain.com/docs/integrations/document_loaders/trello
ComponentsDocument loadersTrelloOn this pageTrelloTrello is a web-based project management and collaboration tool that allows individuals and teams to organize and track their tasks and projects. It provides a visual interface known as a "board" where users can create lists and cards to represent their tasks and activi...
559
https://python.langchain.com/docs/integrations/document_loaders/tsv
ComponentsDocument loadersTSVOn this pageTSVA tab-separated values (TSV) file is a simple, text-based file format for storing tabular data.[3] Records are separated by newlines, and values within a record are separated by tab characters.UnstructuredTSVLoader​You can also load the table using the UnstructuredTSVLoader. ...
560
https://python.langchain.com/docs/integrations/document_loaders/twitter
ComponentsDocument loadersTwitterTwitterTwitter is an online social media and social networking service.This loader fetches the text from the Tweets of a list of Twitter users, using the tweepy Python package. You must initialize the loader with your Twitter API token, and you need to pass in the Twitter username you w...
561
https://python.langchain.com/docs/integrations/document_loaders/unstructured_file
ComponentsDocument loadersUnstructured FileOn this pageUnstructured FileThis 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.# # Install packagepip install "unstructured[all-docs]"# # Install ot...
562
https://python.langchain.com/docs/integrations/document_loaders/url
ComponentsDocument loadersURLOn this pageURLThis 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 UnstructuredURLLoaderurls = [ "https://www.understandingwar.org/backgrounder/russian-offensive-campaign-assessment-february-8...
563
https://python.langchain.com/docs/integrations/document_loaders/weather
ComponentsDocument loadersWeatherWeatherOpenWeatherMap is an open source weather service providerThis 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 ...
564
https://python.langchain.com/docs/integrations/document_loaders/web_base
ComponentsDocument loadersWebBaseLoaderOn this pageWebBaseLoaderThis 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 for loading webpages look at some child class examples such as IMSDbLoader, AZLyricsLoader, and CollegeConfide...
565
https://python.langchain.com/docs/integrations/document_loaders/whatsapp_chat
ComponentsDocument loadersWhatsApp ChatWhatsApp ChatWhatsApp (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 ...
566
https://python.langchain.com/docs/integrations/document_loaders/wikipedia
ComponentsDocument loadersWikipediaOn this pageWikipediaWikipedia 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 reference work...
567
https://python.langchain.com/docs/integrations/document_loaders/xml
ComponentsDocument loadersXMLXMLThe UnstructuredXMLLoader is used to load XML files. The loader works with .xml files. The page content will be the text extracted from the XML tags.from langchain.document_loaders import UnstructuredXMLLoaderloader = UnstructuredXMLLoader( "example_data/factbook.xml",)docs = loader.l...
568
https://python.langchain.com/docs/integrations/document_loaders/xorbits
ComponentsDocument loadersXorbits Pandas DataFrameXorbits Pandas DataFrameThis notebook goes over how to load data from a xorbits.pandas DataFrame.#!pip install xorbitsimport xorbits.pandas as pddf = pd.read_csv("example_data/mlb_teams_2012.csv")df.head() 0%| | 0.00/100 [00:00<?, ?it/s]<div><style scoped> ...
569
https://python.langchain.com/docs/integrations/document_loaders/youtube_audio
ComponentsDocument loadersYouTube audioOn this pageYouTube audioBuilding chat or QA applications on YouTube videos is a topic of high interest.Below we show how to easily go from a YouTube url to audio of the video to text to chat!We wil use the OpenAIWhisperParser, which will use the OpenAI Whisper API to transcribe a...
570
https://python.langchain.com/docs/integrations/document_loaders/youtube_transcript
ComponentsDocument loadersYouTube transcriptsOn this pageYouTube transcriptsYouTube is an online video sharing and social media platform created by Google.This notebook covers how to load documents from YouTube transcripts.from langchain.document_loaders import YoutubeLoader# !pip install youtube-transcript-apiloader =...
571
https://python.langchain.com/docs/integrations/document_transformers
ComponentsDocument transformersDocument transformers📄️ Beautiful SoupBeautiful Soup is a Python package for parsing📄️ Google Cloud Document AIDocument AI is a document understanding platform from Google Cloud to transform unstructured data from documents into structured data, making it easier to understand, analyze, ...
572
https://python.langchain.com/docs/integrations/document_transformers/beautiful_soup
ComponentsDocument transformersBeautiful SoupBeautiful SoupBeautiful Soup is a Python package for parsing HTML and XML documents (including having malformed markup, i.e. non-closed tags, so named after tag soup). It creates a parse tree for parsed pages that can be used to extract data from HTML,[3] which is useful for...
573
https://python.langchain.com/docs/integrations/document_transformers/docai
ComponentsDocument transformersGoogle Cloud Document AIGoogle Cloud Document AIDocument AI is a document understanding platform from Google Cloud to transform unstructured data from documents into structured data, making it easier to understand, analyze, and consume.Learn more:Document AI overviewDocument AI videos and...
574
https://python.langchain.com/docs/integrations/document_transformers/doctran_extract_properties
ComponentsDocument transformersDoctran: extract propertiesOn this pageDoctran: extract propertiesWe can extract useful features of documents using the Doctran library, which uses OpenAI's function calling feature to extract specific metadata.Extracting metadata from documents is helpful for a variety of tasks, includin...
575
https://python.langchain.com/docs/integrations/document_transformers/doctran_interrogate_document
ComponentsDocument transformersDoctran: interrogate documentsOn this pageDoctran: interrogate documentsDocuments used in a vector store knowledge base are typically stored in a narrative or conversational format. However, most user queries are in question format. If we convert documents into Q&A format before vectorizi...
576
https://python.langchain.com/docs/integrations/document_transformers/doctran_translate_document
ComponentsDocument transformersDoctran: language translationOn this pageDoctran: language translationComparing documents through embeddings has the benefit of working across multiple languages. "Harrison says hello" and "Harrison dice hola" will occupy similar positions in the vector space because they have the same me...
577
https://python.langchain.com/docs/integrations/document_transformers/html2text
ComponentsDocument transformersHTML to textHTML to texthtml2text is a Python package that converts a page of HTML into clean, easy-to-read plain ASCII text. The ASCII also happens to be a valid Markdown (a text-to-HTML format).pip install html2textfrom langchain.document_loaders import AsyncHtmlLoaderurls = ["https://w...
578
https://python.langchain.com/docs/integrations/document_transformers/nuclia_transformer
ComponentsDocument transformersNucliaNucliaNuclia automatically indexes your unstructured data from any internal and external source, providing optimized search results and generative answers. It can handle video and audio transcription, image content extraction, and document parsing.Nuclia Understanding API document t...
579
https://python.langchain.com/docs/integrations/document_transformers/openai_metadata_tagger
ComponentsDocument transformersOpenAI metadata taggerOn this pageOpenAI metadata taggerIt can often be useful to tag ingested documents with structured metadata, such as the title, tone, or length of a document, to allow for a more targeted similarity search later. However, for large numbers of documents, performing th...
580
https://python.langchain.com/docs/integrations/text_embedding
ComponentsText embedding modelsText embedding models📄️ Aleph AlphaThere are two possible ways to use Aleph Alpha's semantic embeddings. If you have texts with a dissimilar structure (e.g. a Document and a Query) you would want to use asymmetric embeddings. Conversely, for texts with comparable structures, symmetric em...
581
https://python.langchain.com/docs/integrations/text_embedding/aleph_alpha
ComponentsText embedding modelsAleph AlphaOn this pageAleph AlphaThere are two possible ways to use Aleph Alpha's semantic embeddings. If you have texts with a dissimilar structure (e.g. a Document and a Query) you would want to use asymmetric embeddings. Conversely, for texts with comparable structures, symmetric embe...
582
https://python.langchain.com/docs/integrations/text_embedding/awadb
ComponentsText embedding modelsAwaDBOn this pageAwaDBAwaDB is an AI Native database for the search and storage of embedding vectors used by LLM Applications.This notebook explains how to use AwaEmbeddings in LangChain.# pip install awadbimport the library​from langchain.embeddings import AwaEmbeddingsEmbedding = AwaEmb...
583
https://python.langchain.com/docs/integrations/text_embedding/azureopenai
ComponentsText embedding modelsAzureOpenAIAzureOpenAILet's load the OpenAI Embedding class with environment variables set to indicate to use Azure endpoints.# set the environment variables needed for openai package to know to reach out to azureimport osos.environ["OPENAI_API_TYPE"] = "azure"os.environ["OPENAI_API_BASE"...
584
https://python.langchain.com/docs/integrations/text_embedding/baidu_qianfan_endpoint
ComponentsText embedding modelsBaidu QianfanOn this pageBaidu QianfanBaidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open source models, but also ...
585
https://python.langchain.com/docs/integrations/text_embedding/bedrock
ComponentsText embedding modelsBedrockBedrockAmazon Bedrock is a fully managed service that makes FMs from leading AI startups and Amazon available via an API, so you can choose from a wide range of FMs to find the model that is best suited for your use case.%pip install boto3from langchain.embeddings import BedrockEmb...
586
https://python.langchain.com/docs/integrations/text_embedding/bge_huggingface
ComponentsText embedding modelsBGE on Hugging FaceBGE on Hugging FaceBGE models on the HuggingFace are the best open-source embedding models. BGE model is created by the Beijing Academy of Artificial Intelligence (BAAI). BAAI is a private non-profit organization engaged in AI research and development.This notebook show...
587
https://python.langchain.com/docs/integrations/text_embedding/clarifai
ComponentsText embedding modelsClarifaiClarifaiClarifai is an AI Platform that provides the full AI lifecycle ranging from data exploration, data labeling, model training, evaluation, and inference.This example goes over how to use LangChain to interact with Clarifai models. Text embedding models in particular can be f...
588
https://python.langchain.com/docs/integrations/text_embedding/cohere
ComponentsText embedding modelsCohereCohereLet's load the Cohere Embedding class.from langchain.embeddings import CohereEmbeddingsembeddings = CohereEmbeddings(cohere_api_key=cohere_api_key)text = "This is a test document."query_result = embeddings.embed_query(text)doc_result = embeddings.embed_documents([text])Previou...
589
https://python.langchain.com/docs/integrations/text_embedding/dashscope
ComponentsText embedding modelsDashScopeDashScopeLet's load the DashScope Embedding class.from langchain.embeddings import DashScopeEmbeddingsembeddings = DashScopeEmbeddings( model="text-embedding-v1", dashscope_api_key="your-dashscope-api-key")text = "This is a test document."query_result = embeddings.embed_query(...
590
https://python.langchain.com/docs/integrations/text_embedding/deepinfra
ComponentsText embedding modelsDeepInfraDeepInfraDeepInfra is a serverless inference as a service that provides access to a variety of LLMs and embeddings models. This notebook goes over how to use LangChain with DeepInfra for text embeddings.# sign up for an account: https://deepinfra.com/login?utm_source=langchainfro...
591
https://python.langchain.com/docs/integrations/text_embedding/edenai
ComponentsText embedding modelsEDEN AIOn this pageEDEN AIEden AI is revolutionizing the AI landscape by uniting the best AI providers, empowering users to unlock limitless possibilities and tap into the true potential of artificial intelligence. With an all-in-one comprehensive and hassle-free platform, it allows users...
592
https://python.langchain.com/docs/integrations/text_embedding/elasticsearch
ComponentsText embedding modelsElasticsearchOn this pageElasticsearchWalkthrough of how to generate embeddings using a hosted embedding model in ElasticsearchThe easiest way to instantiate the ElasticsearchEmbeddings class it eitherusing the from_credentials constructor if you are using Elastic Cloudor using the from_e...
593
https://python.langchain.com/docs/integrations/text_embedding/embaas
ComponentsText embedding modelsEmbaasOn this pageEmbaasembaas is a fully managed NLP API service that offers features like embedding generation, document text extraction, document to embeddings and more. You can choose a variety of pre-trained models.In this tutorial, we will show you how to use the embaas Embeddings A...
594
https://python.langchain.com/docs/integrations/text_embedding/ernie
ComponentsText embedding modelsERNIE Embedding-V1ERNIE Embedding-V1ERNIE Embedding-V1 is a text representation model based on Baidu Wenxin's large-scale model technology, which converts text into a vector form represented by numerical values, and is used in text retrieval, information recommendation, knowledge mining a...