Load Steamship Files into LlamaIndex
LlamaIndex reader that loads documents from persistent Steamship Files, a platform for storing and managing files with advanced tagging capabilities.
Why it matters
Integrate persistent Steamship Files into your LlamaIndex data pipeline. Load and process documents stored with advanced tagging capabilities for use in AI applications.
Outcomes
What it gets done
Load documents from persistent Steamship Files.
Query Steamship Files using tags.
Integrate with LlamaIndex for data ingestion.
Utilize as a tool in LangChain Agents.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-reader-readers-steamship | bash Overview
LlamaIndex Readers Integration: SteamshipFile
The SteamshipFile Reader loads documents from persistent Steamship Files into LlamaIndex. It connects to Steamship's file storage platform using an API key and retrieves files based on workspace, tag queries, or specific file handles. The reader supports block collapsing and custom text joining to control how document content is structured. Use this reader when your source documents are stored in Steamship and you need to ingest them into LlamaIndex for RAG applications or agent workflows. It's particularly valuable when you want to leverage Steamship's tagging system to filter and organize which files to load based on metadata queries.
What it does
The SteamshipFile Reader is a LlamaIndex integration that loads documents from persistent Steamship Files. Steamship is a platform for storing and managing files with advanced tagging capabilities, and this reader provides a bridge to ingest those files into LlamaIndex workflows. It enables querying files by workspace, tag queries, or specific file handles, with options to collapse blocks and control text joining.
When to use - and when NOT to
Use this reader when you have documents already stored in Steamship and need to bring them into LlamaIndex for indexing, retrieval, or agent workflows. Use it when you need persistent file storage with metadata that can be queried programmatically.
Do not use this reader if your documents are not stored in Steamship - you would need a different LlamaIndex reader for local files, cloud storage, or other platforms.
Inputs and outputs
You provide a Steamship API key for authentication, a workspace identifier, and either a tag query or specific file handles to target documents. Optional parameters include collapse_blocks (boolean) to control block merging and join_str to specify how text segments are concatenated.
You receive documents loaded from the matching Steamship Files.
Installation and usage
Install via pip:
pip install llama-index-readers-steamship
Basic usage example:
from llama_index.readers.steamship import SteamshipFileReader
### Initialize SteamshipFileReader
reader = SteamshipFileReader(api_key="<Steamship API Key>")
### Load data from persistent Steamship Files
documents = reader.load_data(
workspace="<Steamship Workspace>",
query="<Steamship Tag Query>",
file_handles=["smooth-valley-9kbdr"],
collapse_blocks=True,
join_str="\n\n",
)
Integrations
LlamaIndex: The reader is designed as a data loader for LlamaIndex, integrating directly with its document ingestion pipeline.
LangChain: Can be used as a Tool in LangChain Agent workflows after loading data into LlamaIndex.
Steamship: Requires a Steamship API key and connects to Steamship workspaces to access persistent files with tagging capabilities.
Who it's for
This reader is for developers building LlamaIndex applications who need to load documents from Steamship. Data engineers and AI application developers who need to bridge Steamship's persistent storage with LlamaIndex's indexing and querying capabilities will find this integration useful.
Source README
LlamaIndex Readers Integration: SteamshipFile
Overview
The SteamshipFile Reader allows you to load documents from persistent Steamship Files. Steamship is a platform for storing and managing files with advanced tagging capabilities.
For more detailed information about the SteamshipFile Reader, visit SteamShip.
Installation
You can install the SteamshipFile Reader via pip:
pip install llama-index-readers-steamship
This reader requires steamship API key, which can be acquired from SteamShip.
Usage
from llama_index.readers.steamship import SteamshipFileReader
### Initialize SteamshipFileReader
reader = SteamshipFileReader(api_key="<Steamship API Key>")
### Load data from persistent Steamship Files
documents = reader.load_data(
workspace="<Steamship Workspace>",
query="<Steamship Tag Query>",
file_handles=["smooth-valley-9kbdr"],
collapse_blocks=True,
join_str="\n\n",
)
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.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.