id stringlengths 14 17 | text stringlengths 42 2.11k |
|---|---|
4e9727215e95-900 | import { AudioTranscriptLoader, // AudioTranscriptParagraphsLoader, // AudioTranscriptSentencesLoader} from "langchain/document_loaders/web/assemblyai";// You can also use a local file path and the loader will upload it to AssemblyAI for you.const audioUrl = "https://storage.googleapis.com/aai-docs-samples/espn.m4a"... |
4e9727215e95-901 | import { AudioSubtitleLoader, SubtitleFormat,} from "langchain/document_loaders/web/assemblyai";// You can also use a local file path and the loader will upload it to AssemblyAI for you.const audioUrl = "https://storage.googleapis.com/aai-docs-samples/espn.m4a";const loader = new AudioSubtitleLoader( { audio_url:... |
4e9727215e95-902 | Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzu... |
4e9727215e95-903 | It can also be configured to run locally.See the docs here for information on how to do that.You'll also need to install the official Azure Storage Blob client library:npmYarnpnpmnpm install @azure/storage-blobyarn add @azure/storage-blobpnpm add @azure/storage-blobUsageOnce Unstructured is configured, you can use the... |
4e9727215e95-904 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-905 | ModulesData connectionDocument loadersIntegrationsWeb LoadersAzure Blob Storage ContainerAzure Blob Storage ContainerCompatibilityOnly available on Node.js.This covers how to load a container on Azure Blob Storage into LangChain documents.SetupTo run this loader, you'll need to have Unstructured already set up and rea... |
4e9727215e95-906 | Azure Blob Storage ContainerCompatibilityOnly available on Node.js.This covers how to load a container on Azure Blob Storage into LangChain documents.SetupTo run this loader, you'll need to have Unstructured already set up and ready to use at an available URL endpoint. It can also be configured to run locally.See the ... |
4e9727215e95-907 | npm install @azure/storage-blob
yarn add @azure/storage-blob
pnpm add @azure/storage-blob
Once Unstructured is configured, you can use the Azure Blob Storage Container loader to load files and then convert them into a Document.
import { AzureBlobStorageContainerLoader } from "langchain/document_loaders/web/azure_bl... |
4e9727215e95-908 | It can also be configured to run locally.See the docs here for information on how to do that.You'll also need to install the official Azure Storage Blob client library:npmYarnpnpmnpm install @azure/storage-blobyarn add @azure/storage-blobpnpm add @azure/storage-blobUsageOnce Unstructured is configured, you can use the... |
4e9727215e95-909 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-910 | ModulesData connectionDocument loadersIntegrationsWeb LoadersAzure Blob Storage FileAzure Blob Storage FileCompatibilityOnly available on Node.js.This covers how to load an Azure File into LangChain documents.SetupTo use this loader, you'll need to have Unstructured already set up and ready to use at an available URL ... |
4e9727215e95-911 | Azure Blob Storage FileCompatibilityOnly available on Node.js.This covers how to load an Azure File into LangChain documents.SetupTo use this loader, you'll need to have Unstructured already set up and ready to use at an available URL endpoint. It can also be configured to run locally.See the docs here for information... |
4e9727215e95-912 | import { AzureBlobStorageFileLoader } from "langchain/document_loaders/web/azure_blob_storage_file";const loader = new AzureBlobStorageFileLoader({ azureConfig: { connectionString: "", container: "container_name", blobName: "example.txt", }, unstructuredConfig: { apiUrl: "http://localhost:8000/general/v0... |
4e9727215e95-913 | Page Title: College Confidential | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemb... |
4e9727215e95-914 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-915 | College ConfidentialThis example goes over how to load data from the college confidential website, using Cheerio. One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioUsageimport { CollegeConfidentialLoader } from "langchain/document_loaders/web/college_confide... |
4e9727215e95-916 | Page Title: Confluence | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio... |
4e9727215e95-917 | https://example.atlassian.net/wiki/spaces/{SPACE_KEY}And you'll need to install html-to-text to parse the pages into plain textnpmYarnpnpmnpm install html-to-textyarn add html-to-textpnpm add html-to-textUsageimport { ConfluencePagesLoader } from "langchain/document_loaders/web/confluence";const username = process.env... |
4e9727215e95-918 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-919 | https://example.atlassian.net/wiki/spaces/{SPACE_KEY}And you'll need to install html-to-text to parse the pages into plain textnpmYarnpnpmnpm install html-to-textyarn add html-to-textpnpm add html-to-textUsageimport { ConfluencePagesLoader } from "langchain/document_loaders/web/confluence";const username = process.env... |
4e9727215e95-920 | ModulesData connectionDocument loadersIntegrationsWeb LoadersConfluenceOn this pageConfluenceCompatibilityOnly available on Node.js.This covers how to load document objects from pages in a Confluence space.CredentialsYou'll need to set up an access token and provide it along with your confluence username in order to a... |
4e9727215e95-921 | ModulesData connectionDocument loadersIntegrationsWeb LoadersConfluenceOn this pageConfluenceCompatibilityOnly available on Node.js.This covers how to load document objects from pages in a Confluence space.CredentialsYou'll need to set up an access token and provide it along with your confluence username in order to a... |
4e9727215e95-922 | ConfluenceCompatibilityOnly available on Node.js.This covers how to load document objects from pages in a Confluence space.CredentialsYou'll need to set up an access token and provide it along with your confluence username in order to authenticate the requestYou'll also need the space key for the space containing the ... |
4e9727215e95-923 | npm install html-to-text
yarn add html-to-text
pnpm add html-to-text
import { ConfluencePagesLoader } from "langchain/document_loaders/web/confluence";const username = process.env.CONFLUENCE_USERNAME;const accessToken = process.env.CONFLUENCE_ACCESS_TOKEN;if (username && accessToken) { const loader = new Confluence... |
4e9727215e95-924 | You will need a Figma access token in order to get started.import { FigmaFileLoader } from "langchain/document_loaders/web/figma";const loader = new FigmaFileLoader({ accessToken: "FIGMA_ACCESS_TOKEN", // or load it from process.env.FIGMA_ACCESS_TOKEN nodeIds: ["id1", "id2", "id3"], fileKey: "key",});const docs = aw... |
4e9727215e95-925 | You will need a Figma access token in order to get started.import { FigmaFileLoader } from "langchain/document_loaders/web/figma";const loader = new FigmaFileLoader({ accessToken: "FIGMA_ACCESS_TOKEN", // or load it from process.env.FIGMA_ACCESS_TOKEN nodeIds: ["id1", "id2", "id3"], fileKey: "key",});const docs = aw... |
4e9727215e95-926 | You will need a Figma access token in order to get started.import { FigmaFileLoader } from "langchain/document_loaders/web/figma";const loader = new FigmaFileLoader({ accessToken: "FIGMA_ACCESS_TOKEN", // or load it from process.env.FIGMA_ACCESS_TOKEN nodeIds: ["id1", "id2", "id3"], fileKey: "key",});const docs = aw... |
4e9727215e95-927 | FigmaThis example goes over how to load data from a Figma file.
You will need a Figma access token in order to get started.import { FigmaFileLoader } from "langchain/document_loaders/web/figma";const loader = new FigmaFileLoader({ accessToken: "FIGMA_ACCESS_TOKEN", // or load it from process.env.FIGMA_ACCESS_TOKEN n... |
4e9727215e95-928 | https://www.figma.com/file/<YOUR FILE KEY HERE>/LangChainJS-Test?type=whiteboard&node-id=<YOUR NODE ID HERE>&t=e6lqWkKecuYQRyRg-0
GitBook
Page Title: GitBook | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModules... |
4e9727215e95-929 | One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioLoad from single GitBook pageimport { GitbookLoader } from "langchain/document_loaders/web/gitbook";const loader = new GitbookLoader( "https://docs.gitbook.com/product-tour/navigation");const docs = await lo... |
4e9727215e95-930 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-931 | ModulesData connectionDocument loadersIntegrationsWeb LoadersGitBookGitBookThis example goes over how to load data from any GitBook, using Cheerio. One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioLoad from single GitBook pageimport { GitbookLoader } from "... |
4e9727215e95-932 | GitBookThis example goes over how to load data from any GitBook, using Cheerio. One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioLoad from single GitBook pageimport { GitbookLoader } from "langchain/document_loaders/web/gitbook";const loader = new GitbookLo... |
4e9727215e95-933 | Page Title: GitHub | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio Tra... |
4e9727215e95-934 | You can set the GITHUB_ACCESS_TOKEN environment variable to a GitHub access token to increase the rate limit and access private repositories.SetupThe GitHub loader requires the ignore npm package as a peer dependency. Install it like this:npmYarnpnpmnpm install ignoreyarn add ignorepnpm add ignoreUsageimport { Github... |
4e9727215e95-935 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-936 | You can set the GITHUB_ACCESS_TOKEN environment variable to a GitHub access token to increase the rate limit and access private repositories.SetupThe GitHub loader requires the ignore npm package as a peer dependency. Install it like this:npmYarnpnpmnpm install ignoreyarn add ignorepnpm add ignoreUsageimport { Github... |
4e9727215e95-937 | You can set the GITHUB_ACCESS_TOKEN environment variable to a GitHub access token to increase the rate limit and access private repositories.SetupThe GitHub loader requires the ignore npm package as a peer dependency. Install it like this:npmYarnpnpmnpm install ignoreyarn add ignorepnpm add ignoreUsageimport { Github... |
4e9727215e95-938 | GitHubThis example goes over how to load data from a GitHub repository.
You can set the GITHUB_ACCESS_TOKEN environment variable to a GitHub access token to increase the rate limit and access private repositories.SetupThe GitHub loader requires the ignore npm package as a peer dependency. Install it like this:npmYarn... |
4e9727215e95-939 | The GitHub loader requires the ignore npm package as a peer dependency. Install it like this:
npmYarnpnpmnpm install ignoreyarn add ignorepnpm add ignore
npm install ignoreyarn add ignorepnpm add ignore
npm install ignore
yarn add ignore
pnpm add ignore
import { GithubRepoLoader } from "langchain/document_loaders... |
4e9727215e95-940 | Page Title: Hacker News | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audi... |
4e9727215e95-941 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-942 | Hacker NewsThis example goes over how to load data from the hacker news website, using Cheerio. One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioUsageimport { HNLoader } from "langchain/document_loaders/web/hn";const loader = new HNLoader("https://news.ycom... |
4e9727215e95-943 | Page Title: IMSDB | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio Tran... |
4e9727215e95-944 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-945 | IMSDBThis example goes over how to load data from the internet movie script database website, using Cheerio. One document will be created for each page.SetupnpmYarnpnpmnpm install cheerioyarn add cheeriopnpm add cheerioUsageimport { IMSDBLoader } from "langchain/document_loaders/web/imsdb";const loader = new IMSDBLoa... |
4e9727215e95-946 | load documents from Notion pages and databases using the Notion API.OverviewNotion is a versatile productivity platform that consolidates note-taking, task management, and data organization tools into one interface.This document loader is able to take full Notion pages and databases and turn them into a LangChain Docu... |
4e9727215e95-947 | For example:PAGE_ID: https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4DATABASE_ID: https://www.notion.so/skarard/c393f19c3903440da0d34bf9c6c12ff2?v=9c70a0f4e174498aa0f9021e0a9d52deREGEX: /(?<!=)[0-9a-f]{32}/Example Usageimport { NotionAPILoader } from "langchain/document_loaders/web/n... |
4e9727215e95-948 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-949 | For example:PAGE_ID: https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4DATABASE_ID: https://www.notion.so/skarard/c393f19c3903440da0d34bf9c6c12ff2?v=9c70a0f4e174498aa0f9021e0a9d52deREGEX: /(?<!=)[0-9a-f]{32}/Example Usageimport { NotionAPILoader } from "langchain/document_loaders/web/n... |
4e9727215e95-950 | ModulesData connectionDocument loadersIntegrationsWeb LoadersNotion APINotion APIThis guide will take you through the steps required to load documents from Notion pages and databases using the Notion API.OverviewNotion is a versatile productivity platform that consolidates note-taking, task management, and data organi... |
4e9727215e95-951 | For example:PAGE_ID: https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4DATABASE_ID: https://www.notion.so/skarard/c393f19c3903440da0d34bf9c6c12ff2?v=9c70a0f4e174498aa0f9021e0a9d52deREGEX: /(?<!=)[0-9a-f]{32}/Example Usageimport { NotionAPILoader } from "langchain/document_loaders/web/n... |
4e9727215e95-952 | Notion APIThis guide will take you through the steps required to load documents from Notion pages and databases using the Notion API.OverviewNotion is a versatile productivity platform that consolidates note-taking, task management, and data organization tools into one interface.This document loader is able to take fu... |
4e9727215e95-953 | For example:PAGE_ID: https://www.notion.so/skarard/LangChain-Notion-API-b34ca03f219c4420a6046fc4bdfdf7b4DATABASE_ID: https://www.notion.so/skarard/c393f19c3903440da0d34bf9c6c12ff2?v=9c70a0f4e174498aa0f9021e0a9d52deREGEX: /(?<!=)[0-9a-f]{32}/Example Usageimport { NotionAPILoader } from "langchain/document_loaders/web/n... |
4e9727215e95-954 | This document loader is able to take full Notion pages and databases and turn them into a LangChain Documents ready to be integrated into your projects.
npmYarnpnpmnpm install @notionhq/client notion-to-mdyarn add @notionhq/client notion-to-mdpnpm add @notionhq/client notion-to-md
npm install @notionhq/client notion-... |
4e9727215e95-955 | REGEX: /(?<!=)[0-9a-f]{32}/
import { NotionAPILoader } from "langchain/document_loaders/web/notionapi";// Loading a page (including child pages all as separate documents)const pageLoader = new NotionAPILoader({ clientOptions: { auth: "<NOTION_INTEGRATION_TOKEN>", }, id: "<PAGE_ID>", type: "page",});// A page co... |
4e9727215e95-956 | Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzu... |
4e9727215e95-957 | If these are not provided, you will need to have them in your environment (e.g., by running aws configure).import { S3Loader } from "langchain/document_loaders/web/s3";const loader = new S3Loader({ bucket: "my-document-bucket-123", key: "AccountingOverview.pdf", s3Config: { region: "us-east-1", credentials: { ... |
4e9727215e95-958 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-959 | If these are not provided, you will need to have them in your environment (e.g., by running aws configure).import { S3Loader } from "langchain/document_loaders/web/s3";const loader = new S3Loader({ bucket: "my-document-bucket-123", key: "AccountingOverview.pdf", s3Config: { region: "us-east-1", credentials: { ... |
4e9727215e95-960 | ModulesData connectionDocument loadersIntegrationsWeb LoadersS3 FileS3 FileCompatibilityOnly available on Node.js.This covers how to load document objects from an s3 file object.SetupTo run this index you'll need to have Unstructured already set up and ready to use at an available URL endpoint. It can also be configur... |
4e9727215e95-961 | S3 FileCompatibilityOnly available on Node.js.This covers how to load document objects from an s3 file object.SetupTo run this index you'll need to have Unstructured already set up and ready to use at an available URL endpoint. It can also be configured to run locally.See the docs here for information on how to do tha... |
4e9727215e95-962 | You'll also need to install the official AWS SDK:
npmYarnpnpmnpm install @aws-sdk/client-s3yarn add @aws-sdk/client-s3pnpm add @aws-sdk/client-s3
npm install @aws-sdk/client-s3yarn add @aws-sdk/client-s3pnpm add @aws-sdk/client-s3
npm install @aws-sdk/client-s3
yarn add @aws-sdk/client-s3
pnpm add @aws-sdk/client-... |
4e9727215e95-963 | Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzu... |
4e9727215e95-964 | The SerpAPILoader simplifies the process of loading and processing web search results from SerpAPI.SetupYou'll need to sign up and retrieve your SerpAPI API key.UsageHere's an example of how to use the SerpAPILoader:import { OpenAI } from "langchain/llms/openai";import { RetrievalQAChain } from "langchain/chains";imp... |
4e9727215e95-965 | loader = new SerpAPILoader({ q: query, apiKey });const docs = await loader.load();// Use MemoryVectorStore to store the loaded documents in memoryconst vectorStore = await MemoryVectorStore.fromDocuments(docs, embeddings);// Use RetrievalQAChain to retrieve documents and answer the questionconst chain = RetrievalQAChai... |
4e9727215e95-966 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-967 | The SerpAPILoader simplifies the process of loading and processing web search results from SerpAPI.SetupYou'll need to sign up and retrieve your SerpAPI API key.UsageHere's an example of how to use the SerpAPILoader:import { OpenAI } from "langchain/llms/openai";import { RetrievalQAChain } from "langchain/chains";imp... |
4e9727215e95-968 | loader = new SerpAPILoader({ q: query, apiKey });const docs = await loader.load();// Use MemoryVectorStore to store the loaded documents in memoryconst vectorStore = await MemoryVectorStore.fromDocuments(docs, embeddings);// Use RetrievalQAChain to retrieve documents and answer the questionconst chain = RetrievalQAChai... |
4e9727215e95-969 | The SerpAPILoader simplifies the process of loading and processing web search results from SerpAPI.SetupYou'll need to sign up and retrieve your SerpAPI API key.UsageHere's an example of how to use the SerpAPILoader:import { OpenAI } from "langchain/llms/openai";import { RetrievalQAChain } from "langchain/chains";imp... |
4e9727215e95-970 | loader = new SerpAPILoader({ q: query, apiKey });const docs = await loader.load();// Use MemoryVectorStore to store the loaded documents in memoryconst vectorStore = await MemoryVectorStore.fromDocuments(docs, embeddings);// Use RetrievalQAChain to retrieve documents and answer the questionconst chain = RetrievalQAChai... |
4e9727215e95-971 | The SerpAPILoader simplifies the process of loading and processing web search results from SerpAPI.SetupYou'll need to sign up and retrieve your SerpAPI API key.UsageHere's an example of how to use the SerpAPILoader:import { OpenAI } from "langchain/llms/openai";import { RetrievalQAChain } from "langchain/chains";imp... |
4e9727215e95-972 | loader = new SerpAPILoader({ q: query, apiKey });const docs = await loader.load();// Use MemoryVectorStore to store the loaded documents in memoryconst vectorStore = await MemoryVectorStore.fromDocuments(docs, embeddings);// Use RetrievalQAChain to retrieve documents and answer the questionconst chain = RetrievalQAChai... |
4e9727215e95-973 | Here's an example of how to use the SerpAPILoader:
import { OpenAI } from "langchain/llms/openai";import { RetrievalQAChain } from "langchain/chains";import { MemoryVectorStore } from "langchain/vectorstores/memory";import { OpenAIEmbeddings } from "langchain/embeddings/openai";import { SerpAPILoader } from "langchain... |
4e9727215e95-974 | Sonix Audio
Page Title: Sonix Audio | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAs... |
4e9727215e95-975 | You will also need to specify the audio language. See the list of supported languages here.import { SonixAudioTranscriptionLoader } from "langchain/document_loaders/web/sonix_audio";const loader = new SonixAudioTranscriptionLoader({ sonixAuthKey: "SONIX_AUTH_KEY", request: { audioFilePath: "LOCAL_AUDIO_FILE_PATH",... |
4e9727215e95-976 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-977 | You will also need to specify the audio language. See the list of supported languages here.import { SonixAudioTranscriptionLoader } from "langchain/document_loaders/web/sonix_audio";const loader = new SonixAudioTranscriptionLoader({ sonixAuthKey: "SONIX_AUTH_KEY", request: { audioFilePath: "LOCAL_AUDIO_FILE_PATH",... |
4e9727215e95-978 | You will also need to specify the audio language. See the list of supported languages here.import { SonixAudioTranscriptionLoader } from "langchain/document_loaders/web/sonix_audio";const loader = new SonixAudioTranscriptionLoader({ sonixAuthKey: "SONIX_AUTH_KEY", request: { audioFilePath: "LOCAL_AUDIO_FILE_PATH",... |
4e9727215e95-979 | You will also need to specify the audio language. See the list of supported languages here.import { SonixAudioTranscriptionLoader } from "langchain/document_loaders/web/sonix_audio";const loader = new SonixAudioTranscriptionLoader({ sonixAuthKey: "SONIX_AUTH_KEY", request: { audioFilePath: "LOCAL_AUDIO_FILE_PATH",... |
4e9727215e95-980 | You will also need to specify the audio language. See the list of supported languages here.
import { SonixAudioTranscriptionLoader } from "langchain/document_loaders/web/sonix_audio";const loader = new SonixAudioTranscriptionLoader({ sonixAuthKey: "SONIX_AUTH_KEY", request: { audioFilePath: "LOCAL_AUDIO_FILE_PATH... |
4e9727215e95-981 | Page Title: Blockchain Data | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI ... |
4e9727215e95-982 | Use OPENAI_API_KEY from .env in /examples const model = new OpenAI({ temperature: 0.9 }); const apiKey = "YOUR_SORTXYZ_API_KEY"; const contractAddress = "0x887F3909C14DAbd9e9510128cA6cBb448E932d7f".toLowerCase(); /* Load NFT metadata from the Ethereum blockchain. Hint: to load by a specific ID, see SQL query ex... |
4e9727215e95-983 | "; const latestResponse = await model.call( latestPrompt + JSON.stringify(latestTransactionsDocs[0], null, 2) ); console.log(`\n\nuser > ${nftPrompt}`); console.log(`chatgpt > ${latestResponse}`); /* Load metadata for a specific NFT by using raw SQL and the NFT index. See https://docs.sort.xyz for forumulati... |
4e9727215e95-984 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-985 | Use OPENAI_API_KEY from .env in /examples const model = new OpenAI({ temperature: 0.9 }); const apiKey = "YOUR_SORTXYZ_API_KEY"; const contractAddress = "0x887F3909C14DAbd9e9510128cA6cBb448E932d7f".toLowerCase(); /* Load NFT metadata from the Ethereum blockchain. Hint: to load by a specific ID, see SQL query ex... |
4e9727215e95-986 | "; const latestResponse = await model.call( latestPrompt + JSON.stringify(latestTransactionsDocs[0], null, 2) ); console.log(`\n\nuser > ${nftPrompt}`); console.log(`chatgpt > ${latestResponse}`); /* Load metadata for a specific NFT by using raw SQL and the NFT index. See https://docs.sort.xyz for forumulati... |
4e9727215e95-987 | ModulesData connectionDocument loadersIntegrationsWeb LoadersBlockchain DataBlockchain DataThis example shows how to load blockchain data, including NFT metadata and transactions for a contract address, via the sort.xyz SQL API.You will need a free Sort API key, visiting sort.xyz to obtain one.import { SortXYZBlockchai... |
4e9727215e95-988 | "; const nftResponse = await model.call( nftPrompt + JSON.stringify(nftMetadataDocs[0], null, 2) ); console.log(`user > ${nftPrompt}`); console.log(`chatgpt > ${nftResponse}`); /* Load the latest transactions for a contract address from the Ethereum blockchain. */ const latestTransactionsLoader = new SortXY... |
4e9727215e95-989 | "; const sqlResponse = await model.call( sqlPrompt + JSON.stringify(sqlDocs[0], null, 2) ); console.log(`\n\nuser > ${sqlPrompt}`); console.log(`chatgpt > ${sqlResponse}`);};API Reference:SortXYZBlockchainLoader from langchain/document_loaders/web/sort_xyz_blockchainOpenAI from langchain/llms/openaiPreviousSonix... |
4e9727215e95-990 | Blockchain DataThis example shows how to load blockchain data, including NFT metadata and transactions for a contract address, via the sort.xyz SQL API.You will need a free Sort API key, visiting sort.xyz to obtain one.import { SortXYZBlockchainLoader } from "langchain/document_loaders/web/sort_xyz_blockchain";import {... |
4e9727215e95-991 | "; const nftResponse = await model.call( nftPrompt + JSON.stringify(nftMetadataDocs[0], null, 2) ); console.log(`user > ${nftPrompt}`); console.log(`chatgpt > ${nftResponse}`); /* Load the latest transactions for a contract address from the Ethereum blockchain. */ const latestTransactionsLoader = new SortXY... |
4e9727215e95-992 | "; const sqlResponse = await model.call( sqlPrompt + JSON.stringify(sqlDocs[0], null, 2) ); console.log(`\n\nuser > ${sqlPrompt}`); console.log(`chatgpt > ${sqlResponse}`);};API Reference:SortXYZBlockchainLoader from langchain/document_loaders/web/sort_xyz_blockchainOpenAI from langchain/llms/openai
You will ne... |
4e9727215e95-993 | You will need a free Sort API key, visiting sort.xyz to obtain one.
import { SortXYZBlockchainLoader } from "langchain/document_loaders/web/sort_xyz_blockchain";import { OpenAI } from "langchain/llms/openai";/** * See https://docs.sort.xyz/docs/api-keys to get your free Sort API key. * See https://docs.sort.xyz for mo... |
4e9727215e95-994 | / const latestTransactionsLoader = new SortXYZBlockchainLoader({ apiKey, query: { type: "latestTransactions", blockchain: "ethereum", contractAddress, }, }); const latestTransactionsDocs = await latestTransactionsLoader.load(); const latestPrompt = "Describe the following json documents i... |
4e9727215e95-995 | Page Title: YouTube transcripts | 🦜️🔗 Langchain
Paragraphs:
Skip to main content🦜️🔗 LangChainDocsUse casesAPILangSmithPython DocsCTRLKGet startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssembl... |
4e9727215e95-996 | Get startedIntroductionInstallationQuickstartModulesModel I/OData connectionDocument loadersHow-toIntegrationsFile LoadersWeb LoadersCheerioPuppeteerPlaywrightApify DatasetAssemblyAI Audio TranscriptAzure Blob Storage ContainerAzure Blob Storage FileCollege ConfidentialConfluenceFigmaGitBookGitHubHacker NewsIMSDBNotio... |
4e9727215e95-997 | and youtubei.js to extract metadata:npmYarnpnpmnpm install youtube-transcript youtubei.jsyarn add youtube-transcript youtubei.jspnpm add youtube-transcript youtubei.jsUsageYou need to specify a link to the video in the url. You can also specify language in ISO 639-1 and addVideoInfo flag.import { YoutubeLoader } from ... |
4e9727215e95-998 | npm install youtube-transcript youtubei.jsyarn add youtube-transcript youtubei.jspnpm add youtube-transcript youtubei.js
npm install youtube-transcript youtubei.js
yarn add youtube-transcript youtubei.js
pnpm add youtube-transcript youtubei.js
You need to specify a link to the video in the url. You can also specify... |
4e9727215e95-999 | As simple as this sounds, there is a lot of potential complexity here. Ideally, you want to keep the semantically related pieces of text together. What "semantically related" means could depend on the type of text.
This notebook showcases several ways to do that.At a high level, text splitters work as following:Split ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.