LakeFSLoaderWrapper
Python template · sinapsis_langchain_readers.templates.langchain_data_readers
Overview
Dynamic Template to load documents from Langchain document_loaders module The template loads the document either as a Document object in the generic_data field of DataContainer of each string as a TextPacket if add_document_as_text_packet is set as True
LakeFSLoader — inherited documentation
Load from `lakeFS`.
:param lakefs_access_key: [required] lakeFS server's access key :param lakefs_secret_key: [required] lakeFS server's secret key :param lakefs_endpoint: [required] lakeFS server's endpoint address, ex: https://example.my-lakefs.com :param repo: [optional, default = ''] target repository :param ref: [optional, default = 'main'] target ref (branch name, tag, or commit ID) :param path: [optional, default = ''] target path
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis_langchain_readers==1.0.0uv pip install sinapsis_langchain_readers==1.0.0uv add sinapsis_langchain_readers==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Optional
Default: null
Required
Default: null
Optional
Default: "main"
Optional
Default: ""
Optional
Default: null
Optional
Default: null
Optional
Default: null
Optional
Default: null
Whether to add document as text packet or not. lakefsloader_init lakefs_access_key <class 'str'>: default: None lakefs_secret_key <class 'str'>: default: None lakefs_endpoint <class 'str'>: default: None repo… Read full field description
Whether to add document as text packet or not. lakefsloader_init lakefs_access_key <class 'str'>: default: None lakefs_secret_key <class 'str'>: default: None lakefs_endpoint <class 'str'>: default: None repo typing.Optional[str]: default: None ref typing.Optional[str]: default: main path typing.Optional[str]: default:
Optional
Default: false
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "LakeFSLoaderWrapper"
class_name: "LakeFSLoaderWrapper"
attributes:
lakefsloader_init:
ref: "main"
path: ""
repo: null
lakefs_endpoint: null
lakefs_access_key: null
lakefs_secret_key: null
add_document_as_text_packet: false
View original docstring example
The source example references WikipediaLoaderWrapper, not LakeFSLoaderWrapper.
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: WikipediaLoaderWrapper
class_name: WikipediaLoaderWrapper ## note that because it is a dynamic template,
template_input: InputTemplate ## the class name depends on the actual class that is used.
attributes:
add_document_as_text_packet: false
wikipedialoader_init:
query: the query for wikipedia
lang: en
load_max_docs: 5000
load_all_available_meta: False
doc_content_chars_max: 4000Inheritance
sinapsis_langchain_readers.templates.langchain_data_readers.LangChainDataReaderBaseEnvironment variables
Environment definitions belong to their canonical Python modules.