id
stringlengths
14
16
text
stringlengths
4
1.28k
source
stringlengths
54
121
98edad786d06-59
project (Optional[str]) – The project. entity (Optional[str]) – The entity. tags (Optional[Sequence]) – The tags. group (Optional[str]) – The group. name (Optional[str]) – The name. notes (Optional[str]) – The notes. visualize (Optional[bool]) – Whether to visualize. complexity_metrics (Optional[bool]) – Whether to com...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-60
kwargs (Any) – Return type None on_llm_end(response, **kwargs)[source] Pass the generated response to the logger. Parameters response (langchain.schema.LLMResult) – kwargs (Any) – Return type None on_llm_new_token(token, **kwargs)[source] Do nothing. Parameters token (str) – kwargs (Any) – Return type None on_ll...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-61
Return type None on_chain_end(outputs, **kwargs)[source] Do nothing. Parameters outputs (Dict[str, Any]) – kwargs (Any) – Return type None on_chain_error(error, **kwargs)[source] Do nothing. Parameters error (Union[Exception, KeyboardInterrupt]) – kwargs (Any) – Return type None on_tool_start(serialized, input_st...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-62
Return type Any on_tool_end(output, color=None, observation_prefix=None, llm_prefix=None, **kwargs)[source] Do nothing. Parameters output (str) – color (Optional[str]) – observation_prefix (Optional[str]) – llm_prefix (Optional[str]) – kwargs (Any) – Return type None on_tool_error(error, **kwargs)[source] Do not...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-63
color (Optional[str]) – kwargs (Any) – Return type None flush()[source] Return type None close()[source] Return type None classmethod from_params(*, api_key=None, org_id=None, dataset_id=None, sentiment=False, toxicity=False, themes=False)[source] Instantiate whylogs Logger from params. Parameters api_key (Optiona...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-64
WHYLABS_DEFAULT_DATASET_ID. sentiment (bool) – If True will initialize a model to perform sentiment analysis compound score. Defaults to False and will not gather this metric. toxicity (bool) – If True will initialize a model to score toxicity. Defaults to False and will not gather this metric. themes (bool) – If True ...
https://api.python.langchain.com/en/latest/modules/callbacks.html
98edad786d06-65
... # Use the OpenAI callback handler langchain.callbacks.tracing_enabled(session_name='default')[source] Get the Deprecated LangChainTracer in a context manager. Parameters session_name (str, optional) – The name of the session. Defaults to β€œdefault”. Returns The LangChainTracer session. Return type TracerSession...
https://api.python.langchain.com/en/latest/modules/callbacks.html
c286b9a2e162-0
Document Loaders All different types of document loaders. class langchain.document_loaders.AcreomLoader(path, encoding='UTF-8', collect_metadata=True)[source] Bases: langchain.document_loaders.base.BaseLoader Parameters path (str) – encoding (str) – collect_metadata (bool) – FRONT_MATTER_REGEX = re.compile('^---\\...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-1
Loader that loads AZLyrics webpages. Parameters web_path (Union[str, List[str]]) – header_template (Optional[dict]) – verify (Optional[bool]) – load()[source] Load webpage. Return type List[langchain.schema.Document] class langchain.document_loaders.AirbyteJSONLoader(file_path)[source] Bases: langchain.document_lo...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-2
table_id (str) – base_id (str) – lazy_load()[source] Lazy load records from table. Return type Iterator[langchain.schema.Document] load()[source] Load Table. Return type List[langchain.schema.Document] class langchain.document_loaders.ApifyDatasetLoader(dataset_id, dataset_mapping_function)[source] Bases: langchai...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-3
A custom function that takes a single dictionary (an Apify dataset item) and converts it to an instance of the Document class. load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.ArxivLoader(query, load_max_docs=100, load_all_available_meta=False)[source] Bases:...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-4
List[langchain.schema.Document] class langchain.document_loaders.AzureBlobStorageContainerLoader(conn_str, container, prefix='')[source] Bases: langchain.document_loaders.base.BaseLoader Loading logic for loading documents from Azure Blob Storage. Parameters conn_str (str) – container (str) – prefix (str) – load()[...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-5
List[langchain.schema.Document] class langchain.document_loaders.BSHTMLLoader(file_path, open_encoding=None, bs_kwargs=None, get_text_separator='')[source] Bases: langchain.document_loaders.base.BaseLoader Loader that uses beautiful soup to parse HTML files. Parameters file_path (str) – open_encoding (Optional[str]) ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-6
Loads a bibtex file into a list of Documents. Each document represents one entry from the bibtex file. If a PDF file is present in the file bibtex field, the original PDF is loaded into the document text. If no such file entry is present, the abstract field is used instead. Parameters file_path (str) – parser (Optiona...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-7
Return type Iterator[langchain.schema.Document] load()[source] Load bibtex file documents from the given bibtex file path. See https://bibtexparser.readthedocs.io/en/master/ Parameters file_path – the path to the bibtex file Returns a list of documents with the document.page_content in text format Return type List[lan...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-8
are written into the page_content and none into the metadata. Parameters query (str) – project (Optional[str]) – page_content_columns (Optional[List[str]]) – metadata_columns (Optional[List[str]]) – credentials (Optional[Credentials]) – load()[source] Load data into document objects. Return type List[langchain.sc...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-9
Bases: langchain.document_loaders.web_base.WebBaseLoader Loader that loads all documents from a Blackboard course. This loader is not compatible with all Blackboard courses. It is only compatible with courses that use the new Blackboard interface. To use this loader, you must have the BbRouter cookie. You can get this ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-10
bbrouter (str) – load_all_recursively (bool) – basic_auth (Optional[Tuple[str, str]]) – cookies (Optional[dict]) – folder_path: str base_url: str load_all_recursively: bool check_bs4()[source] Check if BeautifulSoup4 is installed. Raises ImportError – If BeautifulSoup4 is not installed. Return type None load()[...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-11
Returns The filename. Return type str class langchain.document_loaders.Blob(*, data=None, mimetype=None, encoding='utf-8', path=None)[source] Bases: pydantic.main.BaseModel A blob is used to represent raw data by either reference or value. Provides an interface to materialize the blob in different representations, and...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-12
attribute mimetype: Optional[str] = None attribute path: Optional[Union[str, pathlib.PurePath]] = None as_bytes()[source] Read data as bytes. Return type bytes as_bytes_io()[source] Read data as a byte stream. Return type Generator[Union[_io.BytesIO, _io.BufferedReader], None, None] as_string()[source] Read data a...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-13
path (Optional[str]) – if provided, will be set as the source from which the data came Returns Blob instance Return type langchain.document_loaders.blob_loaders.schema.Blob classmethod from_path(path, *, encoding='utf-8', mime_type=None, guess_type=True)[source] Load the blob from a path like object. Parameters path (...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-14
property source: Optional[str] The source location of the blob as string if known otherwise none. class langchain.document_loaders.BlobLoader[source] Bases: abc.ABC Abstract interface for blob loaders implementation. Implementer should be able to load raw content from a storage system according to some criteria and r...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-15
Loads elements from a blockchain smart contract into Langchain documents. The supported blockchains are: Ethereum mainnet, Ethereum Goerli testnet, Polygon mainnet, and Polygon Mumbai testnet. If no BlockchainType is specified, the default is Ethereum mainnet. The Loader uses the Alchemy API to interact with the blockc...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-16
Future versions of this loader can: Support additional Alchemy APIs (e.g. getTransactions, etc.) Support additional blockain APIs (e.g. Infura, Opensea, etc.) Parameters contract_address (str) – blockchainType (langchain.document_loaders.blockchain.BlockchainType) – api_key (str) – startToken (str) – get_all_tokens...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-17
key/value pair and outputted to a new line in the document’s page_content. The source for each document loaded from csv is set to the value of the file_path argument for all doucments by default. You can override this by setting the source_column argument to the name of a column in the CSV file. The source of each docu...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-18
List[langchain.schema.Document] class langchain.document_loaders.ChatGPTLoader(log_file, num_logs=- 1)[source] Bases: langchain.document_loaders.base.BaseLoader Loader that loads conversations from exported ChatGPT data. Parameters log_file (str) – num_logs (int) – load()[source] Load data into document objects. Re...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-19
Bases: langchain.document_loaders.web_base.WebBaseLoader Loader that loads College Confidential webpages. Parameters web_path (Union[str, List[str]]) – header_template (Optional[dict]) – verify (Optional[bool]) – load()[source] Load webpage. Return type List[langchain.schema.Document] class langchain.document_loade...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-20
authentication. Specify a list page_ids and/or space_key to load in the corresponding pages into Document objects, if both are specified the union of both sets will be returned. You can also specify a boolean include_attachments to include attachments, this is set to False by default, if set to True all attachments wil...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-21
set to ContentFormat.STORAGE by default. 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.document_loaders import ConfluenceLoader loader = ConfluenceLoader( url="https://yoursite.atlassia...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-22
number_of_retries (Optional[int], optional) – How many times to retry, defaults to 3 min_retry_seconds (Optional[int], optional) – defaults to 2 max_retry_seconds (Optional[int], optional) – defaults to 10 confluence_kwargs (dict, optional) – additional kwargs to initialize confluence with Raises ValueError – Errors wh...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-23
Return type Optional[List] load(space_key=None, page_ids=None, label=None, cql=None, include_restricted_content=False, include_archived_content=False, include_attachments=False, include_comments=False, content_format=ContentFormat.STORAGE, limit=50, max_pages=1000, ocr_languages=None)[source] Parameters space_key (Opt...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-24
include_comments (bool, optional) – defaults to False content_format (ContentFormat) – Specify content format, defaults to ContentFormat.STORAGE limit (int, optional) – Maximum number of pages to retrieve per request, defaults to 50 max_pages (int, optional) – Maximum number of pages to retrieve in total, defaults 1000...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-25
seems to cap the response to 100. Also, due to the Atlassian Python package, we don’t get the β€œnext” values from the β€œ_links” key because they only return the value from the results key. So here, the pagination starts from 0 and goes until the max_pages, getting the limit number of pages with each request. We have to m...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-26
Parameters page (dict) – Return type bool process_pages(pages, include_restricted_content, include_attachments, include_comments, content_format, ocr_languages=None)[source] Process a list of pages into a list of documents. Parameters pages (List[dict]) – include_restricted_content (bool) – include_attachments (boo...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-27
ocr_languages (Optional[str]) – Return type langchain.schema.Document process_attachment(page_id, ocr_languages=None)[source] Parameters page_id (str) – ocr_languages (Optional[str]) – Return type List[str] process_pdf(link, ocr_languages=None)[source] Parameters link (str) – ocr_languages (Optional[str]) – Retu...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-28
Parameters link (str) – ocr_languages (Optional[str]) – Return type str class langchain.document_loaders.DataFrameLoader(data_frame, page_content_column='text')[source] Bases: langchain.document_loaders.base.BaseLoader Load Pandas DataFrames. Parameters data_frame (Any) – page_content_column (str) – lazy_load()[so...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-29
urls (List[str]) – continue_on_failure (bool) – load()[source] Extract text from Diffbot on all the URLs and return Document instances Return type List[langchain.schema.Document] class langchain.document_loaders.DirectoryLoader(path, glob='**/[!.]*', silent_errors=False, load_hidden=False, loader_cls=<class 'langcha...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-30
load_hidden (bool) – loader_cls (Union[Type[langchain.document_loaders.unstructured.UnstructuredFileLoader], Type[langchain.document_loaders.text.TextLoader], Type[langchain.document_loaders.html_bs.BSHTMLLoader]]) – loader_kwargs (Optional[dict]) – recursive (bool) – show_progress (bool) – use_multithreading (boo...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-31
List[langchain.schema.Document] class langchain.document_loaders.DiscordChatLoader(chat_log, user_id_col='ID')[source] Bases: langchain.document_loaders.base.BaseLoader Load Discord chat logs. Parameters chat_log (pd.DataFrame) – user_id_col (str) – load()[source] Load all chat messages. Return type List[langchain....
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-32
Parameters api (str) – access_token (Optional[str]) – docset_id (Optional[str]) – document_ids (Optional[Sequence[str]]) – file_paths (Optional[Sequence[Union[pathlib.Path, str]]]) – min_chunk_size (int) – Return type None attribute access_token: Optional[str] = None attribute api: str = 'https://api.docugami.co...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-33
List[langchain.schema.Document] class langchain.document_loaders.Docx2txtLoader(file_path)[source] Bases: langchain.document_loaders.base.BaseLoader, abc.ABC Loads a DOCX with docx2txt and chunks at character level. Defaults to check for local file, but if the file is a web path, it will download it to a temporary fil...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-34
Each document represents one row of the result. The page_content_columns are written into the page_content of the document. The metadata_columns are written into the metadata of the document. By default, all columns are written into the page_content and none into the metadata. Parameters query (str) – database (str) –...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-35
Bases: langchain.document_loaders.embaas.BaseEmbaasLoader, langchain.document_loaders.base.BaseBlobParser Wrapper around embaas’s document byte loader service. To use, you should have the environment variable EMBAAS_API_KEY set with your API key, or pass it as a named parameter to the constructor. Example # Default par...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-36
"chunk_size": 256, "chunk_splitter": "CharacterTextSplitter" } ) blob = Blob.from_path(path="example.pdf") documents = loader.parse(blob=blob) Parameters embaas_api_key (Optional[str]) – api_url (str) – params (langchain.document_loaders.embaas.EmbaasDocumentExtractionParameters) – Return type None lazy_...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-37
Iterator[langchain.schema.Document] class langchain.document_loaders.EmbaasLoader(*, embaas_api_key=None, api_url='https://api.embaas.io/v1/document/extract-text/bytes/', params={}, file_path, blob_loader=None)[source] Bases: langchain.document_loaders.embaas.BaseEmbaasLoader, langchain.document_loaders.base.BaseLoade...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-38
loader = EmbaasBlobLoader( file_path="example.pdf", params={ "should_embed": True, "model": "e5-large-v2", "chunk_size": 256, "chunk_splitter": "CharacterTextSplitter" } ) documents = loader.load() Parameters embaas_api_key (Optional[str]) – api_url (str) – params (langchai...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-39
attribute file_path: str [Required] The path to the file to load. lazy_load()[source] Load the documents from the file path lazily. Return type Iterator[langchain.schema.Document] load()[source] Load data into document objects. Return type List[langchain.schema.Document] load_and_split(text_splitter=None)[source] L...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-40
Instructions on producing this file can be found at https://help.evernote.com/hc/en-us/articles/209005557-Export-notes-and-notebooks-as-ENEX-or-HTML Currently only the plain text in the note is extracted and stored as the contents of the Document, any non content metadata (e.g. β€˜author’, β€˜created’, β€˜updated’ etc. but n...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-41
Return type List[langchain.schema.Document] class langchain.document_loaders.FacebookChatLoader(path)[source] Bases: langchain.document_loaders.base.BaseLoader Loader that loads Facebook messages json directory dump. Parameters path (str) – load()[source] Load documents. Return type List[langchain.schema.Document] c...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-42
Type str secret The secret key for authenticating to FaunaDB. Type str metadata_fields Optional list of field names to include in metadata. Type Optional[Sequence[str]] load()[source] Load data into document objects. Return type List[langchain.schema.Document] lazy_load()[source] A lazy loader for document content....
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-43
List[langchain.schema.Document] class langchain.document_loaders.FileSystemBlobLoader(path, *, glob='**/[!.]*', suffixes=None, show_progress=False)[source] Bases: langchain.document_loaders.blob_loaders.schema.BlobLoader Blob loader for the local file system. Example: from langchain.document_loaders.blob_loaders impor...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-44
count_matching_files()[source] Count files that match the pattern without loading them. Return type int class langchain.document_loaders.GCSDirectoryLoader(project_name, bucket, prefix='')[source] Bases: langchain.document_loaders.base.BaseLoader Loading logic for loading documents from GCS. Parameters project_name (...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-45
Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.GitHubIssuesLoader(*, repo, access_token, include_prs=True, milestone=None, state=None, assignee=None, creator=None, mentioned=None, labels=None, sort=None, direction=None, since=None)[source] Bases: langchain.document_loaders...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-46
direction (Optional[Literal['asc', 'desc']]) – since (Optional[str]) – Return type None attribute assignee: Optional[str] = None Filter on assigned user. Pass β€˜none’ for no user and β€˜*’ for any user. attribute creator: Optional[str] = None Filter on the user that created the issue. attribute direction: Optional[Lit...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-47
attribute milestone: Optional[Union[int, Literal['*', 'none']]] = None If integer is passed, it should be a milestone’s number field. If the string β€˜*’ is passed, issues with any milestone are accepted. If the string β€˜none’ is passed, issues without milestones are returned. attribute since: Optional[str] = None Only ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-48
lazy_load()[source] Get issues of a GitHub repository. Returns page_content metadata url title creator created_at last_update_time closed_time number of comments state labels assignee assignees milestone locked number is_pull_request Return type A list of Documents with attributes load()[source] Get issues of a GitHu...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-49
property url: str class langchain.document_loaders.GitLoader(repo_path, clone_url=None, branch='main', file_filter=None)[source] Bases: langchain.document_loaders.base.BaseLoader Loads files from a Git repository into a list of documents. Repository can be local on disk available at repo_path, or remote at clone_url ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-50
Load data into document objects. Return type List[langchain.schema.Document] class langchain.document_loaders.GitbookLoader(web_page, load_all_paths=False, base_url=None, content_selector='main')[source] Bases: langchain.document_loaders.web_base.WebBaseLoader Load GitBook data. load from either a single page, or load...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-51
List[langchain.schema.Document] class langchain.document_loaders.GoogleApiClient(credentials_path=PosixPath('/home/docs/.credentials/credentials.json'), service_account_path=PosixPath('/home/docs/.credentials/credentials.json'), token_path=PosixPath('/home/docs/.credentials/token.json'))[source] Bases: object A Generi...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-52
token_path (pathlib.Path) – Return type None credentials_path: pathlib.Path = PosixPath('/home/docs/.credentials/credentials.json') service_account_path: pathlib.Path = PosixPath('/home/docs/.credentials/credentials.json') token_path: pathlib.Path = PosixPath('/home/docs/.credentials/token.json') classmethod valida...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-53
Loader that loads all Videos from a Channel To use, you should have the googleapiclient,youtube_transcript_api python package installed. As the service needs a google_api_client, you first have to initialize the GoogleApiClient. Additionally you have to either provide a channel name or a list of videoids β€œhttps://devel...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-54
channel_name (Optional[str]) – video_ids (Optional[List[str]]) – add_video_info (bool) – captions_language (str) – continue_on_failure (bool) – Return type None google_api_client: langchain.document_loaders.youtube.GoogleApiClient channel_name: Optional[str] = None video_ids: Optional[List[str]] = None add_vide...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-55
List[langchain.schema.Document] class langchain.document_loaders.GoogleDriveLoader(*, service_account_key=PosixPath('/home/docs/.credentials/keys.json'), credentials_path=PosixPath('/home/docs/.credentials/credentials.json'), token_path=PosixPath('/home/docs/.credentials/token.json'), folder_id=None, document_ids=None,...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-56
file_ids (Optional[List[str]]) – recursive (bool) – file_types (Optional[Sequence[str]]) – load_trashed_files (bool) – file_loader_cls (Any) – file_loader_kwargs (Dict[str, Any]) – Return type None attribute credentials_path: pathlib.Path = PosixPath('/home/docs/.credentials/credentials.json') attribute document...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-57
attribute recursive: bool = False attribute service_account_key: pathlib.Path = PosixPath('/home/docs/.credentials/keys.json') attribute token_path: pathlib.Path = PosixPath('/home/docs/.credentials/token.json') load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_load...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-58
Load Hacker News data from either main page results or the comments page. Parameters web_path (Union[str, List[str]]) – header_template (Optional[dict]) – verify (Optional[bool]) – load()[source] Get important HN webpage information. Components are: title content source url, time of post author of the post number o...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-59
List[langchain.schema.Document] class langchain.document_loaders.HuggingFaceDatasetLoader(path, page_content_column='text', name=None, data_dir=None, data_files=None, cache_dir=None, keep_in_memory=None, save_infos=False, use_auth_token=None, num_proc=None)[source] Bases: langchain.document_loaders.base.BaseLoader Loa...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-60
num_proc (Optional[int]) – lazy_load()[source] Load documents lazily. Return type Iterator[langchain.schema.Document] load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.IFixitLoader(web_path)[source] Bases: langchain.document_loaders.base.BaseLoader Load iFix...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-61
Parameters web_path (str) – load()[source] Load data into document objects. Return type List[langchain.schema.Document] static load_suggestions(query='', doc_type='all')[source] Parameters query (str) – doc_type (str) – Return type List[langchain.schema.Document] load_questions_and_answers(url_override=None)[sourc...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-62
List[langchain.schema.Document] class langchain.document_loaders.IMSDbLoader(web_path, header_template=None, verify=True)[source] Bases: langchain.document_loaders.web_base.WebBaseLoader Loader that loads IMSDb webpages. Parameters web_path (Union[str, List[str]]) – header_template (Optional[dict]) – verify (Optiona...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-63
blip_processor (str) – blip_model (str) – load()[source] Load from a list of image files Return type List[langchain.schema.Document] class langchain.document_loaders.IuguLoader(resource, api_token=None)[source] Bases: langchain.document_loaders.base.BaseLoader Loader that fetches data from IUGU. Parameters resource...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-64
documents. Example [{β€œtext”: …}, {β€œtext”: …}, {β€œtext”: …}] -> schema = .[].text {β€œkey”: [{β€œtext”: …}, {β€œtext”: …}, {β€œtext”: …}]} -> schema = .key[].text [β€œβ€, β€œβ€, β€œβ€] -> schema = .[] Parameters file_path (Union[str, pathlib.Path]) – jq_schema (str) – content_key (Optional[str]) – metadata_func (Optional[Callable[[Dic...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-65
Loader that fetches notes from Joplin. In order to use this loader, you need to have Joplin running with the Web Clipper enabled (look for β€œWeb Clipper” in the app settings). To get the access token, you need to go to the Web Clipper options and under β€œAdvanced Options” you will find the access token. You can find more...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-66
List[langchain.schema.Document] class langchain.document_loaders.MWDumpLoader(file_path, encoding='utf8')[source] Bases: langchain.document_loaders.base.BaseLoader Load MediaWiki dump from XML file .. rubric:: Example from langchain.document_loaders import MWDumpLoader loader = MWDumpLoader( file_path="myWiki.xml"...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-67
Load from file path. Return type List[langchain.schema.Document] class langchain.document_loaders.MastodonTootsLoader(mastodon_accounts, number_toots=100, exclude_replies=False, access_token=None, api_base_url='https://mastodon.social')[source] Bases: langchain.document_loaders.base.BaseLoader Mastodon toots loader. P...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-68
Bases: langchain.document_loaders.pdf.BasePDFLoader Parameters file_path (str) – processed_file_format (str) – max_wait_time_seconds (int) – should_clean_pdf (bool) – kwargs (Any) – Return type None property headers: dict property url: str property data: dict send_pdf()[source] Return type str wait_for_process...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-69
List[langchain.schema.Document] class langchain.document_loaders.MaxComputeLoader(query, api_wrapper, *, page_content_columns=None, metadata_columns=None)[source] Bases: langchain.document_loaders.base.BaseLoader Loads a query result from Alibaba Cloud MaxCompute table into documents. Parameters query (str) – api_wra...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-70
similar to a database. access_id (Optional[str]) – MaxCompute access ID. Should be passed in directly or set as the environment variable MAX_COMPUTE_ACCESS_ID. secret_access_key (Optional[str]) – MaxCompute secret access key. Should be passed in directly or set as the environment variable MAX_COMPUTE_SECRET_ACCESS_KEY....
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-71
Parameters loaders (List) – lazy_load()[source] Lazy load docs from each individual loader. Return type Iterator[langchain.schema.Document] load()[source] Load docs. Return type List[langchain.schema.Document] class langchain.document_loaders.MHTMLLoader(file_path, open_encoding=None, bs_kwargs=None, get_text_separa...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-72
List[langchain.schema.Document] class langchain.document_loaders.ModernTreasuryLoader(resource, organization_id=None, api_key=None)[source] Bases: langchain.document_loaders.base.BaseLoader Loader that fetches data from Modern Treasury. Parameters resource (str) – organization_id (Optional[str]) – api_key (Optional[...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-73
max_output_length (int) – remove_newline (bool) – traceback (bool) – load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.NotionDBLoader(integration_token, database_id, request_timeout_sec=10)[source] Bases: langchain.document_loaders.base.BaseLoader Notion DB...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-74
None load()[source] Load documents from the Notion database. :returns: List of documents. :rtype: List[Document] Return type List[langchain.schema.Document] load_page(page_summary)[source] Read a page. Parameters page_summary (Dict[str, Any]) – Return type langchain.schema.Document class langchain.document_loaders.N...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-75
Loader that loads Obsidian files from disk. Parameters path (str) – encoding (str) – collect_metadata (bool) – FRONT_MATTER_REGEX = re.compile('^---\\n(.*?)\\n---\\n', re.MULTILINE|re.DOTALL) load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.OneDriveFileLoa...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-76
List[langchain.schema.Document] class langchain.document_loaders.OneDriveLoader(*, settings=None, drive_id, folder_path=None, object_ids=None, auth_with_token=False)[source] Bases: langchain.document_loaders.base.BaseLoader, pydantic.main.BaseModel Parameters settings (langchain.document_loaders.onedrive._OneDriveSett...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-77
load()[source] Loads all supported document files from the specified OneDrive drive a nd returns a list of Document objects. Returns A list of Document objects representing the loaded documents. Return type List[Document] Raises ValueError – If the specified drive ID does not correspond to a drive in the OneDrive stor...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-78
https://github.com/TeamMsgExtractor/msg-extractor Parameters file_path (str) – load()[source] Load data into document objects. Return type List[langchain.schema.Document] class langchain.document_loaders.OpenCityDataLoader(city_id, dataset_id, limit)[source] Bases: langchain.document_loaders.base.BaseLoader Loader t...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-79
Loader that uses PDFMiner to load PDF files. Parameters file_path (str) – Return type None load()[source] Eagerly load the content. Return type List[langchain.schema.Document] lazy_load()[source] Lazily lod documents. Return type Iterator[langchain.schema.Document] class langchain.document_loaders.PDFMinerPDFasHTMLL...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-80
Loader that uses pdfplumber to load PDF files. Parameters file_path (str) – text_kwargs (Optional[Mapping[str, Any]]) – Return type None load()[source] Load file. Return type List[langchain.schema.Document] langchain.document_loaders.PagedPDFSplitter alias of langchain.document_loaders.pdf.PyPDFLoader class langcha...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-81
headless (bool) – remove_selectors (Optional[List[str]]) – urls List of URLs to load. Type List[str] continue_on_failure If True, continue loading other URLs on failure. Type bool headless If True, the browser will run in headless mode. Type bool load()[source] Load the specified URLs using Playwright and create ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-82
load()[source] Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.PyMuPDFLoader(file_path)[source] Bases: langchain.document_loaders.pdf.BasePDFLoader Loader that uses PyMuPDF to load PDF files. Parameters file_path (str) – Return type None load(**kwargs)[source] Load file....
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-83
Parameters path (str) – glob (str) – silent_errors (bool) – load_hidden (bool) – recursive (bool) – load()[source] Load data into document objects. Return type List[langchain.schema.Document] class langchain.document_loaders.PyPDFLoader(file_path)[source] Bases: langchain.document_loaders.pdf.BasePDFLoader Loads...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-84
Iterator[langchain.schema.Document] class langchain.document_loaders.PyPDFium2Loader(file_path)[source] Bases: langchain.document_loaders.pdf.BasePDFLoader Loads a PDF with pypdfium2 and chunks at character level. Parameters file_path (str) – load()[source] Load given path as pages. Return type List[langchain.schema...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-85
df (Optional[Any]) – page_content_column (str) – fraction_of_memory (float) – get_num_rows()[source] Gets the amount of β€œfeasible” rows for the DataFrame Return type Tuple[int, int] lazy_load()[source] A lazy loader for document content. Return type Iterator[langchain.schema.Document] load()[source] Load from the...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-86
Bases: langchain.document_loaders.base.BaseLoader Loader that loads ReadTheDocs documentation directory dump. Parameters path (Union[str, pathlib.Path]) – encoding (Optional[str]) – errors (Optional[str]) – custom_html_tag (Optional[Tuple[str, dict]]) – kwargs (Optional[Any]) – load()[source] Load documents. Retu...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-87
Parameters url (str) – visited (Optional[Set[str]]) – Return type Set[str] lazy_load()[source] A lazy loader for document content. Return type Iterator[langchain.schema.Document] load()[source] Load web pages. Return type List[langchain.schema.Document] class langchain.document_loaders.RedditPostsLoader(client_id, ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-88
search_queries (Sequence[str]) – mode (str) – categories (Sequence[str]) – number_posts (Optional[int]) – load()[source] Load reddits. Return type List[langchain.schema.Document] class langchain.document_loaders.RoamLoader(path)[source] Bases: langchain.document_loaders.base.BaseLoader Loader that loads Roam file...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-89
Load documents. Return type List[langchain.schema.Document] class langchain.document_loaders.S3FileLoader(bucket, key)[source] Bases: langchain.document_loaders.base.BaseLoader Loading logic for loading documents from s3. Parameters bucket (str) – key (str) – load()[source] Load documents. Return type List[langchai...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-90
List[langchain.schema.Document] class langchain.document_loaders.SeleniumURLLoader(urls, continue_on_failure=True, browser='chrome', binary_location=None, executable_path=None, headless=True, arguments=[])[source] Bases: langchain.document_loaders.base.BaseLoader Loader that uses Selenium and to load a page and unstru...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-91
Type bool browser The browser to use, either β€˜chrome’ or β€˜firefox’. Type str binary_location The location of the browser binary. Type Optional[str] executable_path The path to the browser executable. Type Optional[str] headless If True, the browser will run in headless mode. Type bool arguments [List[str]] List of ...
https://api.python.langchain.com/en/latest/modules/document_loaders.html
c286b9a2e162-92
Loader that fetches a sitemap and loads those URLs. Parameters web_path (str) – filter_urls (Optional[List[str]]) – parsing_function (Optional[Callable]) – blocksize (Optional[int]) – blocknum (int) – meta_function (Optional[Callable]) – is_local (bool) – parse_sitemap(soup)[source] Parse sitemap xml and load i...
https://api.python.langchain.com/en/latest/modules/document_loaders.html