id
stringlengths
14
15
text
stringlengths
13
2.7k
source
stringlengths
60
181
53586f18840e-1
load() → List[Document][source]¶ Load HTML document 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 R...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.html_bs.BSHTMLLoader.html
ee3893d9809f-0
langchain_community.document_loaders.url.UnstructuredURLLoader¶ class langchain_community.document_loaders.url.UnstructuredURLLoader(urls: List[str], continue_on_failure: bool = True, mode: str = 'single', show_progress_bar: bool = False, **unstructured_kwargs: Any)[source]¶ Load files from remote URLs using Unstructur...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.url.UnstructuredURLLoader.html
ee3893d9809f-1
A lazy loader for Documents. load() → List[Document][source]¶ 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 Rec...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.url.UnstructuredURLLoader.html
51bcc0ea962e-0
langchain_community.document_loaders.blockchain.BlockchainType¶ class langchain_community.document_loaders.blockchain.BlockchainType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶ Enumerator of the supported blockchains. ETH_MAINNET = 'eth-mainnet'¶ ETH_GOERLI = 'eth-goerl...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.blockchain.BlockchainType.html
15811a46925f-0
langchain_community.document_loaders.base.BaseBlobParser¶ class langchain_community.document_loaders.base.BaseBlobParser[source]¶ Abstract interface for blob parsers. A blob parser provides a way to parse raw data stored in a blob into one or more documents. The parser can be composed with blob loaders, making it easy ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.base.BaseBlobParser.html
5b6cdebc8c1d-0
langchain_community.document_loaders.acreom.AcreomLoader¶ class langchain_community.document_loaders.acreom.AcreomLoader(path: str, encoding: str = 'UTF-8', collect_metadata: bool = True)[source]¶ Load acreom vault from a directory. Initialize the loader. Attributes FRONT_MATTER_REGEX Regex to match front matter metada...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.acreom.AcreomLoader.html
fb7ab55d904c-0
langchain_community.document_loaders.parsers.registry.get_parser¶ langchain_community.document_loaders.parsers.registry.get_parser(parser_name: str) → BaseBlobParser[source]¶ Get a parser by parser name.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.registry.get_parser.html
a4195d136830-0
langchain_community.document_loaders.onenote.OneNoteLoader¶ class langchain_community.document_loaders.onenote.OneNoteLoader[source]¶ Bases: BaseLoader, BaseModel Load pages from OneNote notebooks. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data c...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.onenote.OneNoteLoader.html
a4195d136830-1
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶ Duplicate a model, optionally...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.onenote.OneNoteLoader.html
a4195d136830-2
classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_n...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.onenote.OneNoteLoader.html
a4195d136830-3
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmet...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.onenote.OneNoteLoader.html
99af64e3083d-0
langchain_community.document_loaders.airbyte.AirbyteGongLoader¶ class langchain_community.document_loaders.airbyte.AirbyteGongLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Gong using an Airby...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteGongLoader.html
99af64e3083d-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.AirbyteGongLoader.html
c8a633d96fc8-0
langchain_community.document_loaders.parsers.docai.DocAIParser¶ class langchain_community.document_loaders.parsers.docai.DocAIParser(*, client: Optional[DocumentProcessorServiceClient] = None, location: Optional[str] = None, gcs_output_path: Optional[str] = None, processor_name: Optional[str] = None)[source]¶ Google Cl...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.docai.DocAIParser.html
c8a633d96fc8-1
Eagerly parse the blob into a document or documents. parse_from_results(results) __init__(*, client: Optional[DocumentProcessorServiceClient] = None, location: Optional[str] = None, gcs_output_path: Optional[str] = None, processor_name: Optional[str] = None)[source]¶ Initializes the parser. Parameters client – a Docume...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.docai.DocAIParser.html
c8a633d96fc8-2
>>> results = parser.get_results(operations) >>> docs = parser.parse_from_results(results) docai_parse(blobs: Sequence[Blob], *, gcs_output_path: Optional[str] = None, processor_name: Optional[str] = None, batch_size: int = 1000, enable_native_pdf_parsing: bool = True, field_mask: Optional[str] = None) → List[Operation...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.docai.DocAIParser.html
c8a633d96fc8-3
Parses a blob lazily using online processing. Parameters blob – a blob to parse. enable_native_pdf_parsing – enable pdf embedded text extraction field_mask – a comma-separated list of which fields to include in the Document AI response. suggested: “text,pages.pageNumber,pages.layout” page_range – list of page numbers t...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.docai.DocAIParser.html
27dee8c758db-0
langchain_community.document_loaders.epub.UnstructuredEPubLoader¶ class langchain_community.document_loaders.epub.UnstructuredEPubLoader(file_path: Union[str, List[str]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load EPub files using Unstructured. You can run the loader in one of two modes: “single” a...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.epub.UnstructuredEPubLoader.html
27dee8c758db-1
Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. Examples using UnstructuredEPubLoader¶ EPub
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.epub.UnstructuredEPubLoader.html
c19af2bcd3b4-0
langchain_community.document_loaders.unstructured.UnstructuredAPIFileIOLoader¶ class langchain_community.document_loaders.unstructured.UnstructuredAPIFileIOLoader(file: Union[IO, Sequence[IO]], mode: str = 'single', url: str = 'https://api.unstructured.io/general/v0/general', api_key: str = '', **unstructured_kwargs: A...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredAPIFileIOLoader.html
c19af2bcd3b4-1
Initialize with file path. lazy_load() A lazy loader for Documents. load() Load file. load_and_split([text_splitter]) Load Documents and split into chunks. __init__(file: Union[IO, Sequence[IO]], mode: str = 'single', url: str = 'https://api.unstructured.io/general/v0/general', api_key: str = '', **unstructured_kwargs:...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredAPIFileIOLoader.html
81e50d01641f-0
langchain_community.document_loaders.image_captions.ImageCaptionLoader¶ class langchain_community.document_loaders.image_captions.ImageCaptionLoader(images: Union[str, bytes, List[Union[str, bytes]]], blip_processor: str = 'Salesforce/blip-image-captioning-base', blip_model: str = 'Salesforce/blip-image-captioning-base...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.image_captions.ImageCaptionLoader.html
81e50d01641f-1
blip_model – The name of the pre-trained BLIP model. lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load() → List[Document][source]¶ Load from a list of image data or file paths load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks ar...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.image_captions.ImageCaptionLoader.html
10dd26098789-0
langchain_community.document_loaders.airbyte.AirbyteZendeskSupportLoader¶ class langchain_community.document_loaders.airbyte.AirbyteZendeskSupportLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteZendeskSupportLoader.html
10dd26098789-1
A lazy loader for Documents. 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. D...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteZendeskSupportLoader.html
0139c0307977-0
langchain_community.document_loaders.etherscan.EtherscanLoader¶ class langchain_community.document_loaders.etherscan.EtherscanLoader(account_address: str, api_key: str = 'docs-demo', filter: str = 'normal_transaction', page: int = 1, offset: int = 10, start_block: int = 0, end_block: int = 99999999, sort: str = 'desc')...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.etherscan.EtherscanLoader.html
0139c0307977-1
lazy_load() → Iterator[Document][source]¶ Lazy load Documents from table. load() → List[Document][source]¶ Load transactions from spcifc account by Etherscan. load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶ Load Documents and split into chunks. Chunks are returned as Documents. Parameters...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.etherscan.EtherscanLoader.html
b4f5d0355f50-0
langchain_community.document_loaders.snowflake_loader.SnowflakeLoader¶ class langchain_community.document_loaders.snowflake_loader.SnowflakeLoader(query: str, user: str, password: str, account: str, warehouse: str, role: str, database: str, schema: str, parameters: Optional[Dict[str, Any]] = None, page_content_columns:...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.snowflake_loader.SnowflakeLoader.html
b4f5d0355f50-1
load_and_split([text_splitter]) Load Documents and split into chunks. __init__(query: str, user: str, password: str, account: str, warehouse: str, role: str, database: str, schema: str, parameters: Optional[Dict[str, Any]] = None, page_content_columns: Optional[List[str]] = None, metadata_columns: Optional[List[str]] =...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.snowflake_loader.SnowflakeLoader.html
1a5c8e31a2de-0
langchain_community.document_loaders.web_base.WebBaseLoader¶ class langchain_community.document_loaders.web_base.WebBaseLoader(web_path: Union[str, Sequence[str]] = '', header_template: Optional[dict] = None, verify_ssl: bool = True, proxies: Optional[dict] = None, continue_on_failure: bool = False, autoset_encoding: b...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.web_base.WebBaseLoader.html
1a5c8e31a2de-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.web_base.WebBaseLoader.html
1a5c8e31a2de-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[source]¶ Scrape data from webpage and return it in Be...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.web_base.WebBaseLoader.html
38b92aeb7cc4-0
langchain_community.document_loaders.evernote.EverNoteLoader¶ class langchain_community.document_loaders.evernote.EverNoteLoader(file_path: str, load_single_document: bool = True)[source]¶ Load from EverNote. Loads an EverNote notebook export file e.g. my_notebook.enex into Documents. Instructions on producing this fil...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.evernote.EverNoteLoader.html
38b92aeb7cc4-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 EverNoteLoader¶ EverNote
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.evernote.EverNoteLoader.html
5b5eae583eec-0
langchain_community.document_loaders.open_city_data.OpenCityDataLoader¶ class langchain_community.document_loaders.open_city_data.OpenCityDataLoader(city_id: str, dataset_id: str, limit: int)[source]¶ Load from Open City. Initialize with dataset_id. Example: https://dev.socrata.com/foundry/data.sfgov.org/vw6y-z8j6 e.g....
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.open_city_data.OpenCityDataLoader.html
5b5eae583eec-1
Parameters text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. Examples using OpenCityDataLoader¶ Geopandas Open City Data
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.open_city_data.OpenCityDataLoader.html
7f2d7b7bccbd-0
langchain_community.document_loaders.xorbits.XorbitsLoader¶ class langchain_community.document_loaders.xorbits.XorbitsLoader(data_frame: Any, page_content_column: str = 'text')[source]¶ Load Xorbits DataFrame. Initialize with dataframe object. Requirements:Must have xorbits installed. You can install with pip install x...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.xorbits.XorbitsLoader.html
8f8dfb15d2cd-0
langchain_community.document_loaders.baiducloud_bos_file.BaiduBOSFileLoader¶ class langchain_community.document_loaders.baiducloud_bos_file.BaiduBOSFileLoader(conf: Any, bucket: str, key: str)[source]¶ Load from Baidu Cloud BOS file. Initialize with BOS config, bucket and key name. :param conf(BceClientConfiguration): ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.baiducloud_bos_file.BaiduBOSFileLoader.html
5e4c2eb2a4bd-0
langchain_community.document_loaders.pdf.AmazonTextractPDFLoader¶ class langchain_community.document_loaders.pdf.AmazonTextractPDFLoader(file_path: str, textract_features: Optional[Sequence[str]] = None, client: Optional[Any] = None, credentials_profile_name: Optional[str] = None, region_name: Optional[str] = None, end...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.AmazonTextractPDFLoader.html
5e4c2eb2a4bd-1
load_and_split([text_splitter]) Load Documents and split into chunks. __init__(file_path: str, textract_features: Optional[Sequence[str]] = None, client: Optional[Any] = None, credentials_profile_name: Optional[str] = None, region_name: Optional[str] = None, endpoint_url: Optional[str] = None, headers: Optional[Dict] =...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.AmazonTextractPDFLoader.html
fb9d7e38d3f4-0
langchain_community.document_loaders.roam.RoamLoader¶ class langchain_community.document_loaders.roam.RoamLoader(path: str)[source]¶ Load Roam files from a directory. Initialize with a path. Methods __init__(path) Initialize with a path. lazy_load() A lazy loader for Documents. load() Load documents. load_and_split([te...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.roam.RoamLoader.html
da192dbd5b6c-0
langchain_community.document_loaders.parsers.language.javascript.JavaScriptSegmenter¶ class langchain_community.document_loaders.parsers.language.javascript.JavaScriptSegmenter(code: str)[source]¶ Code segmenter for JavaScript. Methods __init__(code) extract_functions_classes() is_valid() simplify_code() __init__(code:...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.language.javascript.JavaScriptSegmenter.html
bc914848676a-0
langchain_community.document_loaders.parsers.pdf.PDFPlumberParser¶ class langchain_community.document_loaders.parsers.pdf.PDFPlumberParser(text_kwargs: Optional[Mapping[str, Any]] = None, dedupe: bool = False, extract_images: bool = False)[source]¶ Parse PDF with PDFPlumber. Initialize the parser. Parameters text_kwarg...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.pdf.PDFPlumberParser.html
677c6339c002-0
langchain_community.document_loaders.baiducloud_bos_directory.BaiduBOSDirectoryLoader¶ class langchain_community.document_loaders.baiducloud_bos_directory.BaiduBOSDirectoryLoader(conf: Any, bucket: str, prefix: str = '')[source]¶ Load from Baidu BOS directory. Initialize with BOS config, bucket and prefix. :param conf(...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.baiducloud_bos_directory.BaiduBOSDirectoryLoader.html
e18a89f77764-0
langchain_community.document_loaders.pdf.UnstructuredPDFLoader¶ class langchain_community.document_loaders.pdf.UnstructuredPDFLoader(file_path: Union[str, List[str]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load PDF files using Unstructured. You can run the loader in one of two modes: “single” and “e...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.UnstructuredPDFLoader.html
e18a89f77764-1
Defaults to RecursiveCharacterTextSplitter. Returns List of Documents.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.UnstructuredPDFLoader.html
84c2f62954c0-0
langchain_community.document_loaders.airbyte.AirbyteStripeLoader¶ class langchain_community.document_loaders.airbyte.AirbyteStripeLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Stripe using an...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteStripeLoader.html
84c2f62954c0-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.AirbyteStripeLoader.html
3ca6555168cc-0
langchain_community.document_loaders.whatsapp_chat.concatenate_rows¶ langchain_community.document_loaders.whatsapp_chat.concatenate_rows(date: str, sender: str, text: str) → str[source]¶ Combine message information in a readable format ready to be used.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.whatsapp_chat.concatenate_rows.html
ddbe80e04268-0
langchain_community.document_loaders.notebook.remove_newlines¶ langchain_community.document_loaders.notebook.remove_newlines(x: Any) → Any[source]¶ Recursively remove newlines, no matter the data structure they are stored in.
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.notebook.remove_newlines.html
76dfa151f5af-0
langchain_community.document_loaders.unstructured.UnstructuredAPIFileLoader¶ class langchain_community.document_loaders.unstructured.UnstructuredAPIFileLoader(file_path: Union[str, List[str]] = '', mode: str = 'single', url: str = 'https://api.unstructured.io/general/v0/general', api_key: str = '', **unstructured_kwarg...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredAPIFileLoader.html
76dfa151f5af-1
lazy_load() A lazy loader for Documents. load() Load file. load_and_split([text_splitter]) Load Documents and split into chunks. __init__(file_path: Union[str, List[str]] = '', mode: str = 'single', url: str = 'https://api.unstructured.io/general/v0/general', api_key: str = '', **unstructured_kwargs: Any)[source]¶ Init...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredAPIFileLoader.html
027e8581b86d-0
langchain_community.document_loaders.blackboard.BlackboardLoader¶ class langchain_community.document_loaders.blackboard.BlackboardLoader(blackboard_course_url: str, bbrouter: str, load_all_recursively: bool = True, basic_auth: Optional[Tuple[str, str]] = None, cookies: Optional[dict] = None, continue_on_failure: bool =...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.blackboard.BlackboardLoader.html
027e8581b86d-1
ValueError – If blackboard course url is invalid. Attributes web_path Methods __init__(blackboard_course_url, bbrouter[, ...]) Initialize with blackboard course url. aload() Load text from the urls in web_path async into Documents. check_bs4() Check if BeautifulSoup4 is installed. download(path) Download a file from an...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.blackboard.BlackboardLoader.html
027e8581b86d-2
Raises ValueError – If blackboard course url is invalid. aload() → List[Document]¶ Load text from the urls in web_path async into Documents. check_bs4() → None[source]¶ Check if BeautifulSoup4 is installed. Raises ImportError – If BeautifulSoup4 is not installed. download(path: str) → None[source]¶ Download a file from...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.blackboard.BlackboardLoader.html
49b1c3dcf965-0
langchain_community.document_loaders.pdf.PDFPlumberLoader¶ class langchain_community.document_loaders.pdf.PDFPlumberLoader(file_path: str, text_kwargs: Optional[Mapping[str, Any]] = None, dedupe: bool = False, headers: Optional[Dict] = None, extract_images: bool = False)[source]¶ Load PDF files using pdfplumber. Initia...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.PDFPlumberLoader.html
059907d4b699-0
langchain_community.document_loaders.pdf.BasePDFLoader¶ class langchain_community.document_loaders.pdf.BasePDFLoader(file_path: str, *, headers: Optional[Dict] = None)[source]¶ Base Loader class for PDF files. If the file is a web path, it will download it to a temporary file, use it, thenclean up the temporary file af...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.BasePDFLoader.html
05bf7237f4c8-0
langchain_community.document_loaders.pdf.PyPDFDirectoryLoader¶ class langchain_community.document_loaders.pdf.PyPDFDirectoryLoader(path: str, glob: str = '**/[!.]*.pdf', silent_errors: bool = False, load_hidden: bool = False, recursive: bool = False, extract_images: bool = False)[source]¶ Load a directory with PDF file...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.pdf.PyPDFDirectoryLoader.html
4896b08e1aed-0
langchain_community.document_loaders.notebook.concatenate_cells¶ langchain_community.document_loaders.notebook.concatenate_cells(cell: dict, include_outputs: bool, max_output_length: int, traceback: bool) → str[source]¶ Combine cells information in a readable format ready to be used. Parameters cell – A dictionary incl...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.notebook.concatenate_cells.html
e540a08930a4-0
langchain_community.document_loaders.azure_ai_data.AzureAIDataLoader¶ class langchain_community.document_loaders.azure_ai_data.AzureAIDataLoader(url: str, glob: Optional[str] = None)[source]¶ Load from Azure AI Data. Initialize with URL to a data asset or storage location . Attributes url URL to the data asset or stora...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.azure_ai_data.AzureAIDataLoader.html
6fc4f1274a55-0
langchain_community.document_loaders.unstructured.UnstructuredFileLoader¶ class langchain_community.document_loaders.unstructured.UnstructuredFileLoader(file_path: Union[str, List[str]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load files using Unstructured. The file loader uses the unstructured parti...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredFileLoader.html
6fc4f1274a55-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 UnstructuredFileLoader¶ Unstructured Unstructured File
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.unstructured.UnstructuredFileLoader.html
bbb1e9ac0f20-0
langchain_community.document_loaders.dataframe.BaseDataFrameLoader¶ class langchain_community.document_loaders.dataframe.BaseDataFrameLoader(data_frame: Any, *, page_content_column: str = 'text')[source]¶ Initialize with dataframe object. Parameters data_frame – DataFrame object. page_content_column – Name of the colum...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.dataframe.BaseDataFrameLoader.html
1c2d4308c1a5-0
langchain_community.document_loaders.chatgpt.ChatGPTLoader¶ class langchain_community.document_loaders.chatgpt.ChatGPTLoader(log_file: str, num_logs: int = - 1)[source]¶ Load conversations from exported ChatGPT data. Initialize a class object. Parameters log_file – Path to the log file num_logs – Number of logs to load...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.chatgpt.ChatGPTLoader.html
d44faacb309a-0
langchain_community.document_loaders.json_loader.JSONLoader¶ class langchain_community.document_loaders.json_loader.JSONLoader(file_path: Union[str, Path], jq_schema: str, content_key: Optional[str] = None, metadata_func: Optional[Callable[[Dict, Dict], Dict]] = None, text_content: bool = True, json_lines: bool = False...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.json_loader.JSONLoader.html
d44faacb309a-1
load_and_split([text_splitter]) Load Documents and split into chunks. __init__(file_path: Union[str, Path], jq_schema: str, content_key: Optional[str] = None, metadata_func: Optional[Callable[[Dict, Dict], Dict]] = None, text_content: bool = True, json_lines: bool = False)[source]¶ Initialize the JSONLoader. Parameters...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.json_loader.JSONLoader.html
e3eecd6188ff-0
langchain_community.document_loaders.bigquery.BigQueryLoader¶ class langchain_community.document_loaders.bigquery.BigQueryLoader(query: str, project: Optional[str] = None, page_content_columns: Optional[List[str]] = None, metadata_columns: Optional[List[str]] = None, credentials: Optional[Credentials] = None)[source]¶ ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.bigquery.BigQueryLoader.html
e3eecd6188ff-1
Initialize BigQuery document loader. Parameters query – The query to run in BigQuery. project – Optional. The project to run the query in. page_content_columns – Optional. The columns to write into the page_content of the document. metadata_columns – Optional. The columns to write into the metadata of the document. cre...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.bigquery.BigQueryLoader.html
f01db6811c7a-0
langchain_community.document_loaders.image.UnstructuredImageLoader¶ class langchain_community.document_loaders.image.UnstructuredImageLoader(file_path: Union[str, List[str]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load PNG and JPG files using Unstructured. You can run the loader in one of two modes:...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.image.UnstructuredImageLoader.html
f01db6811c7a-1
Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. Examples using UnstructuredImageLoader¶ Images
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.image.UnstructuredImageLoader.html
3b8f9fb4e486-0
langchain_community.document_loaders.figma.FigmaFileLoader¶ class langchain_community.document_loaders.figma.FigmaFileLoader(access_token: str, ids: str, key: str)[source]¶ Load Figma file. Initialize with access token, ids, and key. Parameters access_token – The access token for the Figma REST API. ids – The ids of th...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.figma.FigmaFileLoader.html
be7af963290b-0
langchain_community.document_loaders.dropbox.DropboxLoader¶ class langchain_community.document_loaders.dropbox.DropboxLoader[source]¶ Bases: BaseLoader, BaseModel Load files from Dropbox. In addition to common files such as text and PDF files, it also supports Dropbox Paper files. Create a new model by parsing and vali...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.dropbox.DropboxLoader.html
be7af963290b-1
the new model: you should trust this data deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[boo...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.dropbox.DropboxLoader.html
be7af963290b-2
Defaults to RecursiveCharacterTextSplitter. Returns List of Documents. classmethod parse_file(path: Union[str, Path], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, byt...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.dropbox.DropboxLoader.html
57c696fda95f-0
langchain_community.document_loaders.notiondb.NotionDBLoader¶ class langchain_community.document_loaders.notiondb.NotionDBLoader(integration_token: str, database_id: str, request_timeout_sec: Optional[int] = 10)[source]¶ Load from Notion DB. Reads content from pages within a Notion Database. :param integration_token: N...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.notiondb.NotionDBLoader.html
57c696fda95f-1
Read a page. Parameters page_summary – Page summary from Notion API. Examples using NotionDBLoader¶ Notion DB Notion DB 2/2
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.notiondb.NotionDBLoader.html
de89153b7b0f-0
langchain_community.document_loaders.powerpoint.UnstructuredPowerPointLoader¶ class langchain_community.document_loaders.powerpoint.UnstructuredPowerPointLoader(file_path: Union[str, List[str]], mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load Microsoft PowerPoint files using Unstructured. Works with bot...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.powerpoint.UnstructuredPowerPointLoader.html
de89153b7b0f-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 UnstructuredPowerPointLoader¶ Microsoft PowerPoint
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.powerpoint.UnstructuredPowerPointLoader.html
f7925c5a27c5-0
langchain_community.document_loaders.blob_loaders.schema.BlobLoader¶ class langchain_community.document_loaders.blob_loaders.schema.BlobLoader[source]¶ Abstract interface for blob loaders implementation. Implementer should be able to load raw content from a storage system according to some criteria and return the raw c...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.blob_loaders.schema.BlobLoader.html
88e9d86c1dc7-0
langchain_community.document_loaders.airbyte.AirbyteSalesforceLoader¶ class langchain_community.document_loaders.airbyte.AirbyteSalesforceLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Salesfo...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteSalesforceLoader.html
88e9d86c1dc7-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.AirbyteSalesforceLoader.html
277d602febd1-0
langchain_community.document_loaders.mongodb.MongodbLoader¶ class langchain_community.document_loaders.mongodb.MongodbLoader(connection_string: str, db_name: str, collection_name: str, *, filter_criteria: Optional[Dict] = None)[source]¶ Load MongoDB documents. Methods __init__(connection_string, db_name, ...[, ...]) al...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.mongodb.MongodbLoader.html
762257060a4f-0
langchain_community.document_loaders.tsv.UnstructuredTSVLoader¶ class langchain_community.document_loaders.tsv.UnstructuredTSVLoader(file_path: str, mode: str = 'single', **unstructured_kwargs: Any)[source]¶ Load TSV files using Unstructured. Like other Unstructured loaders, UnstructuredTSVLoader can be used in both “s...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.tsv.UnstructuredTSVLoader.html
797296f64b42-0
langchain_community.document_loaders.airbyte.AirbyteTypeformLoader¶ class langchain_community.document_loaders.airbyte.AirbyteTypeformLoader(config: Mapping[str, Any], stream_name: str, record_handler: Optional[Callable[[Any, Optional[str]], Document]] = None, state: Optional[Any] = None)[source]¶ Load from Typeform us...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.airbyte.AirbyteTypeformLoader.html
797296f64b42-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.AirbyteTypeformLoader.html
559129240791-0
langchain_community.document_loaders.notion.NotionDirectoryLoader¶ class langchain_community.document_loaders.notion.NotionDirectoryLoader(path: str, *, encoding: str = 'utf-8')[source]¶ Load Notion directory dump. Initialize with a file path. Methods __init__(path, *[, encoding]) Initialize with a file path. lazy_load...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.notion.NotionDirectoryLoader.html
bafe3ccc38d1-0
langchain_community.document_loaders.confluence.ConfluenceLoader¶ class langchain_community.document_loaders.confluence.ConfluenceLoader(url: str, api_key: Optional[str] = None, username: Optional[str] = None, session: Optional[Session] = None, oauth2: Optional[dict] = None, token: Optional[str] = None, cloud: Optional...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
bafe3ccc38d1-1
and ContentFormat.VIEW. Hint: space_key and page_id can both be found in the URL of a page in Confluence - https://yoursite.atlassian.com/wiki/spaces/<space_key>/pages/<page_id> Example from langchain_community.document_loaders import ConfluenceLoader loader = ConfluenceLoader( url="https://yoursite.atlassian.com/w...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
bafe3ccc38d1-2
Check if a page is publicly accessible. lazy_load() A lazy loader for Documents. load([space_key, page_ids, label, cql, ...]) param space_key Space key retrieved from a confluence URL, defaults to None load_and_split([text_splitter]) Load Documents and split into chunks. paginate_request(retrieval_method, **kwargs) Pag...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
bafe3ccc38d1-3
lazy_load() → Iterator[Document]¶ A lazy loader for Documents. load(space_key: Optional[str] = None, page_ids: Optional[List[str]] = None, label: Optional[str] = None, cql: Optional[str] = None, include_restricted_content: bool = False, include_archived_content: bool = False, include_attachments: bool = False, include_...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
bafe3ccc38d1-4
ocr_languages (str, optional) – The languages to use for the Tesseract agent. To use a language, you’ll first need to install the appropriate Tesseract language pack. keep_markdown_format (bool) – Whether to keep the markdown format, defaults to False keep_newlines (bool) – Whether to keep the newlines format, defaults...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
bafe3ccc38d1-5
Parameters retrieval_method (callable) – Function used to retrieve docs Returns List of documents Return type List process_attachment(page_id: str, ocr_languages: Optional[str] = None) → List[str][source]¶ process_doc(link: str) → str[source]¶ process_image(link: str, ocr_languages: Optional[str] = None) → str[source]¶...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.confluence.ConfluenceLoader.html
92406b12ccdc-0
langchain_community.document_loaders.googledrive.GoogleDriveLoader¶ class langchain_community.document_loaders.googledrive.GoogleDriveLoader[source]¶ Bases: BaseLoader, BaseModel Load Google Docs from Google Drive. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.googledrive.GoogleDriveLoader.html
92406b12ccdc-1
Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.googledrive.GoogleDriveLoader.html
92406b12ccdc-2
classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_n...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.googledrive.GoogleDriveLoader.html
92406b12ccdc-3
classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on fields based on this Model, globalns and localns. classmethod validate(value: Any) → Model¶ Examples usi...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.googledrive.GoogleDriveLoader.html
ee9ae3434aac-0
langchain_community.document_loaders.parsers.language.python.PythonSegmenter¶ class langchain_community.document_loaders.parsers.language.python.PythonSegmenter(code: str)[source]¶ Code segmenter for Python. Methods __init__(code) extract_functions_classes() is_valid() simplify_code() __init__(code: str)[source]¶ extra...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.language.python.PythonSegmenter.html
6c1216a31e70-0
langchain_community.document_loaders.parsers.msword.MsWordParser¶ class langchain_community.document_loaders.parsers.msword.MsWordParser[source]¶ Parse the Microsoft Word documents from a blob. Methods __init__() lazy_parse(blob) Parse a Microsoft Word document into the Document iterator. parse(blob) Eagerly parse the ...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.parsers.msword.MsWordParser.html
271e5bb8235e-0
langchain_community.document_loaders.spreedly.SpreedlyLoader¶ class langchain_community.document_loaders.spreedly.SpreedlyLoader(access_token: str, resource: str)[source]¶ Load from Spreedly API. Initialize with an access token and a resource. Parameters access_token – The access token. resource – The resource. Methods...
https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.spreedly.SpreedlyLoader.html
3cbe65fcda72-0
langchain_community.chat_message_histories.sql.BaseMessageConverter¶ class langchain_community.chat_message_histories.sql.BaseMessageConverter[source]¶ The class responsible for converting BaseMessage to your SQLAlchemy model. Methods __init__() from_sql_model(sql_message) Convert a SQLAlchemy model to a BaseMessage in...
https://api.python.langchain.com/en/latest/chat_message_histories/langchain_community.chat_message_histories.sql.BaseMessageConverter.html