id
stringlengths
14
16
text
stringlengths
44
2.73k
source
stringlengths
49
114
e0dcc9dea2b3-6
so be very wary of anyone asking you for money.\nLearn more about Tuition and Financial Aid at Brown.\nBased on this information, does Brown seem like a good fit? Remember, a school that is perfect for one person may be a terrible fit for someone else! So ask yourself: Is Brown a good school for you?\nIf Brown Universi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-7
best way to reach campus is to take Interstate 95 to Providence, or book a flight to the nearest airport, T.F. Green.\nYou can also take a virtual campus tour to get a sense of what Brown and Providence are like without leaving home.\nConsidering Going to School in Rhode Island?\nSee a full list of colleges in Rhode Is...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-8
\n\n Virtual Tour\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nBrown Application Deadline\n\n\n\nFirst-Year Applications are Due\n\nJan 5\n\nTransfer Applications are Due\n\nMar 1\n\n\n\n \n The deadline for Fall first-year applications to Brown is \n ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-9
for more information about deadlines for specific programs or special admissions programs\n \n \n\n\n\n\n\n\nBrown ACT Scores\n\n\n\n\nic_reflect\n\n\n\n\n\n\n\n\nACT Range\n\n\n \n 33 - 35\n \n \n\n\n\nEstimated Chance of Acceptanc...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-10
720 - 770\n \n \n\n\n\nic_reflect\n\n\n\n\n\n\n\n\nMath SAT Range\n\n\n \n Not available\n \n \n\n\n\nic_reflect\n\n\n\n\n\n\n\n\nReading SAT Range\n\n\n \n 740 - 800\n...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-11
$82,286\n \nOut-of-State\n\n\n\n\n\n\n\nCost Breakdown\n\n\nIn State\n\n\nOut-of-State\n\n\n\n\nState Tuition\n\n\n\n $62,680\n \n\n\n\n $62,680\n \n\n\n\n\nFees\n\n\n\n $2,4...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-12
\n\n\n\n $15,840\n \n\n\n\n\nBooks\n\n\n\n $1,300\n \n\n\n\n $1,300\n \n\n\n\n\n\n Total (Before Financial Aid):\n \n\n\...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-13
\n\n\n\n\n\n\n\n\n\n\n\nStudent Life\n\n Wondering what life at Brown is like? There are approximately \n 10,696 students enrolled at \n Brown, \n including 7,349 undergraduate students and \n 3,347 graduate students.\n 96% percent of students attend school \n full-time...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-14
4%\n \nPart Time\n\n\n\n\n\n\n\n 94%\n \n\n\n\n\nResidency\n\n\n\n 6%\n \nIn State\n\n\n\n\n 94%\n \nOut-of-State\n\n\n\n\n\n\n\n Data Source: IPEDs and Peterso...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
e0dcc9dea2b3-15
previous ChatGPT Data Loader next Confluence By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Apr 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/college_confidential.html
f76ff97a1cbb-0
.ipynb .pdf WhatsApp Chat WhatsApp Chat# This notebook covers how to load data from the WhatsApp Chats into a format that can be ingested into LangChain. from langchain.document_loaders import WhatsAppChatLoader loader = WhatsAppChatLoader("example_data/whatsapp_chat.txt") loader.load() previous Web Base next Word Docu...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/whatsapp_chat.html
992394913452-0
.ipynb .pdf BigQuery Loader Contents Basic Usage Specifying Which Columns are Content vs Metadata Adding Source to Metadata BigQuery Loader# Load a BigQuery query with one document per row. from langchain.document_loaders import BigQueryLoader BASE_QUERY = ''' SELECT id, dna_sequence, organism FROM ( SELECT ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/bigquery.html
992394913452-1
Specifying Which Columns are Content vs Metadata# loader = BigQueryLoader(BASE_QUERY, page_content_columns=["dna_sequence", "organism"], metadata_columns=["id"]) data = loader.load() print(data) [Document(page_content='dna_sequence: ATTCGA\norganism: Lokiarchaeum sp. (strain GC14_75).', lookup_str='', metadata={'id': 1...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/bigquery.html
992394913452-2
data = loader.load() print(data) [Document(page_content='id: 1\ndna_sequence: ATTCGA\norganism: Lokiarchaeum sp. (strain GC14_75).\nsource: 1', lookup_str='', metadata={'source': 1}, lookup_index=0), Document(page_content='id: 2\ndna_sequence: AGGCGA\norganism: Heimdallarchaeota archaeon (strain LC_2).\nsource: 2', loo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/bigquery.html
371d4a352507-0
.ipynb .pdf Notebook Notebook# This notebook covers how to load data from an .ipynb notebook into a format suitable by LangChain. from langchain.document_loaders import NotebookLoader loader = NotebookLoader("example_data/notebook.ipynb", include_outputs=True, max_output_length=20, remove_newline=True) NotebookLoader.l...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notebook.html
371d4a352507-1
traceback (bool): whether to include full traceback (default is False). loader.load() [Document(page_content='\'markdown\' cell: \'[\'# Notebook\', \'\', \'This notebook covers how to load data from an .ipynb notebook into a format suitable by LangChain.\']\'\n\n \'code\' cell: \'[\'from langchain.document_loaders impo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notebook.html
b20042dc75c3-0
.ipynb .pdf Apify Dataset Contents Prerequisites An example with question answering Apify Dataset# This notebook shows how to load Apify datasets to LangChain. Apify Dataset is a scaleable append-only storage with sequential access built for storing structured web scraping results, such as a list of products or Googl...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/apify_dataset.html
b20042dc75c3-1
from langchain.docstore.document import Document from langchain.document_loaders import ApifyDatasetLoader from langchain.indexes import VectorstoreIndexCreator loader = ApifyDatasetLoader( dataset_id="your-dataset-id", dataset_mapping_function=lambda item: Document( page_content=item["text"] or "", met...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/apify_dataset.html
851cd8f338c6-0
.ipynb .pdf Airbyte JSON Airbyte JSON# This covers how to load any source from Airbyte into a local JSON file that can be read in as a document Prereqs: Have docker desktop installed Steps: Clone Airbyte from GitHub - git clone https://github.com/airbytehq/airbyte.git Switch into Airbyte directory - cd airbyte Start Ai...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/airbyte_json.html
851cd8f338c6-1
game_indices: game_index: 180 version: name: red url: https://pokeapi.co/api/v2/version/1/ game_index: 180 version: name: blue url: https://pokeapi.co/api/v2/version/2/ game_index: 180 version: n previous CoNLL-U next Apify Dataset By Harrison Chase © Copyright 2023, Harrison Chase. Last updated...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/airbyte_json.html
159b901a6279-0
.ipynb .pdf Email Contents Using Unstructured Retain Elements Using OutlookMessageLoader Email# This notebook shows how to load email (.eml) and Microsoft Outlook (.msg) files. Using Unstructured# from langchain.document_loaders import UnstructuredEmailLoader loader = UnstructuredEmailLoader('example_data/fake-email....
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html
159b901a6279-1
previous DuckDB Loader next EPubs Contents Using Unstructured Retain Elements Using OutlookMessageLoader By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Apr 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/email.html
ed46c47e358b-0
.ipynb .pdf Subtitle Files Subtitle Files# How to load data from subtitle (.srt) files from langchain.document_loaders import SRTLoader loader = SRTLoader("example_data/Star_Wars_The_Clone_Wars_S06E07_Crisis_at_the_Heart.srt") docs = loader.load() docs[0].page_content[:100] '<i>Corruption discovered\nat the core of the...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/srt.html
4d886cab5f65-0
.ipynb .pdf EPubs Contents Retain Elements EPubs# This covers how to load .epub documents into a document format that we can use downstream. You’ll need to install the pandocs package for this loader to work. from langchain.document_loaders import UnstructuredEPubLoader loader = UnstructuredEPubLoader("winter-sports....
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/epub.html
1a514c015ec8-0
.ipynb .pdf HuggingFace dataset loader Contents Example HuggingFace dataset loader# This notebook shows how to load Hugging Face Hub datasets to LangChain. The Hugging Face Hub hosts a large number of community-curated datasets for a diverse range of tasks such as translation, automatic speech recognition, and image ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-1
data = loader.load() data[:15] [Document(page_content='I rented I AM CURIOUS-YELLOW from my video store because of all the controversy that surrounded it when it was first released in 1967. I also heard that at first it was seized by U.S. customs if it ever tried to enter this country, therefore being a fan of films co...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-2
Document(page_content='"I Am Curious: Yellow" is a risible and pretentious steaming pile. It doesn\'t matter what one\'s political views are because this film can hardly be taken seriously on any level. As for the claim that frontal male nudity is an automatic NC-17, that isn\'t true. I\'ve seen R-rated films with male...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-3
Document(page_content="If only to avoid making this type of film in the future. This film is interesting as an experiment but tells no cogent story.<br /><br />One might feel virtuous for sitting thru it because it touches on so many IMPORTANT issues but it does so without any discernable motive. The viewer comes away ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-4
Document(page_content='Oh, brother...after hearing about this ridiculous film for umpteen years all I can think of is that old Peggy Lee song..<br /><br />"Is that all there is??" ...I was just an early teen when this smoked fish hit the U.S. I was too young to get in the theater (although I did manage to sneak into "G...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-5
pretension...and feeble who-cares simulated sex scenes with saggy, pale actors.<br /><br />Cultural icon, holy grail, historic artifact..whatever this thing was, shred it, burn it, then stuff the ashes in a lead box!<br /><br />Elite esthetes still scrape to find value in its boring pseudo revolutionary political spewi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-6
it - rent the video and fast forward to the "dirty" parts, just to get it over with.<br /><br />', metadata={'label': 0}),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-7
Document(page_content="I would put this at the top of my list of films in the category of unwatchable trash! There are films that are bad, but the worst kind are the ones that are unwatchable but you are suppose to like them because they are supposed to be good for you! The sex sequences, so shocking in its day, couldn...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-8
Document(page_content='When I first saw a glimpse of this movie, I quickly noticed the actress who was playing the role of Lucille Ball. Rachel York\'s portrayal of Lucy is absolutely awful. Lucille Ball was an astounding comedian with incredible talent. To think about a legend like Lucille Ball being portrayed the way...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-9
Document(page_content='Who are these "They"- the actors? the filmmakers? Certainly couldn\'t be the audience- this is among the most air-puffed productions in existence. It\'s the kind of movie that looks like it was a lot of fun to shoot\x97 TOO much fun, nobody is getting any actual work done, and that almost always ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-10
respective children (nepotism alert: Bogdanovich\'s daughters) spew cute and pick up some fairly disturbing pointers on \'love\' while observing their parents. (Ms. Hepburn, drawing on her dignity, manages to rise above the proceedings- but she has the monumental challenge of playing herself, ostensibly.) Everybody loo...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-11
but at least they were long on charm. "They All Laughed" tries to coast on its good intentions, but nobody- least of all Peter Bogdanovich - has the good sense to put on the brakes.<br /><br />Due in no small part to the tragic death of Dorothy Stratten, this movie has a special place in the heart of Mr. Bogdanovich- h...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-12
in all, though, the movie is harmless, only a waste of rental. I want to watch people having a good time, I\'ll go to the park on a sunny day. For filmic expressions of joy and love, I\'ll stick to Ernest Lubitsch and Jaques Demy...', metadata={'label': 0}),
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-13
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/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-14
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/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-15
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/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-16
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/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-17
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/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-18
eyes who fall in love for the women they are chasing), but I have not laughed along the whole story. The coincidences, in a huge city like New York, are ridiculous. Ben Gazarra as an attractive and very seductive man, with the women falling for him as if her were a Brad Pitt, Antonio Banderas or George Clooney, is quit...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-19
most popular Brazilian singer since the end of the 60\'s and is called by his fans as "The King". I will keep this movie in my collection only because of these attractions (manly Dorothy Stratten). My vote is four.<br /><br />Title (Brazil): "Muito Riso e Muita Alegria" ("Many Laughs and Lots of Happiness")', metadata=...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
1a514c015ec8-20
Example# In this example, we use data from a dataset to answer a question from langchain.indexes import VectorstoreIndexCreator from langchain.document_loaders.hugging_face_dataset import HuggingFaceDatasetLoader dataset_name="tweet_eval" page_content_column="text" name="stance_climate" loader=HuggingFaceDatasetLoader(...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/hugging_face_dataset.html
7d104355d6f8-0
.ipynb .pdf Bilibili Bilibili# This loader utilizes the bilibili-api to fetch the text transcript from Bilibili, one of the most beloved long-form video sites in China. With this BiliBiliLoader, users can easily obtain the transcript of their desired video content on the platform. from langchain.document_loaders.bilibi...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/bilibili.html
b537cdd57151-0
.ipynb .pdf ReadTheDocs Documentation ReadTheDocs Documentation# This notebook covers how to load content from html that was generated as part of a Read-The-Docs build. For an example of this in the wild, see here. This assumes that the html has already been scraped into a folder. This can be done by uncommenting and r...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/readthedocs_documentation.html
b53bce2419a5-0
.ipynb .pdf Blackboard Blackboard# This covers how to load data from a Blackboard Learn instance. from langchain.document_loaders import BlackboardLoader loader = BlackboardLoader( blackboard_course_url="https://blackboard.example.com/webapps/blackboard/execute/announcement?method=search&context=course_entry&course...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blackboard.html
3058f4e89569-0
.ipynb .pdf Git Contents Load existing repository from disk Clone repository from url Filtering files to load Git# This notebook shows how to load text files from Git repository. Load existing repository from disk# from git import Repo repo = Repo.clone_from( "https://github.com/hwchase17/langchain", to_path="./e...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/git.html
6846c9e65fae-0
.ipynb .pdf Blockchain Document Loader Contents Overview Setup Create a Blockchain Document Loader Option 1: Ethereum Mainnet (default BlockchainType) Option 2: Polygon Mainnet (Optional) Using the Blockchain Document Loader Setup Splitter and Index Setup Models and Chains Retrieval Chain Blockchain Document Loader# ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-1
[Document(page_content="{'contract': {'address': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}, 'id': {'tokenId': '0x0000000000000000000000000000000000000000000000000000000000000000', 'tokenMetadata': {'tokenType': 'ERC721'}}, 'title': '', 'description': '', 'tokenUri': {'gateway': 'https://alchemy.mypinata.cloud/ipfs/...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-2
'attributes': [{'value': 'Silver Hoop', 'trait_type': 'Earring'}, {'value': 'Orange', 'trait_type': 'Background'}, {'value': 'Robot', 'trait_type': 'Fur'}, {'value': 'Striped Tee', 'trait_type': 'Clothes'}, {'value': 'Discomfort', 'trait_type': 'Mouth'}, {'value': 'X Eyes', 'trait_type': 'Eyes'}]}, 'timeLastUpdated': '...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-3
'description': 'The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs— unique digital collectibles living on the Ethereum blockchain. Your Bored Ape doubles as your Yacht Club membership card, and grants access to members-only benefits, the first of which is access to THE BATHROOM, a collaborative gr...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-4
Document(page_content="{'contract': {'address': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}, 'id': {'tokenId': '0x0000000000000000000000000000000000000000000000000000000000000001', 'tokenMetadata': {'tokenType': 'ERC721'}}, 'title': '', 'description': '', 'tokenUri': {'gateway': 'https://alchemy.mypinata.cloud/ipfs/Q...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-5
'png', 'bytes': 171425}], 'metadata': {'image': 'ipfs://QmPbxeGcXhYQQNgsC6a36dDyYUcHgMLnGKnF8pVFmGsvqi', 'attributes': [{'value': 'Grin', 'trait_type': 'Mouth'}, {'value': 'Vietnam Jacket', 'trait_type': 'Clothes'}, {'value': 'Orange', 'trait_type': 'Background'}, {'value': 'Blue Beams', 'trait_type': 'Eyes'}, {'value'...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-6
Club', 'safelistRequestStatus': 'verified', 'imageUrl': 'https://i.seadn.io/gae/Ju9CkWtV-1Okvf45wo8UctR-M9He2PjILP0oOvxE89AyiPPGtrR3gysu1Zgy0hjd2xKIgjJJtWIc0ybj4Vd7wv8t3pxDGHoJBzDB?w=500&auto=format', 'description': 'The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs— unique digital collectibles l...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-7
metadata={'tokenId': '0x0000000000000000000000000000000000000000000000000000000000000001'})]
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-8
Option 2: Polygon Mainnet# contractAddress = "0x448676ffCd0aDf2D85C1f0565e8dde6924A9A7D9" # Polygon Mainnet contract address blockchainType = BlockchainType.POLYGON_MAINNET blockchainLoader = BlockchainDocumentLoader(contractAddress, blockchainType) nfts = blockchainLoader.load() nfts[:2]
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-9
[Document(page_content="{'contract': {'address': '0x448676ffcd0adf2d85c1f0565e8dde6924a9a7d9'}, 'id': {'tokenId': '0x01', 'tokenMetadata': {'tokenType': 'ERC1155'}}, 'title': 'Wyatt Horton #0001', 'description': 'A sleepy capybara', 'tokenUri': {'gateway': 'https://storage.googleapis.com/minted-nfts/smoothstack/avatars...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-10
'trait_type': 'Category'}, {'value': 'Capybara', 'trait_type': 'Class'}, {'value': 'Fall 2022', 'trait_type': 'Collection'}, {'value': 'Furry', 'trait_type': 'Feature'}]}, 'timeLastUpdated': '2023-04-20T14:38:24.947Z', 'contractMetadata': {'name': 'Smoothstack - Avatars', 'symbol': 'SMTH', 'tokenType': 'ERC1155', 'cont...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-11
Document(page_content="{'contract': {'address': '0x448676ffcd0adf2d85c1f0565e8dde6924a9a7d9'}, 'id': {'tokenId': '0x02', 'tokenMetadata': {'tokenType': 'ERC1155'}}, 'title': 'Dylan Leisler #0002', 'description': 'A chipper cat with a big, red bowtie', 'tokenUri': {'gateway': 'https://storage.googleapis.com/minted-nfts/...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-12
'Avatar', 'trait_type': 'Type'}, {'value': 'Animal', 'trait_type': 'Category'}, {'value': 'Cat', 'trait_type': 'Class'}, {'value': 'Fall 2022', 'trait_type': 'Collection'}, {'value': 'Red Bowtie', 'trait_type': 'Feature'}]}, 'timeLastUpdated': '2023-04-23T13:38:29.316Z', 'contractMetadata': {'name': 'Smoothstack - Avat...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-13
(Optional) Using the Blockchain Document Loader# Setup Splitter and Index# %pip install sentence_transformers chromadb openai tiktoken -q Note: you may need to restart the kernel to use updated packages. from langchain.indexes import VectorstoreIndexCreator from langchain.embeddings import HuggingFaceEmbeddings from la...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
6846c9e65fae-14
' There are 10,000 unique Bored Ape NFTs.' previous Blackboard next ChatGPT Data Loader Contents Overview Setup Create a Blockchain Document Loader Option 1: Ethereum Mainnet (default BlockchainType) Option 2: Polygon Mainnet (Optional) Using the Blockchain Document Loader Setup Splitter and Index Setup Models and ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/blockchain.html
7ca938b9d340-0
.ipynb .pdf Facebook Chat Facebook Chat# This notebook covers how to load data from the Facebook Chats into a format that can be ingested into LangChain. from langchain.document_loaders import FacebookChatLoader loader = FacebookChatLoader("example_data/facebook_chat.json") loader.load() [Document(page_content='User 2 ...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/facebook_chat.html
7ca938b9d340-1
previous EverNote next Figma By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Apr 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/facebook_chat.html
85fa031ccc61-0
.ipynb .pdf Diffbot Diffbot# This covers how to extract HTML documents from a list of URLs using the Diffbot extract API, into a document format that we can use downstream. urls = [ "https://python.langchain.com/en/latest/index.html", ] The Diffbot Extract API Requires an API token. Once you have it, you can extrac...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
85fa031ccc61-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
85fa031ccc61-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
85fa031ccc61-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
85fa031ccc61-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
85fa031ccc61-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
85fa031ccc61-6
previous DataFrame Loader next Directory Loader By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Apr 25, 2023.
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/diffbot.html
dc385b7176ef-0
.ipynb .pdf Images Contents Using Unstructured Retain Elements Images# This covers how to load images such as JPGs PNGs into a document format that we can use downstream. Using Unstructured# from langchain.document_loaders.image import UnstructuredImageLoader loader = UnstructuredImageLoader("layout-parser-paper-fast...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/image.html
dc385b7176ef-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
dc385b7176ef-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
dc385b7176ef-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
af0be6ee84e5-0
.ipynb .pdf Notion Contents 🧑 Instructions for ingesting your own dataset Notion# This notebook covers how to load documents from a Notion database dump. In order to get this notion dump, follow these instructions: 🧑 Instructions for ingesting your own dataset# Export your dataset from Notion. You can do this by cl...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/notion.html
1821d4a7af95-0
.ipynb .pdf Unstructured File Loader Contents Retain Elements Define a Partitioning Strategy PDF Example Unstructured File Loader# This notebook covers how to use Unstructured to load files of many types. Unstructured currently supports loading of text files, powerpoints, html, pdfs, images, and more. # # Install pac...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
1821d4a7af95-1
loader = UnstructuredFileLoader("./example_data/state_of_the_union.txt", mode="elements") docs = loader.load() docs[:5] [Document(page_content='Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.', lookup_str=...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
1821d4a7af95-2
from langchain.document_loaders import UnstructuredFileLoader loader = UnstructuredFileLoader("layout-parser-paper-fast.pdf", strategy="fast", mode="elements") docs = loader.load() docs[:5] [Document(page_content='1', lookup_str='', metadata={'source': 'layout-parser-paper-fast.pdf', 'filename': 'layout-parser-paper-fa...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
1821d4a7af95-3
docs = loader.load() docs[:5] [Document(page_content='LayoutParser : A Unified Toolkit for Deep Learning Based Document Image Analysis', lookup_str='', metadata={'source': '../../layout-parser-paper.pdf'}, lookup_index=0), Document(page_content='Zejiang Shen 1 ( (ea)\n ), Ruochen Zhang 2 , Melissa Dell 3 , Benjamin Cha...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/unstructured_file.html
ca5ac21e7c77-0
.ipynb .pdf Obsidian Obsidian# This notebook covers how to load documents from an Obsidian database. Since Obsidian is just stored on disk as a folder of Markdown files, the loader just takes a path to this directory. Obsidian files also sometimes contain metadata which is a YAML block at the top of the file. These val...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/obsidian.html
56dee8ed8408-0
.ipynb .pdf Azure Blob Storage File Azure Blob Storage File# This covers how to load document objects from a Azure Blob Storage file. from langchain.document_loaders import AzureBlobStorageFileLoader #!pip install azure-storage-blob loader = AzureBlobStorageFileLoader(conn_str='<connection string>', container='<contain...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/azure_blob_storage_file.html
d6e1ea29d860-0
.ipynb .pdf Twitter Twitter# 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 extract. from langchain.document_loaders import TwitterTweetLoader #...
https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/twitter.html
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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
d6e1ea29d860-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