id
stringlengths
14
15
text
stringlengths
13
2.7k
source
stringlengths
60
181
b4e749bc410c-0
langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter¶ class langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter(code: str)[source]¶ Abstract class for the code segmenter. Methods __init__(code) extract_functions_classes() is_valid() simplify_code() __init__(c...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter.html
f37f04bc3ddf-0
langchain_community.document_loaders.tencent_cos_directory.TencentCOSDirectoryLoader¶ class langchain_community.document_loaders.tencent_cos_directory.TencentCOSDirectoryLoader(conf: Any, bucket: str, prefix: str = '')[source]¶ Load from Tencent Cloud COS directory. Initialize with COS config, bucket and prefix. :param...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.tencent_cos_directory.TencentCOSDirectoryLoader.html
afae761e93ba-0
langchain_community.document_loaders.unstructured.UnstructuredFileIOLoader¶ class langchain_community.document_loaders.unstructured.UnstructuredFileIOLoader(file: Union[IO, Sequence[IO]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load files using Unstructured. The file loader uses the unstructured part...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredFileIOLoader.html
afae761e93ba-1
Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. Examples using UnstructuredFileIOLoader¶ Google Drive
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredFileIOLoader.html
8577cb0540ff-0
langchain_community.document_loaders.pdf.PyMuPDFLoader¶ class langchain_community.document_loaders.pdf.PyMuPDFLoader(file_path: str, *, headers: Optional[Dict] = None, extract_images: bool = False, **kwargs: Any)[source]¶ Load PDF files using PyMuPDF. Initialize with a file path. Attributes source Methods __init__(file...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.PyMuPDFLoader.html
33a6a493b311-0
langchain_community.document_loaders.college_confidential.CollegeConfidentialLoader¶ class langchain_community.document_loaders.college_confidential.CollegeConfidentialLoader(web_path: Union[str, Sequence[str]] = '', header_template: Optional[dict] = None, verify_ssl: bool = True, proxies: Optional[dict] = None, contin...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.college_confidential.CollegeConfidentialLoader.html
33a6a493b311-1
scrape([parser]) Scrape data from webpage and return it in BeautifulSoup format. scrape_all(urls[, parser]) Fetch all urls, then return soups for all results. __init__(web_path: Union[str, Sequence[str]] = '', header_template: Optional[dict] = None, verify_ssl: bool = True, proxies: Optional[dict] = None, continue_on_f...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.college_confidential.CollegeConfidentialLoader.html
33a6a493b311-2
Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. scrape(parser: Optional[str] = None) → Any¶ Scrape data from webpage and return it in BeautifulS...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.college_confidential.CollegeConfidentialLoader.html
3b98206ccd41-0
langchain_community.document_loaders.readthedocs.ReadTheDocsLoader¶ class langchain_community.document_loaders.readthedocs.ReadTheDocsLoader(path: Union[str, Path], encoding: Optional[str] = None, errors: Optional[str] = None, custom_html_tag: Optional[Tuple[str, dict]] = None, patterns: Sequence[str] = ('*.htm', '*.ht...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.readthedocs.ReadTheDocsLoader.html
3b98206ccd41-1
Initialize ReadTheDocsLoader lazy_load() A lazy loader for Documents. load() Load documents. load_and_split([text_splitter]) Load Documents and split into chunks. __init__(path: Union[str, Path], encoding: Optional[str] = None, errors: Optional[str] = None, custom_html_tag: Optional[Tuple[str, dict]] = None, patterns: ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.readthedocs.ReadTheDocsLoader.html
3b98206ccd41-2
lazy_load() → Iterator[Document][source]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load documents. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.readthedocs.ReadTheDocsLoader.html
7314e857a2ab-0
langchain_community.document_loaders.nuclia.NucliaLoader¶ class langchain_community.document_loaders.nuclia.NucliaLoader(path: str, nuclia_tool: NucliaUnderstandingAPI)[source]¶ Load from any file type using Nuclia Understanding API. Methods __init__(path, nuclia_tool) lazy_load() A lazy loader for Documents. load() Lo...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.nuclia.NucliaLoader.html
55ca7def5589-0
langchain_community.document_loaders.csv_loader.UnstructuredCSVLoader¶ class langchain_community.document_loaders.csv_loader.UnstructuredCSVLoader(file_path: str, mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load CSV files using Unstructured. Like other Unstructured loaders, UnstructuredCSVLoader can be u...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.csv_loader.UnstructuredCSVLoader.html
55ca7def5589-1
A lazy loader for Documents. load() → List[Document]¶ Load file. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCh...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.csv_loader.UnstructuredCSVLoader.html
d60cb876621e-0
langchain_community.document_loaders.mastodon.MastodonTootsLoader¶ class langchain_community.document_loaders.mastodon.MastodonTootsLoader(mastodon_accounts: Sequence[str], number_toots: Optional[int] = 100, exclude_replies: bool = False, access_token: Optional[str] = None, api_base_url: str = 'https://mastodon.social'...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.mastodon.MastodonTootsLoader.html
d60cb876621e-1
exclude_replies – Whether to exclude reply toots from the load. Defaults to False. access_token – An access token if toots are loaded as a Mastodon app. Can also be specified via the environment variables “MASTODON_ACCESS_TOKEN”. api_base_url – A Mastodon API base URL to talk to, if not using the default. Defaults to “...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.mastodon.MastodonTootsLoader.html
ed4cdf764d63-0
langchain_community.document_loaders.pyspark_dataframe.PySparkDataFrameLoader¶ class langchain_community.document_loaders.pyspark_dataframe.PySparkDataFrameLoader(spark_session: Optional[SparkSession] = None, df: Optional[Any] = None, page_content_column: str = 'text', fraction_of_memory: float = 0.1)[source]¶ Load PyS...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pyspark_dataframe.PySparkDataFrameLoader.html
ed4cdf764d63-1
lazy_load() → Iterator[Document][source]¶ A lazy loader for document content. load() → List[Document][source]¶ Load from the dataframe. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSp...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pyspark_dataframe.PySparkDataFrameLoader.html
57688a933dac-0
langchain_community.document_loaders.url_selenium.SeleniumURLLoader¶ class langchain_community.document_loaders.url_selenium.SeleniumURLLoader(urls: List[str], continue_on_failure: bool = True, browser: Literal['chrome', 'firefox'] = 'chrome', binary_location: Optional[str] = None, executable_path: Optional[str] = None...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.url_selenium.SeleniumURLLoader.html
57688a933dac-1
Load a list of URLs using Selenium and unstructured. lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load the specified URLs using Selenium and create Document instances. Returns A list of Document instances with loaded content. Return type List[Document] load_and_split(t...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.url_selenium.SeleniumURLLoader.html
ebf2e4d5ab0d-0
langchain_community.document_loaders.unstructured.validate_unstructured_version¶ langchain_community.document_loaders.unstructured.validate_unstructured_version(min_unstructured_version: str) → None[source]¶ Raise an error if the Unstructured version does not exceed the specified minimum.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.validate_unstructured_version.html
c95c5dae8526-0
langchain_community.document_loaders.pubmed.PubMedLoader¶ class langchain_community.document_loaders.pubmed.PubMedLoader(query: str, load_max_docs: Optional[int] = 3)[source]¶ Load from the PubMed biomedical library. query¶ The query to be passed to the PubMed API. load_max_docs¶ The maximum number of documents to load...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pubmed.PubMedLoader.html
d8402d201194-0
langchain_community.document_loaders.quip.QuipLoader¶ class langchain_community.document_loaders.quip.QuipLoader(api_url: str, access_token: str, request_timeout: Optional[int] = 60)[source]¶ Load Quip pages. Port of https://github.com/quip/quip-api/tree/master/samples/baqup Parameters api_url – https://platform.quip.c...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.quip.QuipLoader.html
d8402d201194-1
Process a list of thread into a list of documents. __init__(api_url: str, access_token: str, request_timeout: Optional[int] = 60)[source]¶ Parameters api_url – https://platform.quip.com access_token – token of access quip API. Please refer: https – //quip.com/dev/automation/documentation/current#section/Authentication/...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.quip.QuipLoader.html
d8402d201194-2
Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. process_thread(thread_id: str, include_images: bool, include_messages: bool) → Optional[Document][source]¶ process_thread_images(tree: ElementTree) → str[source]¶ process_thread_messages(thread_id: str) → str[source]¶ process_threads(thread_ids: Seq...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.quip.QuipLoader.html
f07840b06b5d-0
langchain_community.document_loaders.parsers.html.bs4.BS4HTMLParser¶ class langchain_community.document_loaders.parsers.html.bs4.BS4HTMLParser(*, features: str = 'lxml', get_text_separator: str = '', **kwargs: Any)[source]¶ Pparse HTML files using Beautiful Soup. Initialize a bs4 based HTML parser. Methods __init__(*[,...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.html.bs4.BS4HTMLParser.html
32925edaadf6-0
langchain_community.document_loaders.parsers.audio.OpenAIWhisperParserLocal¶ class langchain_community.document_loaders.parsers.audio.OpenAIWhisperParserLocal(device: str = '0', lang_model: Optional[str] = None, forced_decoder_ids: Optional[Tuple[Dict]] = None)[source]¶ Transcribe and parse audio files with OpenAI Whis...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.audio.OpenAIWhisperParserLocal.html
32925edaadf6-1
Initialize the parser. Parameters device – device to use. lang_model – whisper model to use, for example “openai/whisper-medium”. Defaults to None. forced_decoder_ids – id states for decoder in a multilanguage model. Defaults to None. lazy_parse(blob: Blob) → Iterator[Document][source]¶ Lazily parse the blob. parse(blo...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.audio.OpenAIWhisperParserLocal.html
aefa6ae925ba-0
langchain_community.document_loaders.lakefs.LakeFSLoader¶ class langchain_community.document_loaders.lakefs.LakeFSLoader(lakefs_access_key: str, lakefs_secret_key: str, lakefs_endpoint: str, repo: Optional[str] = None, ref: Optional[str] = 'main', path: Optional[str] = '')[source]¶ Load from lakeFS. Parameters lakefs_a...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.lakefs.LakeFSLoader.html
aefa6ae925ba-1
ex: https://example.my-lakefs.com repo – [optional, default = ‘’] target repository ref – [optional, default = ‘main’] target ref (branch name, tag, or commit ID) path – [optional, default = ‘’] target path lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load data into Do...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.lakefs.LakeFSLoader.html
109467b71906-0
langchain_community.document_loaders.base_o365.fetch_mime_types¶ langchain_community.document_loaders.base_o365.fetch_mime_types(file_types: Sequence[_FileType]) → Dict[str, str][source]¶ Fetch the mime types for the specified file types.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.base_o365.fetch_mime_types.html
f0d36c0feee1-0
langchain_community.document_loaders.parsers.generic.MimeTypeBasedParser¶ class langchain_community.document_loaders.parsers.generic.MimeTypeBasedParser(handlers: Mapping[str, BaseBlobParser], *, fallback_parser: Optional[BaseBlobParser] = None)[source]¶ Parser that uses mime-types to parse a blob. This parser is usefu...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.generic.MimeTypeBasedParser.html
f0d36c0feee1-1
and return a document. fallback_parser – A fallback_parser parser to use if the mime-type is not found in the handlers. If provided, this parser will be used to parse blobs with all mime-types not found in the handlers. If not provided, a ValueError will be raised if the mime-type is not found in the handlers. lazy_par...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.generic.MimeTypeBasedParser.html
256009be336f-0
langchain_community.document_loaders.conllu.CoNLLULoader¶ class langchain_community.document_loaders.conllu.CoNLLULoader(file_path: str)[source]¶ Load CoNLL-U files. Initialize with a file path. Methods __init__(file_path) Initialize with a file path. lazy_load() A lazy loader for Documents. load() Load from a file pat...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.conllu.CoNLLULoader.html
09eb8b2fe856-0
langchain_community.document_loaders.email.OutlookMessageLoader¶ class langchain_community.document_loaders.email.OutlookMessageLoader(file_path: str)[source]¶ Loads Outlook Message files using extract_msg. https://github.com/TeamMsgExtractor/msg-extractor Initialize with a file path. Parameters file_path – The path to...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.email.OutlookMessageLoader.html
99b21f36494b-0
langchain_community.document_loaders.parsers.txt.TextParser¶ class langchain_community.document_loaders.parsers.txt.TextParser[source]¶ Parser for text blobs. Methods __init__() lazy_parse(blob) Lazily parse the blob. parse(blob) Eagerly parse the blob into a document or documents. __init__()¶ lazy_parse(blob: Blob) → ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.txt.TextParser.html
a769e1a8f56e-0
langchain_community.document_loaders.rss.RSSFeedLoader¶ class langchain_community.document_loaders.rss.RSSFeedLoader(urls: Optional[Sequence[str]] = None, opml: Optional[str] = None, continue_on_failure: bool = True, show_progress_bar: bool = False, **newsloader_kwargs: Any)[source]¶ Load news articles from RSS feeds u...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rss.RSSFeedLoader.html
a769e1a8f56e-1
Initialize with urls or OPML. lazy_load() A lazy loader for Documents. load() Load data into Document objects. load_and_split([text_splitter]) Load Documents and split into chunks. __init__(urls: Optional[Sequence[str]] = None, opml: Optional[str] = None, continue_on_failure: bool = True, show_progress_bar: bool = Fals...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rss.RSSFeedLoader.html
f5d16121c22f-0
langchain_community.document_loaders.unstructured.get_elements_from_api¶ langchain_community.document_loaders.unstructured.get_elements_from_api(file_path: Optional[Union[str, List[str]]] = None, file: Optional[Union[IO, Sequence[IO]]] = None, api_url: str = 'https://api.unstructured.io/general/v0/general', api_key: st...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.get_elements_from_api.html
84a71b2f119a-0
langchain_community.document_loaders.airbyte.AirbyteShopifyLoader¶ class langchain_community.document_loaders.airbyte.AirbyteShopifyLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Shopify using...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteShopifyLoader.html
84a71b2f119a-1
load() → List[Document]¶ Load data into Document objects. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacter...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteShopifyLoader.html
a4b8a6340cc8-0
langchain_community.document_loaders.reddit.RedditPostsLoader¶ class langchain_community.document_loaders.reddit.RedditPostsLoader(client_id: str, client_secret: str, user_agent: str, search_queries: Sequence[str], mode: str, categories: Sequence[str] = ['new'], number_posts: Optional[int] = 10)[source]¶ Load Reddit po...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.reddit.RedditPostsLoader.html
a4b8a6340cc8-1
user_agent – Reddit user agent. search_queries – The search queries. mode – The mode. categories – The categories. Default: [“new”] number_posts – The number of posts. Default: 10 lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load reddits. load_and_split(text_splitter: ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.reddit.RedditPostsLoader.html
9c48df98e9da-0
langchain_community.document_loaders.ifixit.IFixitLoader¶ class langchain_community.document_loaders.ifixit.IFixitLoader(web_path: str)[source]¶ Load iFixit repair guides, device wikis and answers. iFixit is the largest, open repair community on the web. The site contains nearly 100k repair manuals, 200k Questions & An...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.ifixit.IFixitLoader.html
9c48df98e9da-1
Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. load_device(url_override: Optional[str] = None, include_guides: bool = True) → List[Document][source]¶ Loads a device Parameters url_override – A URL to override the default URL. include_guides – Whether to include guides linked to from the device. ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.ifixit.IFixitLoader.html
b0b400d50f45-0
langchain_community.document_loaders.browserless.BrowserlessLoader¶ class langchain_community.document_loaders.browserless.BrowserlessLoader(api_token: str, urls: Union[str, List[str]], text_content: bool = True)[source]¶ Load webpages with Browserless /content endpoint. Initialize with API token and the URLs to scrape...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.browserless.BrowserlessLoader.html
2c921ef09d60-0
langchain_community.document_loaders.srt.SRTLoader¶ class langchain_community.document_loaders.srt.SRTLoader(file_path: str)[source]¶ Load .srt (subtitle) files. Initialize with a file path. Methods __init__(file_path) Initialize with a file path. lazy_load() A lazy loader for Documents. load() Load using pysrt file. l...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.srt.SRTLoader.html
f0ef877f59b4-0
langchain_community.document_loaders.parsers.pdf.DocumentIntelligenceParser¶ class langchain_community.document_loaders.parsers.pdf.DocumentIntelligenceParser(client: Any, model: str)[source]¶ Loads a PDF with Azure Document Intelligence (formerly Forms Recognizer) and chunks at character level. Methods __init__(client...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.pdf.DocumentIntelligenceParser.html
fba42438250b-0
langchain_community.document_loaders.merge.MergedDataLoader¶ class langchain_community.document_loaders.merge.MergedDataLoader(loaders: List)[source]¶ Merge documents from a list of loaders Initialize with a list of loaders Methods __init__(loaders) Initialize with a list of loaders lazy_load() Lazy load docs from each...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.merge.MergedDataLoader.html
12a0d5d08a6f-0
langchain_community.document_loaders.iugu.IuguLoader¶ class langchain_community.document_loaders.iugu.IuguLoader(resource: str, api_token: Optional[str] = None)[source]¶ Load from IUGU. Initialize the IUGU resource. Parameters resource – The name of the resource to fetch. api_token – The IUGU API token to use. Methods ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.iugu.IuguLoader.html
0585763d4083-0
langchain_community.document_loaders.datadog_logs.DatadogLogsLoader¶ class langchain_community.document_loaders.datadog_logs.DatadogLogsLoader(query: str, api_key: str, app_key: str, from_time: Optional[int] = None, to_time: Optional[int] = None, limit: int = 100)[source]¶ Load Datadog logs. Logs are written into the p...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.datadog_logs.DatadogLogsLoader.html
0585763d4083-1
Initialize Datadog document loader. Requirements: Must have datadog_api_client installed. Install with pip install datadog_api_client. Parameters query – The query to run in Datadog. api_key – The Datadog API key. app_key – The Datadog APP key. from_time – Optional. The start of the time range to query. Supports date m...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.datadog_logs.DatadogLogsLoader.html
68f716103841-0
langchain_community.document_loaders.polars_dataframe.PolarsDataFrameLoader¶ class langchain_community.document_loaders.polars_dataframe.PolarsDataFrameLoader(data_frame: Any, *, page_content_column: str = 'text')[source]¶ Load Polars DataFrame. Initialize with dataframe object. Parameters data_frame – Polars DataFrame...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.polars_dataframe.PolarsDataFrameLoader.html
bc7e6a4be60f-0
langchain_community.document_loaders.python.PythonLoader¶ class langchain_community.document_loaders.python.PythonLoader(file_path: str)[source]¶ Load Python files, respecting any non-default encoding if specified. Initialize with a file path. Parameters file_path – The path to the file to load. Methods __init__(file_p...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.python.PythonLoader.html
95f285feeedd-0
langchain_community.document_loaders.twitter.TwitterTweetLoader¶ class langchain_community.document_loaders.twitter.TwitterTweetLoader(auth_handler: Union[OAuthHandler, OAuth2BearerHandler], twitter_users: Sequence[str], number_tweets: Optional[int] = 100)[source]¶ Load Twitter tweets. Read tweets of the user’s Twitter...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.twitter.TwitterTweetLoader.html
95f285feeedd-1
load() → List[Document][source]¶ Load tweets. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.twitter.TwitterTweetLoader.html
f26433dee841-0
langchain_community.document_loaders.unstructured.satisfies_min_unstructured_version¶ langchain_community.document_loaders.unstructured.satisfies_min_unstructured_version(min_version: str) → bool[source]¶ Check if the installed Unstructured version exceeds the minimum version for the feature in question.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.satisfies_min_unstructured_version.html
0b4f49988864-0
langchain_community.document_loaders.trello.TrelloLoader¶ class langchain_community.document_loaders.trello.TrelloLoader(client: TrelloClient, board_name: str, *, include_card_name: bool = True, include_comments: bool = True, include_checklist: bool = True, card_filter: Literal['closed', 'open', 'all'] = 'all', extra_m...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.trello.TrelloLoader.html
0b4f49988864-1
load_and_split([text_splitter]) Load Documents and split into chunks. __init__(client: TrelloClient, board_name: str, *, include_card_name: bool = True, include_comments: bool = True, include_checklist: bool = True, card_filter: Literal['closed', 'open', 'all'] = 'all', extra_metadata: Tuple[str, ...] = ('due_date', 'l...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.trello.TrelloLoader.html
0b4f49988864-2
include_checklist – Whether to include the checklist on the card in the document. card_filter – Filter on card status. Valid values are “closed”, “open”, “all”. extra_metadata – List of additional metadata fields to include as document metadata.Valid values are “due_date”, “labels”, “list”, “closed”. lazy_load() → Iter...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.trello.TrelloLoader.html
46bc33d0108b-0
langchain_community.document_loaders.parsers.docai.DocAIParsingResults¶ class langchain_community.document_loaders.parsers.docai.DocAIParsingResults(source_path: str, parsed_path: str)[source]¶ A dataclass to store Document AI parsing results. Attributes source_path parsed_path Methods __init__(source_path, parsed_path...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.docai.DocAIParsingResults.html
0b5991d05a17-0
langchain_community.document_loaders.brave_search.BraveSearchLoader¶ class langchain_community.document_loaders.brave_search.BraveSearchLoader(query: str, api_key: str, search_kwargs: Optional[dict] = None)[source]¶ Load with Brave Search engine. Initializes the BraveLoader. Parameters query – The query to search for. ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.brave_search.BraveSearchLoader.html
cf052e700800-0
langchain_community.document_loaders.arcgis_loader.ArcGISLoader¶ class langchain_community.document_loaders.arcgis_loader.ArcGISLoader(layer: Union[str, arcgis.features.FeatureLayer], gis: Optional[arcgis.gis.GIS] = None, where: str = '1=1', out_fields: Optional[Union[List[str], str]] = None, return_geometry: bool = Fa...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.arcgis_loader.ArcGISLoader.html
94018acaaad3-0
langchain_community.document_loaders.assemblyai.TranscriptFormat¶ class langchain_community.document_loaders.assemblyai.TranscriptFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶ Transcript format to use for the document loader. TEXT = 'text'¶ One document with the tr...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.assemblyai.TranscriptFormat.html
6519fc27542e-0
langchain_community.document_loaders.concurrent.ConcurrentLoader¶ class langchain_community.document_loaders.concurrent.ConcurrentLoader(blob_loader: BlobLoader, blob_parser: BaseBlobParser, num_workers: int = 4)[source]¶ Load and pars Documents concurrently. A generic document loader. Parameters blob_loader – A blob l...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.concurrent.ConcurrentLoader.html
6519fc27542e-1
glob – The glob pattern to use to find documents. suffixes – The suffixes to use to filter documents. If None, all files matching the glob will be loaded. exclude – A list of patterns to exclude from the loader. show_progress – Whether to show a progress bar or not (requires tqdm). Proxies to the file system loader. pa...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.concurrent.ConcurrentLoader.html
962752d01f2f-0
langchain_community.document_loaders.fauna.FaunaLoader¶ class langchain_community.document_loaders.fauna.FaunaLoader(query: str, page_content_field: str, secret: str, metadata_fields: Optional[Sequence[str]] = None)[source]¶ Load from FaunaDB. query¶ The FQL query string to execute. Type str page_content_field¶ The fie...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.fauna.FaunaLoader.html
1e1e160b4621-0
langchain_community.document_loaders.larksuite.LarkSuiteDocLoader¶ class langchain_community.document_loaders.larksuite.LarkSuiteDocLoader(domain: str, access_token: str, document_id: str)[source]¶ Load from LarkSuite (FeiShu). Initialize with domain, access_token (tenant / user), and document_id. Parameters domain – T...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.larksuite.LarkSuiteDocLoader.html
1e1e160b4621-1
Returns List of Documents. Examples using LarkSuiteDocLoader¶ LarkSuite (FeiShu)
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.larksuite.LarkSuiteDocLoader.html
58db4bd1a5d5-0
langchain_community.document_loaders.couchbase.CouchbaseLoader¶ class langchain_community.document_loaders.couchbase.CouchbaseLoader(connection_string: str, db_username: str, db_password: str, query: str, *, page_content_fields: Optional[List[str]] = None, metadata_fields: Optional[List[str]] = None)[source]¶ Load docu...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.couchbase.CouchbaseLoader.html
58db4bd1a5d5-1
Initialize Couchbase document loader. Parameters connection_string (str) – The connection string to the Couchbase cluster. db_username (str) – The username to connect to the Couchbase cluster. db_password (str) – The password to connect to the Couchbase cluster. query (str) – The SQL++ query to execute. page_content_fi...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.couchbase.CouchbaseLoader.html
74e88daa5910-0
langchain_community.document_loaders.rtf.UnstructuredRTFLoader¶ class langchain_community.document_loaders.rtf.UnstructuredRTFLoader(file_path: str, mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load RTF files using Unstructured. You can run the loader in one of two modes: “single” and “elements”. If you u...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rtf.UnstructuredRTFLoader.html
74e88daa5910-1
Defaults to “single”. **unstructured_kwargs – Additional keyword arguments to pass to unstructured. lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document]¶ Load file. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chun...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rtf.UnstructuredRTFLoader.html
35426b293b37-0
langchain_community.document_loaders.pdf.PyPDFium2Loader¶ class langchain_community.document_loaders.pdf.PyPDFium2Loader(file_path: str, *, headers: Optional[Dict] = None, extract_images: bool = False)[source]¶ Load PDF using pypdfium2 and chunks at character level. Initialize with a file path. Attributes source Method...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.PyPDFium2Loader.html
01d5d36f2e2f-0
langchain_community.document_loaders.directory.DirectoryLoader¶ class langchain_community.document_loaders.directory.DirectoryLoader(path: str, glob: str = '**/[!.]*', silent_errors: bool = False, load_hidden: bool = False, loader_cls: ~typing.Union[~typing.Type[~langchain_community.document_loaders.unstructured.Unstru...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.directory.DirectoryLoader.html
01d5d36f2e2f-1
sample_size – The maximum number of files you would like to load from the directory. randomize_sample – Suffle the files to get a random sample. sample_seed – set the seed of the random shuffle for reporoducibility. Methods __init__(path[, glob, silent_errors, ...]) Initialize with a path to directory and how to glob o...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.directory.DirectoryLoader.html
01d5d36f2e2f-2
load_hidden – Whether to load hidden files. Defaults to False. loader_cls – Loader class to use for loading files. Defaults to UnstructuredFileLoader. loader_kwargs – Keyword arguments to pass to loader_cls. Defaults to None. recursive – Whether to recursively search for files. Defaults to False. show_progress – Whethe...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.directory.DirectoryLoader.html
348345823d96-0
langchain_community.document_loaders.rspace.RSpaceLoader¶ class langchain_community.document_loaders.rspace.RSpaceLoader(global_id: str, api_key: Optional[str] = None, url: Optional[str] = None)[source]¶ Loads content from RSpace notebooks, folders, documents or PDF Gallery files into Langchain documents. Maps RSpace...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rspace.RSpaceLoader.html
348345823d96-1
Load Documents and split into chunks. validate_environment(values) Validate that API key and URL exists in environment. __init__(global_id: str, api_key: Optional[str] = None, url: Optional[str] = None)[source]¶ api_key: RSpace API key - can also be supplied as environment variable ‘RSPACE_API_KEY’ url: str The URL of ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rspace.RSpaceLoader.html
cc920de56341-0
langchain_community.document_loaders.obsidian.ObsidianLoader¶ class langchain_community.document_loaders.obsidian.ObsidianLoader(path: str, encoding: str = 'UTF-8', collect_metadata: bool = True)[source]¶ Load Obsidian files from directory. Initialize with a path. Parameters path – Path to the directory containing the ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.obsidian.ObsidianLoader.html
0a7e51e35fd7-0
langchain_community.document_loaders.excel.UnstructuredExcelLoader¶ class langchain_community.document_loaders.excel.UnstructuredExcelLoader(file_path: str, mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load Microsoft Excel files using Unstructured. Like other Unstructured loaders, UnstructuredExcelLoader ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.excel.UnstructuredExcelLoader.html
0a7e51e35fd7-1
**unstructured_kwargs – Keyword arguments to pass to unstructured. lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document]¶ Load file. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Par...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.excel.UnstructuredExcelLoader.html
c5e38c098c49-0
langchain_community.document_loaders.generic.GenericLoader¶ class langchain_community.document_loaders.generic.GenericLoader(blob_loader: BlobLoader, blob_parser: BaseBlobParser)[source]¶ Generic Document Loader. A generic document loader that allows combining an arbitrary blob loader with a blob parser. Examples Parse...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.generic.GenericLoader.html
c5e38c098c49-1
glob="**/*.pdf", parser=PyPDFParser() ) A generic document loader. Parameters blob_loader – A blob loader which knows how to yield blobs blob_parser – A blob parser which knows how to parse blobs into documents Methods __init__(blob_loader, blob_parser) A generic document loader. from_filesystem(path, *[, glob, exc...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.generic.GenericLoader.html
c5e38c098c49-2
matching the glob will be loaded. exclude – A list of patterns to exclude from the loader. show_progress – Whether to show a progress bar or not (requires tqdm). Proxies to the file system loader. parser – A blob parser which knows how to parse blobs into documents, will instantiate a default parser if not provided. Th...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.generic.GenericLoader.html
ec2fc1026b99-0
langchain_community.document_loaders.obs_directory.OBSDirectoryLoader¶ class langchain_community.document_loaders.obs_directory.OBSDirectoryLoader(bucket: str, endpoint: str, config: Optional[dict] = None, prefix: str = '')[source]¶ Load from Huawei OBS directory. Initialize the OBSDirectoryLoader with the specified se...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.obs_directory.OBSDirectoryLoader.html
ec2fc1026b99-1
Methods __init__(bucket, endpoint[, config, prefix]) Initialize the OBSDirectoryLoader with the specified settings. lazy_load() A lazy loader for Documents. load() Load documents. load_and_split([text_splitter]) Load Documents and split into chunks. __init__(bucket: str, endpoint: str, config: Optional[dict] = None, pr...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.obs_directory.OBSDirectoryLoader.html
ec2fc1026b99-2
``` config = { “ak”: “your-access-key”, “sk”: “your-secret-key” directory_loader = OBSDirectoryLoader(“your-bucket-name”, “your-end-endpoint”, config, “your-prefix”) lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load documents. load_and_split(text_splitter: Optional[Tex...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.obs_directory.OBSDirectoryLoader.html
553a18eb93f8-0
langchain_community.document_loaders.rocksetdb.ColumnNotFoundError¶ class langchain_community.document_loaders.rocksetdb.ColumnNotFoundError(missing_key: str, query: str)[source]¶ Column not found error.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.rocksetdb.ColumnNotFoundError.html
78f1bfc063a2-0
langchain_community.document_loaders.airbyte.AirbyteHubspotLoader¶ class langchain_community.document_loaders.airbyte.AirbyteHubspotLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Hubspot using...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteHubspotLoader.html
78f1bfc063a2-1
load() → List[Document]¶ Load data into Document objects. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacter...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteHubspotLoader.html
9ab88e27e483-0
langchain_community.document_loaders.parsers.pdf.PyPDFParser¶ class langchain_community.document_loaders.parsers.pdf.PyPDFParser(password: Optional[Union[str, bytes]] = None, extract_images: bool = False)[source]¶ Load PDF using pypdf Methods __init__([password, extract_images]) lazy_parse(blob) Lazily parse the blob. ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.pdf.PyPDFParser.html
19515b89b281-0
langchain_community.document_loaders.youtube.YoutubeLoader¶ class langchain_community.document_loaders.youtube.YoutubeLoader(video_id: str, add_video_info: bool = False, language: Union[str, Sequence[str]] = 'en', translation: Optional[str] = None, continue_on_failure: bool = False)[source]¶ Load YouTube transcripts. I...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.youtube.YoutubeLoader.html
19515b89b281-1
Returns List of Documents. Examples using YoutubeLoader¶ YouTube YouTube transcripts
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.youtube.YoutubeLoader.html
9b22ed0d1923-0
langchain_community.document_loaders.base.BaseLoader¶ class langchain_community.document_loaders.base.BaseLoader[source]¶ Interface for Document Loader. Implementations should implement the lazy-loading method using generators to avoid loading all Documents into memory at once. The load method will remain as is for bac...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.base.BaseLoader.html
4b952b26d44f-0
langchain_community.document_loaders.diffbot.DiffbotLoader¶ class langchain_community.document_loaders.diffbot.DiffbotLoader(api_token: str, urls: List[str], continue_on_failure: bool = True)[source]¶ Load Diffbot json file. Initialize with API token, ids, and key. Parameters api_token – Diffbot API token. urls – List ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.diffbot.DiffbotLoader.html
2f2d95b40950-0
langchain_community.document_loaders.facebook_chat.concatenate_rows¶ langchain_community.document_loaders.facebook_chat.concatenate_rows(row: dict) → str[source]¶ Combine message information in a readable format ready to be used. Parameters row – dictionary containing message information.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.facebook_chat.concatenate_rows.html
eac3b5ee8b36-0
langchain_community.document_loaders.joplin.JoplinLoader¶ class langchain_community.document_loaders.joplin.JoplinLoader(access_token: Optional[str] = None, port: int = 41184, host: str = 'localhost')[source]¶ Load notes from Joplin. In order to use this loader, you need to have Joplin running with the Web Clipper enab...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.joplin.JoplinLoader.html
eac3b5ee8b36-1
load() → List[Document][source]¶ Load data into Document objects. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveC...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.joplin.JoplinLoader.html
53586f18840e-0
langchain_community.document_loaders.html_bs.BSHTMLLoader¶ class langchain_community.document_loaders.html_bs.BSHTMLLoader(file_path: str, open_encoding: Optional[str] = None, bs_kwargs: Optional[dict] = None, get_text_separator: str = '')[source]¶ Load HTML files and parse them with beautiful soup. Initialise with pat...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.html_bs.BSHTMLLoader.html