LakeFSLoader#
- class langchain_community.document_loaders.lakefs.LakeFSLoader(lakefs_access_key: str, lakefs_secret_key: str, lakefs_endpoint: str, repo: str | None = None, ref: str | None = 'main', path: str | None = '')[source]#
Load from lakeFS.
- Parameters:
lakefs_access_key (str) – [required] lakeFS server’s access key
lakefs_secret_key (str) – [required] lakeFS server’s secret key
lakefs_endpoint (str) – [required] lakeFS server’s endpoint address, ex: https://example.my-lakefs.com
repo (str) – [optional, default = ‘’] target repository
ref (str) – [optional, default = ‘main’] target ref (branch name, tag, or commit ID)
path (str) – [optional, default = ‘’] target path
Attributes
Methods
__init__
(lakefs_access_key, ...[, repo, ...])A lazy loader for Documents.
aload
()Load data into Document objects.
A lazy loader for Documents.
load
()Load data into Document objects.
load_and_split
([text_splitter])Load Documents and split into chunks.
set_path
(path)set_ref
(ref)set_repo
(repo)- __init__(lakefs_access_key: str, lakefs_secret_key: str, lakefs_endpoint: str, repo: str | None = None, ref: str | None = 'main', path: str | None = '')[source]#
- Parameters:
lakefs_access_key (str) – [required] lakeFS server’s access key
lakefs_secret_key (str) – [required] lakeFS server’s secret key
lakefs_endpoint (str) – [required] lakeFS server’s endpoint address, ex: https://example.my-lakefs.com
repo (str | None) – [optional, default = ‘’] target repository
ref (str | None) – [optional, default = ‘main’] target ref (branch name, tag, or commit ID)
path (str | None) – [optional, default = ‘’] target path
- async alazy_load() AsyncIterator[Document] #
A lazy loader for Documents.
- Return type:
AsyncIterator[Document]
- load_and_split(text_splitter: TextSplitter | None = None) list[Document] #
Load Documents and split into chunks. Chunks are returned as Documents.
Do not override this method. It should be considered to be deprecated!
- Parameters:
text_splitter (Optional[TextSplitter]) – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.
- Returns:
List of Documents.
- Return type:
list[Document]
Examples using LakeFSLoader