id
stringlengths
14
16
text
stringlengths
36
2.73k
source
stringlengths
49
117
143085da57bc-1
[Document(page_content='LangChain is a framework for developing applications powered by language models. We believe that the most powerful and differentiated applications will not only call out to a language model via an API, but will also:\nBe data-aware: connect a language model to other sources of data\nBe agentic: ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
143085da57bc-2
This includes prompt management, prompt optimization, and prompt serialization.\nMemory: Memory is the concept of persisting state between calls of a chain/agent. LangChain provides a standard interface for memory, a collection of memory implementations, and examples of chains/agents that use memory.\nIndexes: Language...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
143085da57bc-3
ways. LangChain also provides guidance and assistance in this. Below are some of the common use cases LangChain supports.\nPersonal Assistants: The main LangChain use case. Personal assistants need to take actions, remember interactions, and have knowledge about your data.\nQuestion Answering: The second big LangChain ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
143085da57bc-4
type of Data Augmented Generation.\nEvaluation: Generative models are notoriously hard to evaluate with traditional metrics. One new way of evaluating them is using language models themselves to do the evaluation. LangChain provides some prompts/chains for assisting in this.\nReference Docs\nAll of LangChain’s referenc...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
143085da57bc-5
template repositories for deploying LangChain apps.\nTracing: A guide on using tracing in LangChain to visualize the execution of chains and agents.\nModel Laboratory: Experimenting with different prompts, models, and chains is a big part of developing the best possible application. The ModelLaboratory makes it easy to...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
143085da57bc-6
previous Confluence next Discord By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
c205335719dd-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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/modern_treasury.html
81ea999c7709-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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
81ea999c7709-1
# See https://python.langchain.com/en/latest/modules/models/chat/getting_started.html for chat info system_prompt_template = """You are expert coder Jon Carmack. Use the provided design context to create idomatic HTML/CSS code as possible based on the user request. Everything must be inline in one file and your...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
81ea999c7709-2
<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <style>\n @import url(\'https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=Inter:wght@600&display=swap\');\n\n body {\n margin...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
81ea999c7709-3
font-weight: 700;\n margin: 0;\n }\n\n .header nav {\n display: flex;\n align-items: center;\n }\n\n .header nav a {\n font-size: 14px;\n font-weight: 500;\n text-decoration: none;\n color: #000;\n margin...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
81ea999c7709-4
Ipsum</a>\n <a href="#">Lorem Ipsum</a>\n <a href="#">Lorem Ipsum</a>\n </nav>\n </header>\n</body>\n</html>
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
81ea999c7709-5
previous DuckDB next GitBook By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/figma.html
4d40ca98a7b7-0
.ipynb .pdf Discord Discord# Discord is a VoIP and instant messaging social platform. Users have the ability to communicate with voice calls, video calls, text messaging, media and files in private chats or as part of communities called “servers”. A server is a collection of persistent chat rooms and voice channels whi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/discord_loader.html
1b7a23950c18-0
.ipynb .pdf EPub Contents Retain Elements EPub# EPUB is an e-book file format that uses the “.epub” file extension. The term is short for electronic publication and is sometimes styled ePub. EPUB is supported by many e-readers, and compatible software is available for most smartphones, tablets, and computers. This co...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/epub.html
20722edfe3ee-0
.ipynb .pdf Azure Blob Storage File Azure Blob Storage File# Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol, Network File System (NFS) protocol, and Azure Files REST API. This covers how to load document objects from a Azure Fi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/azure_blob_storage_file.html
ab768ff45a5b-0
.ipynb .pdf Google Cloud Storage File Google Cloud Storage File# Google Cloud Storage is a managed service for storing unstructured data. This covers how to load document objects from an Google Cloud Storage (GCS) file object (blob). # !pip install google-cloud-storage from langchain.document_loaders import GCSFileLoad...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_file.html
5528430a3e7c-0
.ipynb .pdf Git Contents Load existing repository from disk Clone repository from url Filtering files to load Git# Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software d...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/git.html
5528430a3e7c-1
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/git.html
9f1faa2789e8-0
.ipynb .pdf Images Contents Using Unstructured Retain Elements Images# This covers how to load images such as JPG or PNG into a document format that we can use downstream. Using Unstructured# #!pip install pdfminer from langchain.document_loaders.image import UnstructuredImageLoader loader = UnstructuredImageLoader("...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
9f1faa2789e8-1
Document(page_content="LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\n\n\n‘Zxjiang Shen' (F3}, Ruochen Zhang”, Melissa Dell*, Benjamin Charles Germain\nLeet, Jacob Carlson, and Weining LiF\n\n\nsugehen\n\nshangthrows, et\n\n“Abstract. Recent advanocs in document image analysis (DIA) h...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
9f1faa2789e8-2
streamlining the sage of DL in DIA research and appicn\n‘tons The core LayoutFaraer brary comes with a sch of simple and\nIntative interfaee or applying and eutomiing DI. odel fr Inyo de\npltfom for sharing both protrined modes an fal document dist\n{ation pipeline We demonutate that LayootPareer shea fr both\nlightwei...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
9f1faa2789e8-3
Retain Elements# Under the hood, Unstructured creates different “elements” for different chunks of text. By default we combine those together, but you can easily keep that separation by specifying mode="elements". loader = UnstructuredImageLoader("layout-parser-paper-fast.jpg", mode="elements") data = loader.load() dat...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
1176b9bea530-0
.ipynb .pdf YouTube transcripts Contents Add video info 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 documents from YouTube transc...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/youtube_transcript.html
1176b9bea530-1
google_api_client = GoogleApiClient(credentials_path=Path("your_path_creds.json")) # Use a Channel youtube_loader_channel = GoogleApiYoutubeLoader(google_api_client=google_api_client, channel_name="Reducible",captions_language="en") # Use Youtube Ids youtube_loader_ids = GoogleApiYoutubeLoader(google_api_client=google_...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/youtube_transcript.html
6eef7f00ed90-0
.ipynb .pdf Notion DB 1/2 Contents 🧑 Instructions for ingesting your own dataset Notion DB 1/2# Notion 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 tas...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notion.html
0e40e40b8951-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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/evernote.html
0e40e40b8951-1
Document(page_content='**Jan - March 2022**', metadata={'title': 'Summer Training Program', 'created': time.struct_time(tm_year=2022, tm_mon=12, tm_mday=27, tm_hour=1, tm_min=59, tm_sec=48, tm_wday=1, tm_yday=361, tm_isdst=-1), 'note-attributes.author': 'Mike McGarry', 'note-attributes.source': 'mobile.iphone', 'source...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/evernote.html
9caf76569e8c-0
.ipynb .pdf Google Cloud Storage Directory Contents Specifying a prefix Google Cloud Storage Directory# Google Cloud Storage is a managed service for storing unstructured data. This covers how to load document objects from an Google Cloud Storage (GCS) directory (bucket). # !pip install google-cloud-storage from lang...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html
9caf76569e8c-1
warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING) [Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpz37njh7u/fake.docx'}, lookup_index=0)] Specifying a prefix# You can also specify a prefix for more finegrained control over what fil...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html
9caf76569e8c-2
warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING) [Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpylg6291i/fake.docx'}, lookup_index=0)] previous Google BigQuery next Google Cloud Storage File Contents Specifying a prefix By H...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/google_cloud_storage_directory.html
90ee52f5cb41-0
.ipynb .pdf Microsoft OneDrive Contents Prerequisites 🧑 Instructions for ingesting your documents from OneDrive 🔑 Authentication 🗂️ Documents loader 📑 Loading documents from a OneDrive Directory 📑 Loading documents from a list of Documents IDs Microsoft OneDrive# Microsoft OneDrive (formerly SkyDrive) is a file ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/microsoft_onedrive.html
90ee52f5cb41-1
🧑 Instructions for ingesting your documents from OneDrive# 🔑 Authentication# By default, the OneDriveLoader expects that the values of CLIENT_ID and CLIENT_SECRET must be stored as environment variables named O365_CLIENT_ID and O365_CLIENT_SECRET respectively. You could pass those environment variables through a .env...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/microsoft_onedrive.html
90ee52f5cb41-2
from langchain.document_loaders.onedrive import OneDriveLoader loader = OneDriveLoader(drive_id="YOUR DRIVE ID", folder_path="Documents/clients", auth_with_token=True) documents = loader.load() 📑 Loading documents from a list of Documents IDs# Another possibility is to provide a list of object_id for each document you...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/microsoft_onedrive.html
ceaada40006d-0
.ipynb .pdf Reddit 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. ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-1
documents = loader.load() documents[:5] [Document(page_content='Hello, I am not looking for investment advice. I will apply my own due diligence. However, I am interested if anyone knows as a UK resident how fees and exchange rate differences would impact performance?\n\nI am planning to create a pie of index funds (pe...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-2
Document(page_content='Have a general question? Want to offer some commentary on markets? Maybe you would just like to throw out a neat fact that doesn\'t warrant a self post? Feel free to post here! \n\nIf your question is "I have $10,000, what do I do?" or other "advice for my personal situation" questions, you sh...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-3
big debts (include interest rate) or expenses? \n* And any other relevant financial information will be useful to give you a proper answer. \n\nPlease consider consulting our FAQ first - https://www.reddit.com/r/investing/wiki/faq\nAnd our [side bar](https://www.reddit.com/r/investing/about/sidebar) also has useful r...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-4
Thread - April 27, 2023', 'post_score': 5, 'post_id': '130eszz', 'post_url': 'https://www.reddit.com/r/investing/comments/130eszz/daily_general_discussion_and_advice_thread_april/', 'post_author': Redditor(name='AutoModerator')}),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-5
Document(page_content="Based on recent news about salt battery advancements and the overall issues of lithium, I was wondering what would be feasible ways to invest into non-lithium based battery technologies? CATL is of course a choice, but the selection of brokers I currently have in my disposal don't provide HK stoc...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
ceaada40006d-6
Document(page_content='Hello everyone,\n\nI would really like to invest in an ETF that follows spy or another big index, as I think this form of investment suits me best. \n\nThe problem is, that I live in Denmark where ETFs and funds are taxed annually on unrealised gains at quite a steep rate. This means that an ETF ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/reddit.html
8a8996552499-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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/slack.html
e5f184ee5951-0
.ipynb .pdf Twitter Twitter# Twitter 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 want to ext...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-1
[Document(page_content='@MrAndyNgo @REI One store after another shutting down', metadata={'created_at': 'Tue Apr 18 03:45:50 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfall of Gravitas', 'profile_location': None, 'description': 'n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-2
[], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-3
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-4
Document(page_content='@KanekoaTheGreat @joshrogin @glennbeck Large ships are fundamentally vulnerable to ballistic (hypersonic) missiles', metadata={'created_at': 'Tue Apr 18 03:43:25 +0000 2023', 'user_info': {'id': 44196397, 'id_str': '44196397', 'name': 'Elon Musk', 'screen_name': 'elonmusk', 'location': 'A Shortfa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-5
down', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-6
'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-7
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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-8
'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-9
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-10
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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-11
'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', 'in_...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-12
'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/44196397/157618347...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-13
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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-14
'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'MrAndyNgo', 'name': 'Andy Ngô 🏳️\u200d🌈', 'id': 2835451658, 'id_str': '2835451658', 'indices': [0, 10]}, {'screen_name': 'REI', 'name': 'REI', 'id': 16583846, 'id_str': '16583846', 'indices': [11, 15]}], 'urls': []}, 'source': '<a href="ht...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-15
'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg', 'profile_image_url_https': 'https://pbs.twi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
e5f184ee5951-16
previous 2Markdown next Text Splitters By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
436767b5b630-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://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/html.html
39eeb5add789-0
.ipynb .pdf Confluence Confluence# Confluence is a wiki collaboration platform that saves and organizes all of the project-related material. Confluence is a knowledge base that primarily handles content management activities. A loader for Confluence pages. This currently supports both username/api_key and Oauth2 login....
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/confluence.html
bd193ca73b62-0
.ipynb .pdf Gutenberg Gutenberg# Project 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 GutenbergLoader loader = GutenbergLoader('https://www.gutenberg.org/cache/epub/699...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/gutenberg.html
8e4fbf5ffd81-0
.ipynb .pdf Email Contents Using Unstructured Retain Elements Using OutlookMessageLoader Email# This notebook shows how to load email (.eml) or Microsoft Outlook (.msg) files. Using Unstructured# #!pip install unstructured from langchain.document_loaders import UnstructuredEmailLoader loader = UnstructuredEmailLoader...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html
8e4fbf5ffd81-1
previous CSV next EPub Contents Using Unstructured Retain Elements Using OutlookMessageLoader By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html
e16ce77dec83-0
.ipynb .pdf JSON Contents Using JSONLoader Extracting metadata The metadata_func Common JSON structures with jq schema JSON# JSON (JavaScript Object Notation) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pair...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-1
{'content': 'Im not interested in this bag. Im interested in the ' 'blue one!', 'sender_name': 'User 1', 'timestamp_ms': 1675595109305}, {'content': 'Here is $129', 'sender_name': 'User 2', 'timestamp_ms': 1675595068468}...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-2
loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[].content') data = loader.load() pprint(data) [Document(page_content='Bye!', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-3
Document(page_content='Online is at least $100', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 8}), Document(page_content='How much do you want?', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/index...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-4
Additionally, we now have to explicitly specify in the loader, via the content_key argument, the key from the record where the value for the page_content needs to be extracted from. # Define the metadata extraction function. def metadata_func(record: dict, metadata: dict) -> dict: metadata["sender_name"] = record.g...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-5
Document(page_content='I thought you were selling the blue one!', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 4, 'sender_name': 'User 1', 'timestamp_ms': 1675595140251}), Document(page_content='Im not interested in th...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-6
Document(page_content='Goodmorning! $50 is too low.', metadata={'source': '/Users/avsolatorio/WBG/langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 10, 'sender_name': 'User 2', 'timestamp_ms': 1675577876645}), Document(page_content='Hi! Im interested in your bag. Im ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-7
return metadata loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[]', content_key="content", metadata_func=metadata_func ) data = loader.load() pprint(data) [Document(page_content='Bye!', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-8
Document(page_content='Here is $129', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/examples/example_data/facebook_chat.json', 'seq_num': 6, 'sender_name': 'User 2', 'timestamp_ms': 1675595068468}), Document(page_content='', metadata={'source': 'langchain/docs/modules/indexes/document_loaders/ex...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
e16ce77dec83-9
Common JSON structures with jq schema# The list below provides a reference to the possible jq_schema the user can use to extract content from the JSON data depending on the structure. JSON -> [{"text": ...}, {"text": ...}, {"text": ...}] jq_schema -> ".[].text" JSON -> {"key": [{"text": ...}, {...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html
4e02a3a06729-0
.ipynb .pdf Sitemap Contents Filtering sitemap URLs Local Sitemap Sitemap# Extends 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...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-1
Document(page_content='\n\n\n\n\n\nWelcome to LangChain — 🦜🔗 LangChain 0.0.123\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSkip to main content\n\n\n\n\n\n\n\n\n\n\nCtrl+K\n\n\n\n\n\n\n\n\n\n\n\n\n🦜🔗 LangChain 0.0.123\n\n\n\nGetting Started\n\nQuickstart Guide\n\nMod...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-2
OpenAI\nSageMakerEndpoint\nSelf-Hosted Models via Runhouse\nStochasticAI\nWriter\n\n\nAsync API for LLM\nStreaming with LLMs\n\n\nReference\n\n\nDocument Loaders\nKey Concepts\nHow To Guides\nCoNLL-U\nAirbyte JSON\nAZLyrics\nBlackboard\nCollege Confidential\nCopy Paste\nCSV Loader\nDirectory Loader\nEmail\nEverNote\nFa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-3
Document Embeddings\nText Splitter\nVectorStores\nAtlasDB\nChroma\nDeep Lake\nElasticSearch\nFAISS\nMilvus\nOpenSearch\nPGVector\nPinecone\nQdrant\nRedis\nWeaviate\nChatGPT Plugin Retriever\nVectorStore Retriever\nAnalyze Document\nChat Index\nGraph QA\nQuestion Answering with Sources\nQuestion Answering\nSummarization...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-4
Agent\nJSON Agent\nOpenAPI Agent\nPandas Dataframe Agent\nPython Agent\nSQL Database Agent\nVectorstore Agent\nMRKL\nMRKL Chat\nReAct\nSelf Ask With Search\n\n\nReference\n\n\nMemory\nGetting Started\nKey Concepts\nHow-To Guides\nConversationBufferMemory\nConversationBufferWindowMemory\nEntity Memory\nConversation Know...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-5
Generation\nQuestion Answering\nSQL Question Answering Benchmarking: Chinook\n\n\nModel Comparison\n\nReference\n\nInstallation\nIntegrations\nAPI References\nPrompts\nPromptTemplates\nExample Selector\n\n\nUtilities\nPython REPL\nSerpAPI\nSearxNG Search\nDocstore\nText Splitter\nEmbeddings\nVectorStores\n\n\nChains\nA...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-6
Started\nModules\nUse Cases\nReference Docs\nLangChain Ecosystem\nAdditional Resources\n\n\n\n\n\n\n\n\nWelcome to LangChain#\nLarge language models (LLMs) are emerging as a transformative technology, enabling\ndevelopers to build applications that they previously could not.\nBut using these LLMs in isolation is often ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-7
support for.\nFor each module we provide some examples to get started, how-to guides, reference docs, and conceptual guides.\nThese modules are, in increasing order of complexity:\n\nPrompts: This includes prompt management, prompt optimization, and prompt serialization.\nLLMs: This includes a generic interface for all...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-8
models are often more powerful when combined with your own text data - this module covers best practices for doing exactly that.\nAgents: Agents involve an LLM making decisions about which Actions to take, taking that Action, seeing an Observation, and repeating that until done. LangChain provides a standard interface ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-9
the common use cases LangChain supports.\n\nAgents: Agents are systems that use a language model to interact with other tools. These can be used to do more grounded question/answering, interact with APIs, or even take actions.\nChatbots: Since language models are good at producing text, that makes them ideal for creati...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-10
SQL, dataframes, etc) you should read this page.\nEvaluation: Generative models are notoriously hard to evaluate with traditional metrics. One new way of evaluating them is using language models themselves to do the evaluation. LangChain provides some prompts/chains for assisting in this.\nGenerate similar examples: Ge...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-11
application!\n\nLangChainHub: The LangChainHub is a place to share and explore other prompts, chains, and agents.\nGlossary: A glossary of all related terms, papers, methods, etc. Whether implemented in LangChain or not!\nGallery: A collection of our favorite projects that use LangChain. Useful for finding inspiration ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-12
Harrison Chase\n\n\n\n\n \n © Copyright 2023, Harrison Chase.\n \n\n\n\n\n Last updated on Mar 24, 2023.\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n', lookup_str='', metadata={'source': 'https://python.langchain.com/en/stable/', 'loc': 'https://python.langchain.com/en/stable/', 'lastmod': '2023-03-24T19:30:54.647...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-13
Filtering sitemap URLs# Sitemaps can be massive files, with thousands of URLs. Often you don’t need every single one of them. You can filter the URLs by passing a list of strings or regex patterns to the url_filter parameter. Only URLs that match one of the patterns will be loaded. loader = SitemapLoader( "https...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-14
Document(page_content='\n\n\n\n\n\nWelcome to LangChain — 🦜🔗 LangChain 0.0.123\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nSkip to main content\n\n\n\n\n\n\n\n\n\n\nCtrl+K\n\n\n\n\n\n\n\n\n\n\n\n\n🦜🔗 LangChain 0.0.123\n\n\n\nGetting Started\n\nQuickstart Guide\n\nMod...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-15
Models\nGetting Started\nHow-To Guides\nHow to use few shot examples\nHow to stream responses\n\n\nIntegrations\nAzure\nOpenAI\nPromptLayer ChatOpenAI\n\n\n\n\nText Embedding Models\nAzureOpenAI\nCohere\nFake Embeddings\nHugging Face Hub\nInstructEmbeddings\nOpenAI\nSageMaker Endpoint Embeddings\nSelf Hosted Embeddings...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-16
File Storage\nGitBook\nGoogle Drive\nGutenberg\nHacker News\nHTML\niFixit\nImages\nIMSDb\nMarkdown\nNotebook\nNotion\nObsidian\nPDF\nPowerPoint\nReadTheDocs Documentation\nRoam\ns3 Directory\ns3 File\nSubtitle Files\nTelegram\nUnstructured File Loader\nURL\nWeb Base\nWord Documents\nYouTube\n\n\nText Splitters\nGetting...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-17
Memory class\nHow to use multiple memroy classes in the same chain\n\n\n\n\nChains\nGetting Started\nHow-To Guides\nAsync API for Chain\nLoading from LangChainHub\nLLM Chain\nSequential Chains\nSerialization\nTransformation Chain\nAnalyze Document\nChat Index\nGraph QA\nHypothetical Document Embeddings\nQuestion Answer...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-18
Dataframe Agent\nPython Agent\nSQL Database Agent\nVectorstore Agent\n\n\nAgent Executors\nHow to combine agents and vectorstores\nHow to use the async API for Agents\nHow to create ChatGPT Clone\nHow to access intermediate steps\nHow to cap the max number of iterations\nHow to add SharedMemory to an Agent and its Tool...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-19
Lake\nForefrontAI\nGoogle Search Wrapper\nGoogle Serper Wrapper\nGooseAI\nGraphsignal\nHazy Research\nHelicone\nHugging Face\nMilvus\nModal\nNLPCloud\nOpenAI\nOpenSearch\nPetals\nPGVector\nPinecone\nPromptLayer\nQdrant\nRunhouse\nSearxNG Search API\nSerpAPI\nStochasticAI\nUnstructured\nWeights & Biases\nWeaviate\nWolfr...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-20
data\nBe agentic: allow a language model to interact with its environment\n\nThe LangChain framework is designed with the above principles in mind.\nThis is the Python specific portion of the documentation. For a purely conceptual guide to LangChain, see here. For the JavaScript documentation, see here.\n\nGetting Star...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-21
that use memory.\nIndexes: Language models are often more powerful when combined with your own text data - this module covers best practices for doing exactly that.\nChains: Chains go beyond just a single LLM call, and are sequences of calls (whether to an LLM or a different utility). LangChain provides a standard inte...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-22
have knowledge about your data.\nQuestion Answering: The second big LangChain use case. Answering questions over specific documents, only utilizing the information in those documents to construct an answer.\nChatbots: Since language models are good at producing text, that makes them ideal for creating chatbots.\nQueryi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-23
assisting in this.\n\n\n\n\n\nReference Docs#\nAll of LangChain’s reference documentation, in one place. Full documentation on all methods, classes, installation methods, and integration setups for LangChain.\n\nReference Documentation\n\n\n\n\n\nLangChain Ecosystem#\nGuides for how other companies/products can be used...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-24
prompts, models, and chains is a big part of developing the best possible application. The ModelLaboratory makes it easy to do so.\nDiscord: Join us on our Discord to discuss all things LangChain!\nProduction Support: As you move your LangChains into production, we’d love to offer more comprehensive support. Please fil...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html
4e02a3a06729-25
Local Sitemap# The sitemap loader can also be used to load local files. sitemap_loader = SitemapLoader(web_path="example_data/sitemap.xml", is_local=True) docs = sitemap_loader.load() Fetching pages: 100%|###################################################################################################################...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html