id stringlengths 14 15 | text stringlengths 17 2.72k | source stringlengths 47 115 |
|---|---|---|
794c869f24fb-7 | this movie has a special place in the heart of Mr. Bogdanovich- he even bought it back from its producers, then distributed it on his own and went bankrupt when it didn\'t prove popular. His rise and fall is among the more sympathetic and tragic of Hollywood stories, so there\'s no joy in criticizing the film... there ... | https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
794c869f24fb-8 | Document(page_content="This is said to be a personal film for Peter Bogdonavitch. He based it on his life but changed things around to fit the characters, who are detectives. These detectives date beautiful models and have no problem getting them. Sounds more like a millionaire playboy filmmaker than a detective, doesn... | https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
794c869f24fb-9 | 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://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
794c869f24fb-10 | Document(page_content="I can't believe that those praising this movie herein aren't thinking of some other film. I was prepared for the possibility that this would be awful, but the script (or lack thereof) makes for a film that's also pointless. On the plus side, the general level of craft on the part of the actors an... | https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
794c869f24fb-11 | Document(page_content="Its not the cast. A finer group of actors, you could not find. Its not the setting. The director is in love with New York City, and by the end of the film, so are we all! Woody Allen could not improve upon what Bogdonovich has done here. If you are going to fall in love, or find love, Manhattan i... | https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
794c869f24fb-12 | 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://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset |
a7401bb3db28-0 | This loader will allow you to download the text of a repair guide, text of Q&A's and wikis from devices on iFixit using their open APIs. It's incredibly useful for context related to technical documents and answers to questions about devices in the corpus of data on iFixit. | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-1 | [Document(page_content='# My iPhone 6 is typing and opening apps by itself\nmy iphone 6 is typing and opening apps by itself. How do i fix this. I just bought it last week.\nI restored as manufactures cleaned up the screen\nthe problem continues\n\n## 27 Answers\n\nFilter by: \n\nMost Helpful\nNewest\nOldest\n\n### Acc... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-2 | this in Apple Community and the moderators deleted it, for the best reasons known to them.\nInstead of throwing away your phone (or selling cheaply), try this and you could be saving your phone.\nLet me know how it goes.\n\n\n\n### Other Answer\nIt was the charging cord! I bought a gas station braided cord and it was t... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-3 | Other Answer\nSomeone ask! I purchased my iPhone 6s Plus for 1000 from at&t. Before I touched it, I purchased a otter defender case. I read where at&t said touch desease was due to dropping! Bullshit!! I am 56 I have never dropped it!! Looks brand new! Never dropped or abused any way! I have my original charger. I am g... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-4 | crossing my fingers that problems indeed solved.\n\n\n\n### Other Answer\nthank you so much for this post! i was struggling doing the reset because i cannot type userids and passwords correctly because the iphone 6 plus i have kept on typing letters incorrectly. I have been doing it for a day until i come across this a... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-5 | on FaceTime twice by itself when I was not in the room…..I thought the phone was toast and i’d have to buy a new one took me a while to figure out but it was the extra cheap block plug I bought at a dollar store for convenience of an extra charging station when I move around the house from den to living room…..cord was... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-6 | dot on the bottom left of my screen an it wont allow me to touch a certain part of my screen unless I rotate my phone and I know the password but the first number is a 2 and it won\'t let me touch 1,2, or 3 so now I have to find a way to get rid of my password and all of a sudden my phone wants to touch stuff on its ow... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-7 | the phone - problem solved. Been working now for two days.', lookup_str='', metadata={'source': 'https://www.ifixit.com/Answers/View/318583/My+iPhone+6+is+typing+and+opening+apps+by+itself', 'title': 'My iPhone 6 is typing and opening apps by itself'}, lookup_index=0)] | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-8 | If you're looking for a more general way to search iFixit based on a keyword or phrase, the /suggest endpoint will return content related to the search term, then the loader will load the content from each of the suggested items and prep and return the documents.
[Document(page_content='Banana\nTasty fruit. Good source... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
a7401bb3db28-9 | Document(page_content="# Banana Teardown\nIn this teardown, we open a banana to see what's inside. Yellow and delicious, but most importantly, yellow.\n\n\n###Tools Required:\n\n - Fingers\n\n - Teeth\n\n - Thumbs\n\n\n###Parts Required:\n\n - None\n\n\n## Step 1\nTake one banana from the bunch.\nDon't squeeze too hard... | https://python.langchain.com/docs/integrations/document_loaders/ifixit |
d59cf451eb1b-0 | Image captions
By default, the loader utilizes the pre-trained Salesforce BLIP image captioning model.
This notebook shows how to use the ImageCaptionLoader to generate a query-able index of image captions
#!pip install transformers
from langchain.document_loaders import ImageCaptionLoader
Prepare a list of image urls ... | https://python.langchain.com/docs/integrations/document_loaders/image_captions |
d59cf451eb1b-1 | "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/2022-01-22_Men%27s_World_Cup_at_2021-22_St._Moritz%E2%80%93Celerina_Luge_World_Cup_and_European_Championships_by_Sandro_Halank%E2%80%93257.jpg/288px-2022-01-22_Men%27s_World_Cup_at_2021-22_St._Moritz%E2%80%93Celerina_Luge_World_Cup_and_European_Championships_by... | https://python.langchain.com/docs/integrations/document_loaders/image_captions |
d59cf451eb1b-2 | Image.open(requests.get(list_image_urls[0], stream=True).raw).convert("RGB")
Create the index
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator().from_loaders([loader])
Query
query = "What's the painting about?"
index.query(query)
query = "What kind of images are there?"
index.que... | https://python.langchain.com/docs/integrations/document_loaders/image_captions |
4cb8b7e20d6c-0 | This covers how to load images such as JPG or PNG into a document format that we can use downstream.
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... | https://python.langchain.com/docs/integrations/document_loaders/image |
4cb8b7e20d6c-1 | 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". | https://python.langchain.com/docs/integrations/document_loaders/image |
27d92030238f-0 | 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[0].page_content[:500]
'\n\r\n\r\n\r\n\r\n BLACKKKLANS... | https://python.langchain.com/docs/integrations/document_loaders/imsdb |
32997273a63a-0 | This notebook covers how to load data from the Iugu REST API into a format that can be ingested into LangChain, along with example usage for vectorization.
The Iugu API requires an access token, which can be found inside of the Iugu dashboard.
This document loader also requires a resource option which defines what data... | https://python.langchain.com/docs/integrations/document_loaders/iugu |
b881a517ad70-0 | 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 and their metadata. This requires an access token that can be obtained from the app by following these steps:
You may either initializ... | https://python.langchain.com/docs/integrations/document_loaders/joplin |
c363aad367d0-0 | This notebook covers how to load data from a Jupyter notebook (.html) into a format suitable by LangChain.
NotebookLoader.load() loads the .html notebook file into a Document object.
[Document(page_content='\'markdown\' cell: \'[\'# Notebook\', \'\', \'This notebook covers how to load data from an .html notebook into a... | https://python.langchain.com/docs/integrations/document_loaders/jupyter_notebook |
a3d492b839b3-0 | Wikipedia
Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read reference work in history.
This notebook shows how to load w... | https://python.langchain.com/docs/integrations/document_loaders/wikipedia |
04e7c1b8ee94-0 | The 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.
Document(page_content='United States\n\nWashington, DC\n\nJoe Biden\n\nBaseball\n\nCanada\n\nOttawa\n\nJustin Trudeau\n\nHockey\n\nFrance\n\nParis\n\nEmmanuel Macron\n\nS... | https://python.langchain.com/docs/integrations/document_loaders/xml |
2dde515b2ac9-0 | 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 for loading webpages look at some child class examples such as IMSDbLoader, AZLyricsLoader, and CollegeConfidentialLoader
from langchain.document_loaders import... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-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 Skip to navigat... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-2 | Manage Favorites\n \n\n\n\nCustomize ESPNSign UpLog InESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n\n\n\n\nESPN Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-3 | 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: Caitlin Clark is the biggest b... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-4 | Peay's coach, pitcher and catcher all ejected after retaliation pitchAustin Peay's pitcher, catcher and coach were all ejected after a pitch was thrown at Liberty's Nathan Keeter, who earlier in the game hit a home run and celebrated while running down the third-base line. Men's Tournament ChallengeIllustration by ESPN... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-5 | offense and stellar defense.(AP Photo/Koji 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:... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-6 | Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\n\n\n\n\n\n\n\nInstagram\n\n\n\n\n\n\n\nSnapchat\n\n\n\n\n\n\n\nYouTube\n\n\n\n\n\n\n\nThe ESPN Daily Podcast\n\n\nTerms of UsePrivacy PolicyYour US State Privacy RightsChildren's Online Privacy PolicyInterest-Based AdsAbout Nielsen MeasurementDo Not Sel... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-7 | """
# Use this piece of code for testing new custom BeautifulSoup parsers | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-8 | 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 = soup.select_one("td[class='scrtext']").text
# BS4 documentation can b... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-9 | """;
Loading multiple webpages
You can also load multiple webpages at once by passing in a list of urls to the loader. This will return a list of documents in the same order as the urls passed in.
loader = WebBaseLoader(["https://www.espn.com/", "https://google.com"])
docs = loader.load()
docs | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-10 | [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 Skip to navigat... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-11 | Manage Favorites\n \n\n\n\nCustomize ESPNSign UpLog InESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n\n\n\n\nESPN Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-12 | 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: Caitlin Clark is the biggest b... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-13 | Peay's coach, pitcher and catcher all ejected after retaliation pitchAustin Peay's pitcher, catcher and coach were all ejected after a pitch was thrown at Liberty's Nathan Keeter, who earlier in the game hit a home run and celebrated while running down the third-base line. Men's Tournament ChallengeIllustration by ESPN... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-14 | offense and stellar defense.(AP Photo/Koji 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:... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-15 | Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\n\n\n\n\n\n\n\nInstagram\n\n\n\n\n\n\n\nSnapchat\n\n\n\n\n\n\n\nYouTube\n\n\n\n\n\n\n\nThe ESPN Daily Podcast\n\n\nTerms of UsePrivacy PolicyYour US State Privacy RightsChildren's Online Privacy PolicyInterest-Based AdsAbout Nielsen MeasurementDo Not Sel... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-16 | Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More »Web History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Google© 2023 - Privacy - Terms ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)]
Load multiple urls concurrently
You can ... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-17 | # fixes a bug with asyncio and jupyter
import nest_asyncio | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-18 | nest_asyncio.apply()
Requirement already satisfied: nest_asyncio in /Users/harrisonchase/.pyenv/versions/3.9.1/envs/langchain/lib/python3.9/site-packages (1.5.6)
loader = WebBaseLoader(["https://www.espn.com/", "https://google.com"])
loader.requests_per_second = 1
docs = loader.aload()
docs | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-19 | [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 Skip to navigat... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-20 | Manage Favorites\n \n\n\n\nCustomize ESPNSign UpLog InESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n\n\n\n\nESPN Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-21 | 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: Caitlin Clark is the biggest b... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-22 | Peay's coach, pitcher and catcher all ejected after retaliation pitchAustin Peay's pitcher, catcher and coach were all ejected after a pitch was thrown at Liberty's Nathan Keeter, who earlier in the game hit a home run and celebrated while running down the third-base line. Men's Tournament ChallengeIllustration by ESPN... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-23 | offense and stellar defense.(AP Photo/Koji 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:... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-24 | Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\n\n\n\n\n\n\n\nInstagram\n\n\n\n\n\n\n\nSnapchat\n\n\n\n\n\n\n\nYouTube\n\n\n\n\n\n\n\nThe ESPN Daily Podcast\n\n\nTerms of UsePrivacy PolicyYour US State Privacy RightsChildren's Online Privacy PolicyInterest-Based AdsAbout Nielsen MeasurementDo Not Sel... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-25 | 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 different ... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-26 | [Document(page_content='\n\n10\nEnergy\n3\n2018-01-01\n2018-01-01\nfalse\nUniform test method for the measurement of energy efficiency of commercial packaged boilers.\n§ 431.86\nSection § 431.86\n\nEnergy\nDEPARTMENT OF ENERGY\nENERGY CONSERVATION\nENERGY EFFICIENCY PROGRAM FOR CERTAIN COMMERCIAL AND INDUSTRIAL EQUIP... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-27 | and ≤5,000,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\n\u2003\n\n>5,000,000\nThermal Efficiency\nAppendix A, Section 2.OR\nAppendix A, Section 3 with Section 2.4.3.2.\n\n\n\nSteam\nOil-fired\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nSteam\nOil-fired\n>2,500,000 and ≤5,000,000\nT... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
2dde515b2ac9-28 | Using proxies
Sometimes you might need to use proxies to get around IP blocks. You can pass in a dictionary of proxies to the loader (and requests underneath) to use them.
loader = WebBaseLoader(
"https://www.walmart.com/search?q=parrots",
proxies={
"http": "http://{username}:{password}:@proxy.service.com:6666/",
"htt... | https://python.langchain.com/docs/integrations/document_loaders/web_base |
dd8d95402d22-0 | 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 content.
This notebook covers how to load data... | https://python.langchain.com/docs/integrations/document_loaders/whatsapp_chat |
5ebe7b3cab26-0 | 0%| | 0.00/100 [00:00<?, ?it/s] | https://python.langchain.com/docs/integrations/document_loaders/xorbits |
5ebe7b3cab26-1 | [Document(page_content='Nationals', metadata={' "Payroll (millions)"': 81.34, ' "Wins"': 98}),
Document(page_content='Reds', metadata={' "Payroll (millions)"': 82.2, ' "Wins"': 97}),
Document(page_content='Yankees', metadata={' "Payroll (millions)"': 197.96, ' "Wins"': 95}),
Document(page_content='Giants', metadata={' ... | https://python.langchain.com/docs/integrations/document_loaders/xorbits |
5ebe7b3cab26-2 | Document(page_content='Phillies', metadata={' "Payroll (millions)"': 174.54, ' "Wins"': 81}),
Document(page_content='Diamondbacks', metadata={' "Payroll (millions)"': 74.28, ' "Wins"': 81}),
Document(page_content='Pirates', metadata={' "Payroll (millions)"': 63.43, ' "Wins"': 79}),
Document(page_content='Padres', metad... | https://python.langchain.com/docs/integrations/document_loaders/xorbits |
5ebe7b3cab26-3 | page_content='Nationals' metadata={' "Payroll (millions)"': 81.34, ' "Wins"': 98}
page_content='Reds' metadata={' "Payroll (millions)"': 82.2, ' "Wins"': 97}
page_content='Yankees' metadata={' "Payroll (millions)"': 197.96, ' "Wins"': 95}
page_content='Giants' metadata={' "Payroll (millions)"': 117.62, ' "Wins"': 94}
p... | https://python.langchain.com/docs/integrations/document_loaders/xorbits |
5ebe7b3cab26-4 | page_content='Diamondbacks' metadata={' "Payroll (millions)"': 74.28, ' "Wins"': 81}
page_content='Pirates' metadata={' "Payroll (millions)"': 63.43, ' "Wins"': 79}
page_content='Padres' metadata={' "Payroll (millions)"': 55.24, ' "Wins"': 76}
page_content='Mariners' metadata={' "Payroll (millions)"': 81.97, ' "Wins"':... | https://python.langchain.com/docs/integrations/document_loaders/xorbits |
2de642293749-0 | Cassandra Chat Message History
Apache Cassandra® is a NoSQL, row-oriented, highly scalable and highly available database, well suited for storing large amounts of data.
Cassandra is a good choice for storing chat message history because it is easy to scale and can handle a large number of writes.
This notebook goes ove... | https://python.langchain.com/docs/integrations/memory/cassandra_chat_message_history |
551477b2a5b0-0 | Building 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 text to chat!
We wil use the OpenAIWhisperParser, which will use the OpenAI Whisper API to transcribe audio to text, and the OpenAIWhisperParserLocal for local support and running on priv... | https://python.langchain.com/docs/integrations/document_loaders/youtube_audio |
551477b2a5b0-1 | # Transcribe the videos to text
if local:
loader = GenericLoader(YoutubeAudioLoader(urls, save_dir), OpenAIWhisperParserLocal())
else:
loader = GenericLoader(YoutubeAudioLoader(urls, save_dir), OpenAIWhisperParser())
docs = loader.load()
[youtube] Extracting URL: https://youtu.be/kCc8FmEb1nY
[youtube] kCc8FmEb1nY: Down... | https://python.langchain.com/docs/integrations/document_loaders/youtube_audio |
551477b2a5b0-2 | [download] 100% of 134.98MiB
[ExtractAudio] Not converting audio /Users/31treehaus/Desktop/AI/langchain-fork/docs/modules/indexes/document_loaders/examples/The spelled-out intro to neural networks and backpropagation: building micrograd.m4a; file is already in target format m4a
# Returns a list of Documents, which can ... | https://python.langchain.com/docs/integrations/document_loaders/youtube_audio |
551477b2a5b0-3 | qa_chain.run(query)
"We need to zero out the gradient before backprop at each step because the backward pass accumulates gradients in the grad attribute of each parameter. If we don't reset the grad to zero before each backward pass, the gradients will accumulate and add up, leading to incorrect updates and slower conv... | https://python.langchain.com/docs/integrations/document_loaders/youtube_audio |
a95e8662ba47-0 | Dynamodb Chat Message History
This notebook goes over how to use Dynamodb to store chat message history.
First make sure you have correctly configured the AWS CLI. Then make sure you have installed boto3.
Next, create the DynamoDB Table where we will be storing messages:
import boto3
# Get the service resource.
dynamo... | https://python.langchain.com/docs/integrations/memory/dynamodb_chat_message_history |
a95e8662ba47-1 | history = DynamoDBChatMessageHistory(
table_name="SessionTable",
session_id="0",
endpoint_url="http://localhost.localstack.cloud:4566",
)
DynamoDBChatMessageHistory With Different Keys Composite Keys
The default key for DynamoDBChatMessageHistory is {"SessionId": self.session_id}, but you can modify this to match your... | https://python.langchain.com/docs/integrations/memory/dynamodb_chat_message_history |
a95e8662ba47-2 | message_history = DynamoDBChatMessageHistory(table_name="SessionTable", session_id="1")
memory = ConversationBufferMemory(
memory_key="chat_history", chat_memory=message_history, return_messages=True
)
python_repl = PythonREPL()
# You can create the tool to pass to an agent
tools = [
Tool(
name="python_repl",
descript... | https://python.langchain.com/docs/integrations/memory/dynamodb_chat_message_history |
02d9d9a7cb7d-0 | In this walkthrough we'll create a simple conversation chain which uses ConversationEntityMemory backed by a SqliteEntityStore.
Notice the usage of EntitySqliteStore as parameter to entity_store on the memory property.
> Entering new ConversationChain chain...
Prompt after formatting:
You are an assistant to a human,... | https://python.langchain.com/docs/integrations/memory/entity_memory_with_sqlite |
6b060714cfad-0 | This notebook goes over how to use Momento Cache to store chat message history using the MomentoChatMessageHistory class. See the Momento docs for more detail on how to get set up with Momento.
Note that, by default we will create a cache if one with the given name doesn't already exist.
You'll need to get a Momento au... | https://python.langchain.com/docs/integrations/memory/momento_chat_message_history |
c7b23ee2f6e0-0 | This notebook goes over how to use Mongodb to store chat message history.
MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.
MongoDB is developed by MongoDB Inc. and licensed under the Server Si... | https://python.langchain.com/docs/integrations/memory/mongodb_chat_message_history |
cde9f0f13f86-0 | Motörhead Memory
Motörhead is a memory server implemented in Rust. It automatically handles incremental summarization in the background and allows for stateless applications.
Setup
See instructions at Motörhead for running the server locally.
from langchain.memory.motorhead_memory import MotorheadMemory
from langchain... | https://python.langchain.com/docs/integrations/memory/motorhead_memory |
4f1bd625a66f-0 | Motörhead Memory (Managed)
Motörhead is a memory server implemented in Rust. It automatically handles incremental summarization in the background and allows for stateless applications.
Setup
See instructions at Motörhead for running the managed version of Motorhead. You can retrieve your api_key and client_id by creat... | https://python.langchain.com/docs/integrations/memory/motorhead_memory_managed |
2ca526dcaa30-0 | This notebook goes over how to use Postgres to store chat message history.
from langchain.memory import PostgresChatMessageHistory
history = PostgresChatMessageHistory(
connection_string="postgresql://postgres:mypassword@localhost/chat_history",
session_id="foo",
)
history.add_user_message("hi!")
history.add_ai_mess... | https://python.langchain.com/docs/integrations/memory/postgres_chat_message_history |
420883332f5b-0 | from langchain.memory.chat_message_histories import RocksetChatMessageHistory
from rockset import RocksetClient, Regions
history = RocksetChatMessageHistory(
session_id="MySession",
client=RocksetClient(
api_key="YOUR API KEY",
host=Regions.usw2a1 # us-west-2 Oregon
),
collection="langchain_demo",
sync=True
)
history... | https://python.langchain.com/docs/integrations/memory/rockset_chat_message_history |
c0ccba55f7a2-0 | This notebook goes over how to use Redis to store chat message history.
[AIMessage(content='whats up?', additional_kwargs={}),
HumanMessage(content='hi!', additional_kwargs={})] | https://python.langchain.com/docs/integrations/memory/redis_chat_message_history |
efe69f355d2a-0 | This notebook goes over a SQLChatMessageHistory class that allows to store chat history in any database supported by SQLAlchemy.
Please note that to use it with databases other than SQLite, you will need to install the corresponding database driver.
from langchain.memory.chat_message_histories import SQLChatMessageHist... | https://python.langchain.com/docs/integrations/memory/sql_chat_message_history |
efe69f355d2a-1 | chat_message_history.add_user_message('Hello')
chat_message_history.add_ai_message('Hi')
You also might want to change the name of session_id column. In this case you'll need to specify session_id_field_name parameter. | https://python.langchain.com/docs/integrations/memory/sql_chat_message_history |
e422fec8c1b6-0 | Streamlit Chat Message History
This notebook goes over how to store and use chat message history in a Streamlit app. StreamlitChatMessageHistory will store messages in Streamlit session state at the specified key=. The default key is "langchain_messages".
Note, StreamlitChatMessageHistory only works when run in a Strea... | https://python.langchain.com/docs/integrations/memory/streamlit_chat_message_history |
e422fec8c1b6-1 | if prompt := st.chat_input():
st.chat_message("human").write(prompt)
# As usual, new messages are added to StreamlitChatMessageHistory when the Chain is called.
response = llm_chain.run(prompt)
st.chat_message("ai").write(response)
View the final app. | https://python.langchain.com/docs/integrations/memory/streamlit_chat_message_history |
1e37ecfc94d3-0 | Xata chat memory
Xata is a serverless data platform, based on PostgreSQL and Elasticsearch. It provides a Python SDK for interacting with your database, and a UI for managing your data. With the XataChatMessageHistory class, you can use Xata databases for longer-term persistence of chat sessions.
This notebook covers:
... | https://python.langchain.com/docs/integrations/memory/xata_chat_message_history |
1e37ecfc94d3-1 | history.add_user_message("hi!")
history.add_ai_message("whats up?")
The above code creates a session with the ID session-1 and stores two messages in it. After running the above, if you visit the Xata UI, you should see a table named memory and the two messages added to it.
You can retrieve the message history for a p... | https://python.langchain.com/docs/integrations/memory/xata_chat_message_history |
1e37ecfc94d3-2 | chat_memory = XataChatMessageHistory(
session_id=str(uuid4()), # needs to be unique per user session
api_key=api_key,
db_url=db_url,
table_name="memory"
)
memory = ConversationBufferMemory(memory_key="chat_history", chat_memory=chat_memory, return_messages=True)
Now it's time to create an Agent to use both the vector s... | https://python.langchain.com/docs/integrations/memory/xata_chat_message_history |
39bf59e861b9-0 | Xorbits Inference (Xinference)
Xinference is a powerful and versatile library designed to serve LLMs, speech recognition models, and multimodal models, even on your laptop. It supports a variety of models compatible with GGML, such as chatglm, baichuan, whisper, vicuna, orca, and many others. This notebook demonstrates... | https://python.langchain.com/docs/integrations/llms/xinference |
39bf59e861b9-1 | prompt = PromptTemplate(template=template, input_variables=["country"])
llm_chain = LLMChain(prompt=prompt, llm=llm)
generated = llm_chain.run(country="France")
print(generated)
A: You can visit many places in Paris, such as the Eiffel Tower, the Louvre Museum, Notre-Dame Cathedral, the Champs-Elysées, Montmartre, S... | https://python.langchain.com/docs/integrations/llms/xinference |
65f999478796-0 | Zep stores, summarizes, embeds, indexes, and enriches conversational AI chat histories, and exposes them via simple, low-latency APIs.
search = WikipediaAPIWrapper()
tools = [
Tool(
name="Search",
func=search.run,
description="useful for when you need to search online for answers. You should ask targeted questions",
),... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-1 | # Initialize the agent
llm = OpenAI(temperature=0, openai_api_key=openai_key)
agent_chain = initialize_agent(
tools,
llm,
agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION,
verbose=True,
memory=memory,
)
# Preload some messages into the memory. The default message window is 12 messages. We want to push beyond this to de... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-2 | for msg in test_history:
memory.chat_memory.add_message(
HumanMessage(content=msg["content"])
if msg["role"] == "human"
else AIMessage(content=msg["content"]),
metadata=msg.get("metadata", {}),
)
Doing so will automatically add the input and response to the Zep memory.
Note the summary, and that the history has been en... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-3 | system :
{'content': 'The human inquires about Octavia Butler. The AI identifies her as an American science fiction author. The human then asks which books of hers were made into movies. The AI responds by mentioning the FX series Kindred, based on her novel of the same name. The human then asks about her contemporarie... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-4 | human :
{'content': 'Which other women sci-fi writers might I want to read?', 'additional_kwargs': {'uuid': 'ccdcc901-ea39-4981-862f-6fe22ab9289b', 'created_at': '2023-07-09T19:23:16.62678Z', 'token_count': 14, 'metadata': {'system': {'entities': [], 'intent': 'The subject is seeking recommendations for additional wome... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-5 | human :
{'content': "Write a short synopsis of Butler's book, Parable of the Sower. What is it about?", 'additional_kwargs': {'uuid': 'e439b7e6-286a-4278-a8cb-dc260fa2e089', 'created_at': '2023-07-09T19:23:16.63623Z', 'token_count': 23, 'metadata': {'system': {'entities': [{'Label': 'ORG', 'Matches': [{'End': 32, 'Star... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-6 | ai :
{'content': 'Parable of the Sower is a science fiction novel by Octavia Butler, published in 1993. It follows the story of Lauren Olamina, a young woman living in a dystopian future where society has collapsed due to environmental disasters, poverty, and violence.', 'additional_kwargs': {'uuid': '6760489b-19c9-41a... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-7 | ai :
{'content': 'Parable of the Sower is a prescient novel that speaks to the challenges facing contemporary society, such as climate change, inequality, and violence. It is a cautionary tale that warns of the dangers of unchecked greed and the need for individuals to take responsibility for their own lives and the li... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-8 | {'uuid': '7977099a-0c62-4c98-bfff-465bbab6c9c3', 'created_at': '2023-07-09T19:23:16.631721Z', 'role': 'ai', 'content': 'You might want to read Ursula K. Le Guin or Joanna Russ.', 'metadata': {'system': {'entities': [{'Label': 'ORG', 'Matches': [{'End': 40, 'Start': 23, 'Text': 'Ursula K. Le Guin'}], 'Name': 'Ursula K. ... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-9 | {'uuid': 'b05e2eb5-c103-4973-9458-928726f08655', 'created_at': '2023-07-09T19:23:16.603098Z', 'role': 'ai', 'content': "Octavia Butler's contemporaries included Ursula K. Le Guin, Samuel R. Delany, and Joanna Russ.", 'metadata': {'system': {'entities': [{'Label': 'PERSON', 'Matches': [{'End': 16, 'Start': 0, 'Text': "O... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-10 | {'uuid': '42ff41d2-c63a-4d5b-b19b-d9a87105cfc3', 'created_at': '2023-07-09T19:23:16.578022Z', 'role': 'ai', 'content': 'Octavia Estelle Butler (June 22, 1947 – February 24, 2006) was an American science fiction author.', 'metadata': {'system': {'entities': [{'Label': 'PERSON', 'Matches': [{'End': 22, 'Start': 0, 'Text'... | https://python.langchain.com/docs/integrations/memory/zep_memory |
65f999478796-11 | {'uuid': '2f6d80c6-3c08-4fd4-8d4e-7bbee341ac90', 'created_at': '2023-07-09T19:23:16.618947Z', 'role': 'ai', 'content': 'Octavia Butler won the Hugo Award, the Nebula Award, and the MacArthur Fellowship.', 'metadata': {'system': {'entities': [{'Label': 'PERSON', 'Matches': [{'End': 14, 'Start': 0, 'Text': 'Octavia Butle... | https://python.langchain.com/docs/integrations/memory/zep_memory |
980fdf1a8fbc-0 | Runhouse
The Runhouse allows remote compute and data across environments and users. See the Runhouse docs.
This example goes over how to use LangChain and Runhouse to interact with models hosted on your own GPU, or on-demand GPUs on AWS, GCP, AWS, or Lambda.
Note: Code uses SelfHosted name instead of the Runhouse.
from... | https://python.langchain.com/docs/integrations/llms/runhouse |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.