id stringlengths 14 16 | text stringlengths 44 2.73k | source stringlengths 49 114 |
|---|---|---|
fb29d60ea563-595 | PATRICE (CONT\'D)\r\n Stokely Carmichael.\r\n \r\n LANDERS\r\n Oh Yeah, Yeah, you looked good that\r\n night but you look even better now.\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-596 | \r\n LANDERS\r\n Do what?\r\n \r\n PATRICE\r\n Pull us over for nothing. Harass us.\r\n Put your hands all over a Woman in\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-597 | LANDERS\r\n I don\'t know what you\'re talking\r\n about.\r\n \r\n RON STALLWORTH\r\n It\'s like what I told you. He just\r\n likes taking advantage but in the... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-598 | to Patrice and Ron.\r\n He speaks softly issuing a deadly threat.\r\n \r\n LANDERS\r\n Let me tell you both something, I\'ve\r\n been keeping you People in line in\r\n this... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-599 | ya Black Ass if I feel like it and\r\n nuthin\' will be done about it. Get\r\n it? Wish the both of you got blown up\r\n instead of Good White Folks.\r\n \r\n Master Patrolman Landers raises up.\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-600 | RON STALLWORTH (CONT\'D)\r\n You get it, Patrice?\r\n \r\n PATRICE\r\n Oh, I totally and completely get it.\r\n \r\n Landers looks confused with their response.\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-601 | \r\n Ron turns toward the Bar and shouts.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n You get it, Flip?\r\n \r\n Behind the Bar, Flip leans out from the back room waving to\r\n Ron wearing Headph... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-602 | \r\n Ron stands removing his Shirt revealing The Wire he is\r\n wearing. Master Patrolman Landers is in shock.\r\n \r\n RON STALLWORTH\r\n You get it, Chief?\r\n \r\n Sgt. Tr... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-603 | CHIEF BRIDGES\r\n Oh, I really, really get it. You\'re\r\n under arrest for Police Misconduct,\r\n Sexual Misconduct and Police\r\n Brutality.\r\n \r\n Sgt. Trapp and the Chief usher Master Patrolman... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-604 | \r\n Ron, walking taller than usual, steps inside The Unit. Some\r\n of his Colleagues notice and give him a Low-Key Ovation. At\r\n his Desk is Flip, who is in Great Spirits.\r\n \r\n FLIP\r\n Ther... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-605 | Ron smiles, gives Fives all around. They all share a laugh.\r\n FLIP (CONT\'D)\r\n That Polaroid Stunt you pulled? When\r\n you threw your Arms around them, I\r\n swear to God I almost Shit myself!\r\n... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-606 | FLIP\r\n Born ready is Ron.\r\n \r\n Sgt. Trapp steps out of his Office.\r\n \r\n SGT. TRAPP\r\n There\'s The Crazy Son of a Bitch!!!\r\n \r\n Trapp ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-607 | You did good.\r\n \r\n RON STALLWORTH\r\n Sarge. We did good.\r\n \r\n Ron and Flip eyes meet, bonded.\r\n \r\n SGT. TRAPP\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-608 | \r\n FLIP\r\n Hey... early promotion?\r\n \r\n Ron smiles.\r\n \r\n INT. OFFICE OF THE CHIEF OF POLICE - DAY\r\n \r\n Ron, Flip, and Sgt. Trapp sit ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-609 | I can\'t commend you enough for\r\n what you\'ve achieved. You know there\r\n was not a Single Cross Burning the\r\n entire time you were involved?\r\n \r\n RON STALLWORTH\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-610 | end...\r\n \r\n Sgt. Trapp shakes his head, resigned.\r\n RON STALLWORTH\r\n What does that mean?\r\n \r\n Ron and Flip look at each other, stunned.\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-611 | FLIP\r\n Budget Cuts?\r\n \r\n CHIEF BRIDGES\r\n Inflation... I wish I had a choice.\r\n My hands are tied. Besides, it looks\r\n like there are no longer any ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-612 | RON STALLWORTH\r\n ...Sounds like we did too good a job.\r\n \r\n CHIEF BRIDGES\r\n Not a Bad Legacy to leave.\r\n \r\n Bridges takes a deliberate pause. Then, THE Sucker... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-613 | destroy all Evidence of this\r\n Investigation.\r\n \r\n RON STALLWORTH\r\n Excuse me?\r\n \r\n FLIP\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-614 | We prefer that The Public never knew\r\n about this Investigation.\r\n \r\n Ron and Flip are heated. Sgt. Trapp is silent but gutted.\r\n \r\n RON STALLWORTH\r\n If they ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-615 | Ku Klux Klan. Effective immediately.\r\n That goes for Flip too. Ron\r\n Stallworth...\r\n \r\n RON STALLWORTH\r\n This is some Fucked up Bullshit.\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-616 | Fort until you get back. Get you\r\n another assignment...Narcotics.\r\n \r\n Ron storms out.\r\n \r\n INT. INTELLIGENCE UNIT - CSPD - DAY\r\n \r\n Ron reflects as he feeds Investigation documents in... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-617 | The Shredder.\r\n Ron stops. Throws The Documents in a Folder. Sweeps some\r\n Folders into his Briefcase. Leaves as The Phone still rings.\r\n \r\n EXT. COLORADO SPRINGS POLICE DEPARTMENT BUILDING - DAY\r\n \r\n Ron is walking fast now... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-618 | Jimmy and Sgt. Trapp are behind, both close enough to listen,\r\n giggling.\r\n \r\n RON STALLWORTH\r\n I\'m sorry we didn\'t get to spend more\r\n One-on-One time together.\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-619 | DEVIN DAVIS\r\n Well, that tragic event. I had just\r\n met those Fine Brothers in the cause.\r\n \r\n RON STALLWORTH\r\n Our Chapter is just shaken to the\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-620 | \r\n DEVIN DAVIS\r\n My God. And then there was that one\r\n Nigger Detective who threatened me.\r\n RON STALLWORTH\r\n Goddamn Coloreds sure know how to\r\... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-621 | DEVIN DAVIS\r\n Christ. You can say that again.\r\n \r\n Ron cracks up into his Hand. Sgt. Trapp is wheezing-- his\r\n Face Bright Pink. Flip is laughing hard in the background.\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-622 | \r\n DEVIN DAVIS\r\n No, I...\r\n \r\n RON STALLWORTH\r\n ...Are-uh you sure you don\'t know who\r\n he is? Are-uh you absolutely ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-623 | written down\r\n being on this Investigation. He reads from it to Davis on the\r\n phone.\r\n \r\n ANGLE - SPLIT SCREEN\r\n \r\n Ron Stallworth and Devin Davis.\r\n \r\n RON STAL... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-624 | is Ron Stallworth\r\n you Redneck, Racist Peckerwood Small\r\n Dick Motherfucker!!!\r\n \r\n CLICK. Ron SLAM DUNKS THE RECEIVER LIKE SHAQ.\r\n \r\n CLOSE - DEVIN DAVIS\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-625 | OFFICE FLOOR.\r\n INT. RON\'S APARTMENT - KITCHEN - NIGHT\r\n \r\n Folders of Evidence sit on The Kitchen Table in a stack in\r\n front of Ron. He sips his Lipton Tea and removes from the\r\n FILES THE\r\n \r\n C... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-626 | Member in Good Standing\r\n \r\n Patrice comes up from behind.\r\n CLOSE - PATRICE\r\n She pulls out a small handgun from her pocketbook.\r\n \r\n 2 - SHOT - PATRICE AND RON\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-627 | Affirmative.\r\n \r\n PATRICE\r\n Have you handed in your Resignation\r\n as a Undercover Detective for The\r\n Colorado Springs Police Department?\r\n \r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-628 | for The Liberation for My People.\r\n \r\n PATRICE\r\n My Conscience won\'t let me Sleep with\r\n The Enemy.\r\n \r\n RON STALLWOR... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-629 | PATRICE\r\n You\'re absolutely right, and I Thank\r\n you for it.\r\n \r\n Patrice Kisses Ron on the cheek. Good Bye. WE HEAR a KNOCK on\r\n Ron\'s DOOR. Ron, who is startled, slowly rises. We HEAR\r\n another KNOCK.\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-630 | Patrice stands\r\n behind him.\r\n \r\n QUICK FLASHES - BLACK BODY HANGING FROM A TREE (STRANGE\r\n FRUIT) Ron slowly moves to the DOOR. Ron has his SERVICE\r\n REVOLVER up and aimed ready to fire. Ron swings open the\r\n DOOR.\r\n ANGLE - HA... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-631 | \r\n Looking in the distance: The Rolling Hills surrounding The\r\n Neighborhood lead towards Pike\'s Peak, which sits on the\r\n horizon like a King on A Throne.\r\n \r\n WE SEE: Something Burning.\r\n \r\n CLOSER-- WE SEE a C... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-632 | ALT RIGHT, THE KLAN, NEO-\r\n CONFEDERATES AND WHITE NATIONALISTS MARCHING, HOLDING UP\r\n THEIR TIKI TORCHES, CHANTING.\r\n \r\n AMERICAN TERRORISTS\r\n YOU WILL NOT REPLACE US!!!\r\n ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-633 | \r\n FINI.\r\n\r\n\r\n\n\n\n\nBlacKkKlansman\nWriters : \xa0\xa0Charlie Wachtel\xa0\xa0David Rabinowitz\xa0\xa0Kevin Willmott\xa0\xa0Spike Lee\nGenres : \xa0\xa0Crime\xa0\xa0Drama\nUser Comments\n\n\n\n\n\r\nBack to IMSDb\n\n\n', lookup_str='', metadata={'source': 'https://imsdb.com/s... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
fb29d60ea563-634 | previous
Image captions
next
Markdown
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Apr 25, 2023. | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/imsdb.html |
0c3556add9f2-0 | .ipynb
.pdf
Azure Blob Storage Container
Contents
Specifying a prefix
Azure Blob Storage Container#
This covers how to load document objects from a container on Azure Blob Storage.
from langchain.document_loaders import AzureBlobStorageContainerLoader
#!pip install azure-storage-blob
loader = AzureBlobStorageContaine... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/azure_blob_storage_container.html |
63e2c0e263d4-0 | .ipynb
.pdf
Sitemap Loader
Contents
Filtering sitemap URLs
Sitemap Loader#
Extends from the WebBaseLoader, this will load a sitemap from a given URL, and then scrape and load all the pages in the sitemap, returning each page as a document.
The scraping is done concurrently, using WebBaseLoader. There are reasonable ... | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-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 |
63e2c0e263d4-25 | previous
s3 File
next
Slack (Local Exported Zipfile)
Contents
Filtering sitemap URLs
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Apr 25, 2023. | https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/sitemap.html |
a7198a7f0bfa-0 | .ipynb
.pdf
Getting Started
Contents
Add texts
From Documents
Getting Started#
This notebook showcases basic functionality related to VectorStores. A key part of working with vectorstores is creating the vector to put in them, which is usually created via embeddings. Therefore, it is recommended that you familiarize ... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/getting_started.html |
a7198a7f0bfa-1 | Tonight, I’d like to honor someone who has dedicated his life to serve this country: Justice Stephen Breyer—an Army veteran, Constitutional scholar, and retiring Justice of the United States Supreme Court. Justice Breyer, thank you for your service.
One of the most serious constitutional responsibilities a President h... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/getting_started.html |
a7198a7f0bfa-2 | print(docs[0].page_content)
In state after state, new laws have been passed, not only to suppress the vote, but to subvert entire elections.
We cannot let this happen.
Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act s... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/getting_started.html |
bb071f3d8e25-0 | .ipynb
.pdf
Pinecone
Pinecone#
This notebook shows how to use functionality related to the Pinecone vector database.
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores import Pinecone
from langchain.document_loaders import TextL... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/pinecone.html |
623f60f24c05-0 | .ipynb
.pdf
Zilliz
Zilliz#
This notebook shows how to use functionality related to the Zilliz Cloud managed vector database.
To run, you should have a Zilliz Cloud instance up and running: https://zilliz.com/cloud
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import CharacterText... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/zilliz.html |
ea133a141d54-0 | .ipynb
.pdf
Qdrant
Contents
Connecting to Qdrant from LangChain
Local mode
In-memory
On-disk storage
On-premise server deployment
Qdrant Cloud
Reusing the same collection
Similarity search
Similarity search with score
Maximum marginal relevance search (MMR)
Qdrant as a Retriever
Customizing Qdrant
Qdrant#
This notebo... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-1 | qdrant = Qdrant.from_documents(
docs, embeddings,
location=":memory:", # Local mode with in-memory storage only
collection_name="my_documents",
)
On-disk storage#
Local mode, without using the Qdrant server, may also store your vectors on disk so they’re persisted between runs.
qdrant = Qdrant.from_docume... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-2 | collection_name="my_documents",
)
Reusing the same collection#
Both Qdrant.from_texts and Qdrant.from_documents methods are great to start using Qdrant with LangChain, but they are going to destroy the collection and create it from scratch! If you want to reuse the existing collection, you can always create an instance... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-3 | And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.
Similarity search with score#
Sometimes we might want to perform the search, but also obtain a relevancy score to know how good ... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-4 | query = "What did the president say about Ketanji Brown Jackson"
found_docs = qdrant.max_marginal_relevance_search(query, k=2, fetch_k=10)
for i, doc in enumerate(found_docs):
print(f"{i + 1}.", doc.page_content, "\n")
1. Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rig... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-5 | I spoke with their families and told them that we are forever in debt for their sacrifice, and we will carry on their mission to restore the trust and safety every community deserves.
I’ve worked on these issues a long time.
I know what works: Investing in crime preventionand community police officers who’ll walk the... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-6 | retriever.get_relevant_documents(query)[0]
Document(page_content='Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \n\nTonight, I’d like to honor someone who has dedica... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
ea133a141d54-7 | metadata_payload_key="my_meta",
)
<langchain.vectorstores.qdrant.Qdrant at 0x7fc4e2baa230>
previous
Pinecone
next
Redis
Contents
Connecting to Qdrant from LangChain
Local mode
In-memory
On-disk storage
On-premise server deployment
Qdrant Cloud
Reusing the same collection
Similarity search
Similarity search with sco... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/qdrant.html |
d067a8c79b82-0 | .ipynb
.pdf
SupabaseVectorStore
Contents
Similarity search with score
Retriever options
Maximal Marginal Relevance Searches
SupabaseVectorStore#
This notebook shows how to use Supabase and pgvector as your VectorStore.
To run this notebook, please ensure:
the pgvector extension is enabled
you have installed the supab... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
d067a8c79b82-1 | $$;
# with pip
# !pip install supabase
# with conda
# !conda install -c conda-forge supabase
# If you're storing your Supabase and OpenAI API keys in a .env file, you can load them with dotenv
from dotenv import load_dotenv
load_dotenv()
True
import os
from supabase.client import Client, create_client
supabase_url = os... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
d067a8c79b82-2 | print(matched_docs[0].page_content)
Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections.
Tonight, I’d like to honor someone who has dedicated his life to serve this countr... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
d067a8c79b82-3 | 0.802509746274066)
Retriever options#
This section goes over different options for how to use SupabaseVectorStore as a retriever.
Maximal Marginal Relevance Searches#
In addition to using similarity search in the retriever object, you can also use mmr.
retriever = vector_store.as_retriever(search_type="mmr")
matched_do... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
d067a8c79b82-4 | A cancer that would put them in a flag-draped coffin.
I know.
One of those soldiers was my son Major Beau Biden.
We don’t know for sure if a burn pit was the cause of his brain cancer, or the diseases of so many of our troops.
But I’m committed to finding out everything we can.
Committed to military families like ... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
d067a8c79b82-5 | ## Document 3
We can’t change how divided we’ve been. But we can change how we move forward—on COVID-19 and other issues we must face together.
I recently visited the New York City Police Department days after the funerals of Officer Wilbert Mora and his partner, Officer Jason Rivera.
They were responding to a 9-1-1 ... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/supabase.html |
787ea1a87f68-0 | .ipynb
.pdf
Chroma
Contents
Similarity search with score
Persistance
Initialize PeristedChromaDB
Persist the Database
Load the Database from disk, and create the chain
Retriever options
MMR
Chroma#
This notebook shows how to use functionality related to the Chroma vector database.
from langchain.embeddings.openai imp... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/chroma.html |
787ea1a87f68-1 | And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.
Similarity search with score#
docs = db.similarity_search_with_score(query)
docs[0]
(Document(page_content='In state after state... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/chroma.html |
787ea1a87f68-2 | # Supplying a persist_directory will store the embeddings on disk
persist_directory = 'db'
embedding = OpenAIEmbeddings()
vectordb = Chroma.from_documents(documents=docs, embedding=embedding, persist_directory=persist_directory)
Running Chroma using direct local API.
No existing DB found in db, skipping load
No existin... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/chroma.html |
787ea1a87f68-3 | retriever.get_relevant_documents(query)[0]
Document(page_content='Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \n\nTonight, I’d like to honor someone who has dedica... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/chroma.html |
3923cc41f822-0 | .ipynb
.pdf
AtlasDB
AtlasDB#
This notebook shows you how to use functionality related to the AtlasDB
import time
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import SpacyTextSplitter
from langchain.vectorstores import AtlasDB
from langchain.document_loaders import TextLoader
!py... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/atlas.html |
3923cc41f822-1 | By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Apr 25, 2023. | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/atlas.html |
484adba1a640-0 | .ipynb
.pdf
AnalyticDB
AnalyticDB#
This notebook shows how to use functionality related to the AnalyticDB vector database.
To run, you should have an AnalyticDB instance up and running:
Using AnalyticDB Cloud Vector Database. Click here to fast deploy it.
from langchain.embeddings.openai import OpenAIEmbeddings
from la... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/analyticdb.html |
484adba1a640-1 | embeddings,
connection_string= connection_string,
)
Query and retrieve data
query = "What did the president say about Ketanji Brown Jackson"
docs = vector_db.similarity_search(query)
print(docs[0].page_content)
Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. An... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/analyticdb.html |
d6b84a75db84-0 | .ipynb
.pdf
FAISS
Contents
Similarity Search with score
Saving and loading
Merging
FAISS#
This notebook shows how to use functionality related to the FAISS vector database.
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores im... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/faiss.html |
d6b84a75db84-1 | Similarity Search with score#
There are some FAISS specific methods. One of them is similarity_search_with_score, which allows you to return not only the documents but also the similarity score of the query to them.
docs_and_scores = db.similarity_search_with_score(query)
docs_and_scores[0]
(Document(page_content='In s... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/faiss.html |
d6b84a75db84-2 | db.save_local("faiss_index")
new_db = FAISS.load_local("faiss_index", embeddings)
docs = new_db.similarity_search(query)
docs[0]
Document(page_content='In state after state, new laws have been passed, not only to suppress the vote, but to subvert entire elections. \n\nWe cannot let this happen. \n\nTonight. I call on t... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/faiss.html |
d6b84a75db84-3 | db2.docstore._dict
{'bdc50ae3-a1bb-4678-9260-1b0979578f40': Document(page_content='bar', lookup_str='', metadata={}, lookup_index=0)}
db1.merge_from(db2)
db1.docstore._dict
{'e0b74348-6c93-4893-8764-943139ec1d17': Document(page_content='foo', lookup_str='', metadata={}, lookup_index=0),
'd5211050-c777-493d-8825-4800e7... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/faiss.html |
10c3d07fdbfb-0 | .ipynb
.pdf
ElasticSearch
ElasticSearch#
This notebook shows how to use functionality related to the ElasticSearch database.
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores import ElasticVectorSearch
from langchain.document_l... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/elasticsearch.html |
10c3d07fdbfb-1 | And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.
previous
Deep Lake
next
FAISS
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Apr 25, 20... | https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/elasticsearch.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.