jeevesagent.loader.dispatch¶
Auto-detect the right loader from a file’s extension.
from jeevesagent.loader import load
doc = load("report.pdf") # → load_pdf
doc = load("data.xlsx") # → load_excel
doc = load("research.md") # → load_markdown
Functions¶
|
Load a document by auto-detecting its format from the file |
Module Contents¶
- jeevesagent.loader.dispatch.load(path: str | pathlib.Path) jeevesagent.loader.base.Document[source]¶
Load a document by auto-detecting its format from the file extension. Supported:
.pdf,.docx,.xlsx,.xlsm,.csv,.tsv,.md,.markdown,.txt,.html,.htm.Raises
ValueErrorfor unknown extensions.