mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-31 12:00:16 +00:00
Steamship Loader
This loader loads persistent Steamship files and converts them to a Document object. Requires an active Steamship API key.
Usage
To use this loader, you need to pass in your API key during initialization.
You may then specify a query
and/or a file_handles
to fetch files.
from llama_index import download_loader
SteamshipFileReader = download_loader("SteamshipFileReader")
loader = SteamshipFileReader(api_key="<api_key>")
documents = loader.load_data(
"<workspace>",
query="filetag and value(\"import-id\")=\"import-001\"",
file_handles=["smooth-valley-9kbdr"]
)
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent. See here for examples.