2023-03-09 12:42:09 -08:00
..
2023-03-09 12:42:09 -08:00
2023-03-09 12:42:09 -08:00
2023-03-09 12:42:09 -08:00
2023-03-09 12:42:09 -08: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.