Expand description
Document loader — reads plain text, Markdown, and PDF files into the knowledge base.
Constants§
- KNOWLEDGE_
LOAD_ FILE_ MAX_ BYTES - Maximum bytes loaded from a single file by
load_file. - KNOWLEDGE_
LOAD_ URL_ MAX_ BYTES - Maximum bytes loaded from a single URL by
load_url.
Functions§
- load_
file - Load a single file and index its chunks into the knowledge base under the given tenant.
- load_
glob - Load all files matching a glob pattern and index their chunks.
- load_
url - Load a URL, strip HTML tags, and index chunks.
- strip_
html_ tags - Strip HTML tags from text, replacing them with spaces.