wikipedia-blockifier

Using

The wikipedia-blockifier plugin will convert binary data to Steamship's standardized Block format. It runs in an auto-managed cloud stack. Steamship handles API Keys, scaling, and asynchronous tasking.

To use it, first create a new file:

# Create a Steamship client # Inside a package implementation, you can simply use `self.client` client = Steamship(workspace="my-unique-name") # Upload a file file = File.create(content="Contents of your file")

Your file is now saved to Steamship as raw bytes. Let's apply this Blockifier plugin to make it usable.

# Create an instance of this blockifier blockifier = client.use_plugin('wikipedia-blockifier') # Blockify the file blockify_task = file.blockify(blockifier.handle) # Wait for completion of the task. blockify_task.wait()

Now that we've blockified the file, we can query it's contents.

Building Agents with wikipedia-blockifier

Agents built with the Steamship SDK can be deployed to production-ready APIs with a single command.

  • Horizontal scaling and multi-tenancy is built-in.
  • Metering and chaining across AI providers is handled automatically.
  • Data storage & query across text, vectors, and model output is supported.

The best way to get started is with our Agent Guidebook.